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 05-20-12, 11:37 AM   #1231
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Here is a OBJ file format question that I'm pretty sure I know the answer to but just want to clarify:

in the face definitions (f) there can be 3 entries separated by /s. For example: f 456/210/341 507/3/54 823/65/1002. Let's take 456/210/341 and break it down:
456 = vertice index
210 = texture coordinate index
341 = normal index

Now what happens if the OBJ file has normal data but no texture coordinate data? How does the face definitions look like? Would they look like this:
f 456//341 507//54 823//1002

or like this:

f 456/341 507/54 823/1002

My understanding is the first one
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 11:39 AM   #1232
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
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
A loose import can add/remove vertices as needed to the GR2 file so no worries

Why is 3DS Max doing these strange exports to OBJ files?

Does the Room_CT TDC render correctly with your materials?
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 12:11 PM   #1233
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I need to clarify something related to strict or loose imports: the OBJ files are required to have vertice data only BUT the number of subsets defined in the OBJ file (g) HAS to match the number of subsets in the original mesh. Though the number of subsets has to match you are free to change the indices of each subset

You would use a strict import when you don't want the number of vertices in the mesh to change. You would use a loose import when you do want the number of vertices defined for the mesh to change.

A strict import uses my first importer I wrote. A strict import does not allow the app to allocate/deallocate space in the GR2 file. A loose import uses my second importer I wrote. A loose import allows the app to allocate/deallocate space in the GR2 file as needed.
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 12:16 PM   #1234
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Does the Room_CT TDC render correctly with your materials

No here a screen :

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


Default

Quote:
Originally Posted by BIGREG View Post
Does the Room_CT TDC render correctly with your materials

No here a screen :
You didn't send me AO data so the AO texture coordinates are null (0,0). In the rendering tab uncheck Self-Illumination to see the diffuse texture coordinates being rendered
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 12:23 PM   #1236
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Ok without AO i have the same texture
look your PM i send you my conning tower

In any case, thank you for the opportunity to change the materials of subsets
__________________
~~~~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
BIGREG is offline   Reply With Quote
Old 05-20-12, 12:43 PM   #1237
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
Ok without AO i have the same texture
look your PM i send you my conning tower

In any case, thank you for the opportunity to change the materials of subsets
I just had a face palm moment I realized that the answer to my question I posted some posts above regarding OBJ file format resided in my function that exports mesh data to OBJ file format. Sure enough if no texture coordinates defined then no entry in the f definition (f 803//243 ...)
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 12:46 PM   #1238
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

have you try my conning tower ?
__________________
~~~~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
BIGREG is offline   Reply With Quote
Old 05-20-12, 12:54 PM   #1239
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
have you try my conning tower ?
I downloaded it and opened it up but not sure where to start I sent you v1.1.177.1 so you can import your conning tower and post a screenshot here
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 01:25 PM   #1240
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Ok i can import the TDC
But,i have problem with the textures (not this one used and no more the good UVW ) and i need to dissable the self-illumination ( other all is black) ,i have try to load the AO ,But that give me loading error

whereas before I did not need to take care of AO.GR2

edit:that look the subsets has changed place

Before :



After :

__________________
~~~~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 01:42 PM.
BIGREG is offline   Reply With Quote
Old 05-20-12, 01:33 PM   #1241
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
Ok i can import the TDC
But,i have problem with the textures (not this one used and no more the good UVW ) and i need to dissable the self-illumination ( other all is black) ,i have try to load the AO ,But that give me loading error

whereas before I did not need to take care of AO.GR2

edit:that look the subsets has changed place
I just loaded your Room_CT and imported the Wings3D TDC you sent me. The import went fine but the AO data was still null even though I told the app to use existing vertex data I'm looking into this...

Do you have AO data for the Wings3D TDC? If so can you send it to me? I'd like to see what this loading error the app is throwing is all about.
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 01:45 PM   #1242
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Found the error in the app where it wasn't using the existing vertex data when you told it to

I loaded up your Room_CT and imported the Wings3D TDC you had sent me. This was the result:



That doesn't look normal to me...or is that correct? I'll send you v1.1.178.1 in a few

I just found a bug that I need to correct. If the rendering tab's Self-Illumination is unchecked at app start then when you do check it nothing happens...
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 01:47 PM   #1243
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

The TDC i send you before was the original ,not this one from me

But,i have redo import/export the .GR2 and the AO.GR2 ,but impossible to open the AO file

and in 3dwings all is good !?
__________________
~~~~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
BIGREG is offline   Reply With Quote
Old 05-20-12, 01:59 PM   #1244
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
The TDC i send you before was the original ,not this one from me

But,i have redo import/export the .GR2 and the AO.GR2 ,but impossible to open the AO file

and in 3dwings all is good !?
Send me the AO file, send me everything related to what you are trying to import so I can open it up in VS and see what's going on.

I'm sending you v1.1.178.1 now (I fixed the self-illumination bug)
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 02:22 PM   #1245
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
But,i have redo import/export the .GR2 and the AO.GR2 ,but impossible to open the AO file

and in 3dwings all is good !?
Your AO file exposed a bug in my app which is good! The bug has been fixed. But now let's talk about this AO file. The number of AO texture coordinates defined is 3177. The number of diffuse texture coordinates defined is 4791. Is that correct?

I see something I have to correct in regards to the AO files in my second importer
TheDarkWraith is offline   Reply With Quote
Reply


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:28 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.