![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
05-19-12, 02:21 PM
|
#1216 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Merci encore
![]() Anyway, thanks again for the work you do, if there is already way to export / import all meshes, it'll be great, I could finally redo all UVW
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok |
|
|
05-19-12, 03:12 PM
|
#1217 | |
|
Black Magic
![]() |
Quote:
![]() Testing the changes made for the selecting new material for a mesh's subset now |
|
|
|
05-19-12, 03:24 PM
|
#1218 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Great News
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok |
|
|
05-19-12, 04:07 PM
|
#1219 |
|
Black Magic
![]() |
Looks like my VIIA sub is a real antique:
The hydrophone station is made of wood not metal You now have the ability to change a mesh subset's material. Here I changed the material for the hydrophone station subset 1 to one that uses wood instead of metal. The stipulation for changing a mesh subset's material is the materials you can choose from will have the same number of maps or a greater number of maps as the material you are replacing. To change a mesh subset's material right click on the material node under the subset node in the mesh treeview. @BIGREG - I'll send you a new test version here shortly so you can test this along with importing OBJ files that have different vertice counts from the original mesh |
|
|
05-19-12, 04:40 PM
|
#1220 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Thank i try it tomorrow here is midnight
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok |
|
|
05-19-12, 07:10 PM
|
#1221 |
|
Black Magic
![]() |
Some new changes to upcoming test version. So far these changes deal with selecting materials:
Notice that when selecting a new material it will tell you how many maps are defined in the title bar of the window. That number can be used in a comparison to the material you select. Notice also that the materials listed as available to select now also list how many maps defined. If number of maps defined is 0 then it tells you whether a texture is defined or not. In certain situations the number of maps defined in the material being replaced is compared against number of maps defined in material selected. If they are not equal then a dialog box like the above displays asking for confirmation from the user (this is to avoid inadvertantly selecting a material with fewer maps defined). Since this selecting material window now can list materials with maps defined I had to change the code so that when you double click a material with maps defined it will show you all the textures for those maps: This way you can see the textures of the material before committing to your selection I can hear the question now "What happens if we select a material with fewer maps?" Answer: I'm not really sure. Try it and let me know. My best guess is the game will render those 'missing maps' as black or white. Work continues... |
|
|
05-19-12, 11:58 PM
|
#1222 |
|
Black Magic
![]() |
More changes to the importer:
A strict import uses my first importer. A loose import uses my second importer (second importer does not require the vertex data to match the mesh's vertex data - you are free to add/remove verticies). Now for the big changes: the only thing required to be in an OBJ file are vertices now If you do a loose import and you do not import:- vertex data then the existing vertex data of the mesh will be used - diffuse data - the texture coordinate 0 data will be null - AO data - the texture coordinate 1 data will be null - normal data - the normal data will be null A strict import uses the existing data of the mesh thus none of those will be null unless they were previously null. What this allows you to do now is read these different datas from different files. You could have the vertex data in one OBJ file, the diffuse data in another OBJ file, etc. Remember the only requirement is the OBJ file HAS to contain vertex data (vertices). If the diffuse, AO, or normal data is bigger or smaller than the existing vertex data of the mesh it will be clipped or not used as appropriate.
|
|
|
05-19-12, 11:58 PM
|
#1223 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
HiFor the material all work great ![]() But,for the meshes import ,yet i have the VT (vertex texture) do not correspond with the vertices ![]() But, I'm sure you will succeed to settle this ![]()
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok |
|
|
05-20-12, 12:00 AM
|
#1224 |
|
Black Magic
![]() |
|
|
|
05-20-12, 12:02 AM
|
#1225 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Not too fast that I have time to make coffee
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok |
|
|
05-20-12, 12:05 AM
|
#1226 |
|
Black Magic
![]() |
Any files you have trouble importing please send to me so I can try them while watching what's going on in VS. I'll need to know what kind of import you were trying to do also (strict or loose) and what mesh you were trying to import into
|
|
|
05-20-12, 12:09 AM
|
#1227 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
05-20-12, 03:57 AM
|
#1228 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Room_CT.GR2 - TDC (mesh)
![]() export from 3dWings : http://dl.dropbox.com/u/8655607/TDC_3dwings.zip import in strict : error ![]() in Loose : error ![]() Export from 3dsMax : http://dl.dropbox.com/u/8655607/TDC_3dsMax10.zip (show up the export stat) in strict : error ![]() in loose : error ![]() i get try with other meshes Edit: I have try with other meshes same errors
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok Last edited by BIGREG; 05-20-12 at 08:21 AM. |
|
|
05-20-12, 11:16 AM
|
#1229 |
|
Black Magic
![]() |
@BIGREG - I was able to use your Wings3D files to figure out what was wrong with my code
I fixed the errors and successfully imported your TDC from Wings3D (the app had to add 3 more vertices to the mesh's primary vertex data):Now I think you have different materials assigned, no? That's the only reason I can see why the textures are messed up. As you can see from the screenshot above the app is rendering the TDC's subsets using the stock materials. Your 3DS Max files are still screwed up. Your 3DS Max is splitting each subset into it's own object. Compare your Wings3D files to the 3DS Max ones and you'll see what I mean. As far as one of the errors you posted above it appears you were not using the latest version I sent you. The number of texture coordinates != number of verticies check was totally removed and you should never see it. I'm sending you the new GR2 file via PM so you can tell me if the import was correct or not I was not able to use a strict import because your wings 3D files have 3 more verticies than the stock thus I had to use a loose import. |
|
|
05-20-12, 11:28 AM
|
#1230 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Thank TDW i go to try it
![]() For the 3dsMax file ,yes i have see with notepad+ ,he wrote it in subsets sections for the 3 vertices in more ,that come from 3dwings,not from me ,that seem 3dwings add this vertices for the version i use the 1.1.175.1 have try it,but the textures are changed,and i have send you with the original mapping ( with just one texture attribute change ) i get send you my conning tower ,but that will take time to upload (I have an internet connection, not really fast)
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok Last edited by BIGREG; 05-20-12 at 11:57 AM. |
|
|
![]() |
|
|
