SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-14-12, 04:56 PM   #1
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Voila : http://dl.dropbox.com/u/8655607/Radar.mtl
BIGREG is offline   Reply With Quote
Old 02-14-12, 05:09 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
I replaced the Radar files in my export folder with the two you gave me links to and I was able to import the radar without error 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.
TheDarkWraith is offline   Reply With Quote
Old 02-14-12, 05:28 PM   #3
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

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
BIGREG is offline   Reply With Quote
Old 02-14-12, 05:36 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
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
That's better. Now I see what's going on. Here is the start of the OBJ file from 3DS Max:

# 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.
TheDarkWraith is offline   Reply With Quote
Old 02-14-12, 05:57 PM   #5
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

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
BIGREG is offline   Reply With Quote
Old 02-14-12, 06:01 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
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
Wings3D exports to OBJ just fine. Never had any problems with it. Maybe there are some settings you can change in 3DS Max?

You exported a mesh and then immediately reimported it and the texture coordinates were different? Which mesh?
TheDarkWraith is offline   Reply With Quote
Old 02-14-12, 06:06 PM   #7
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

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
BIGREG is offline   Reply With Quote
Old 02-14-12, 06:49 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Anvart View Post
It's smooth group...
In 3ds Max, in Obj Exporter the option "to export smoothing groups" is enabled (checked)...
You must process this info too..??
Seems like I need to learn what smoothing groups are then

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.
TheDarkWraith is offline   Reply With Quote
Old 02-14-12, 06:57 PM   #9
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

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
BIGREG is offline   Reply With Quote
Old 02-14-12, 07:16 PM   #10
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Anvart View Post
While do you have the same maps: map_Kd = map_Ka = map_Ks?
map_Kd = map_Ka may be, but map_Kd = map_Ks...
For one the GR2 file doesn't define a specular map like SH3 did so I set the specular as diffuse (as that's what we did in SH3 at times). If you have a better idea I'm open to it

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.
TheDarkWraith is offline   Reply With Quote
Old 02-14-12, 07:18 PM   #11
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

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
BIGREG is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:49 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.