![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
02-14-12, 04:56 PM
|
#1 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
|
|
|
02-14-12, 05:09 PM
|
#2 | |
|
Black Magic
![]() |
Quote:
Why are you getting errors?I do see that 3DS Max put the full path to the mtl files in the .mtl file. I'll have to look for that and correct it. |
|
|
|
02-14-12, 05:28 PM
|
#3 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Sorry i think i have upload not the good radar mesh
Here the exported from 3DSMax : Mesh : http://dl.dropbox.com/u/8655607/Radar.obj Mtl : http://dl.dropbox.com/u/8655607/Radar.mtl |
|
|
02-14-12, 05:36 PM
|
#4 | |
|
Black Magic
![]() |
Quote:
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware # File Created: 14.02.2012 23:20:53 mtllib Radar.mtl # # object Radar_subset0 # Here is the start of the OBJ file exported by the app (following the OBJ format rules): # Exported by GR2Editor/Viewer v1.1.46.0 # Exported from GR2 file C:\Ubisoft\Silent Hunter 5\data\Submarine\Common\Rooms\Room_QR1.GR2 # mtllib Radar.mtl o Radar 3DS Max is not following the OBJ file format rules The problem is 3DS Max does not write 'o Radar' in the start of the OBJ file.I just also noticed that it put both subsets in the same file as two different objects. Something that will totally screw up my importer. Just noticed this also from the 3DS Max file: g Radar_subset0 usemtl various_metals_wood_04 s 1 what is s 1? I never saw that in the OBJ file format documentation I'll have to think about how to fix this... Last edited by TheDarkWraith; 02-14-12 at 05:48 PM. |
|
|
|
02-14-12, 05:57 PM
|
#5 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Hum ! and it does the same with Wings
![]() and for g Radar_subset0 usemtl various_metals_wood_04 s 1 no idea ![]() But,I have see after make export/import the textures seem to not have the same coordinates as before
|
|
|
02-14-12, 06:01 PM
|
#6 | |
|
Black Magic
![]() |
Quote:
You exported a mesh and then immediately reimported it and the texture coordinates were different? Which mesh? |
|
|
|
02-14-12, 06:06 PM
|
#7 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
the same mesh : Radar
I have just retry and have the same error ![]() "You exported a mesh and then immediately reimported it and the texture coordinates were different? Which mesh? " Yes always radar |
|
|
02-14-12, 06:49 PM
|
#8 | |
|
Black Magic
![]() |
Quote:
![]() I think I see what Wings3D did. If you look at the faces lines you'll see it re-organized them. It appears Wings3D optimized the mesh on import and thus we are getting back different results. In this optimizing any duplicates were removed and thus is why the number of texture coordinates changed. This face line: f 1/1973/1 3/2030/3 2/2031/2 says to use vertex 1 defined, texture coordinate 1973 defined, and vertex normal 1 defined. So the number of texture coordinates and vertex normals does not have to equal the number of verticies. I'll have to adjust the app Last edited by TheDarkWraith; 02-14-12 at 07:01 PM. |
|
|
|
02-14-12, 06:57 PM
|
#9 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Here
Just exported from the editor : http://dl.dropbox.com/u/8655607/exporteditor.zip and just exported from 3dsmax : http://dl.dropbox.com/u/8655607/export3dsmax.zip |
|
|
02-14-12, 07:16 PM
|
#10 | |
|
Black Magic
![]() |
Quote:
![]() Realize I'm interpreting something that we don't really know about. I'm learning as I go about the GR2 file. The importer has been adjusted so that if the number of texture coordinates and/or the number of normals defined in the OBJ file do not match the number of verticies defined you don't get an error. It also handles the 's x' entries so you don't get any errors. I'll post a new test version here soon. The minor annoyance in the bone editor page about the - or space has been taken care of also. |
|
|
|
02-14-12, 07:18 PM
|
#11 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
I have try with or without smoothing->make nothing
![]() here the chaper for setting the import menu from 3dsmax : http://dl.dropbox.com/u/8655607/reglageimport3dmax.xps and here the whole chapter for the obj files : http://dl.dropbox.com/u/8655607/WavefrontOBJfiles.xps |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
