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, 02:29 PM   #1246
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

@BIGREG: here's your Room_CT with the Wings3D TDC OBJ and AO OBJ imported into it:



The AO is not being rendered correctly because I didn't read it correctly from the file (in the second importer I wrote). I see what I need to do to correct it but it'll take some time to write the code

If I disable the AO (self-illumination) the diffuse looks correct now:

TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 02:36 PM   #1247
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Ok ,i get waiting ,I have already a lot of work with new changes

But why the textures and UVW order are change ?
__________________
~~~~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, 02:39 PM   #1248
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
But why the textures and UVW order are change ?
What changed? How do you know/can tell? I don't understand
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 02:42 PM   #1249
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

see post#1240

and in 3dwings the exported file look good !?



That see the subset material : 1,2,4 are inversed when importing in the editor
__________________
~~~~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 02:56 PM.
BIGREG is offline   Reply With Quote
Old 05-20-12, 03:00 PM   #1250
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
see post#1240

and in 3dwings the exported file look good !?
That see the subset material : 1,2,4 are inversed when importing in the editor
What do you mean by inversed? They are flipped horizontally? vertically? or ?

I think I understand...it's looks like either the subsets are swapped around or the materials are swapped around...
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 03:17 PM   #1251
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
But why the textures and UVW order are change ?
I think I see why:

Before import the mesh has 5 subsets. These subsets use the materials (in numerical subset order):
- CT_BODY_TDC
- CT_Buttons_Levels_Wheels
- CT_Cadrans_TDC
- CT_Cadrans_TDC_Gauges_01
- CT_Book_Map_Letter_TDC_Labels_01

When I look inside the OBJ file from Wings3D I find:
- g tdc_CT_Body_TDC_subset0 (CT_Body_TDC)
- g tdc_CT_Book_Map_Letter_TDC_Labels_subset4 (CT_Book_Map_Letter_TDC_Labels_01)
- g tdc_CT_Buttons_Levels_Wheels_subset1 (CT_Buttons_Levels_Wheels)
- g tdc_CT_Cadrans_TDC_Gauges_subset3 (CT_Cadrans_TDC_Gauges_01)
- g tdc_CT_Cadrans_TDC_subset2 (CT_Cadrans_TDC)

So Wings3D mixed up the subset ordering from 0-4 to 0,4,1,3,2

This makes things interesting. Wonder why it did that?

Well I could code something to look for _subsetx in the g entries to match it up to a specific subset
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 03:21 PM   #1252
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

yes after import the subset 4 have the texture of the subset 1

subset 2 have this from the 3
__________________
~~~~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, 03:23 PM   #1253
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
yes after import the subset 4 have the texture of the subset 1

subset 2 have this from the 3
The Wings3D AO file has the subsets listed in numerical order (0-4). The non-AO one doesn't. Why?
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 03:26 PM   #1254
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

But before the new version all was 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, 04:10 PM   #1255
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
But before the new version all was good
Your Wings3D file was different. All the subsets were in numerical order. The one you sent me they are not in numerical order anymore. Did you do something to get them out of numerical order?
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 04:14 PM   #1256
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

AO problem fixed with the second importer Now looking into a way to match what is read from OBJ file to a particular existing mesh subset...
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 04:31 PM   #1257
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Your Wings3D file was different. All the subsets were in numerical order. The one you sent me they are not in numerical order anymore. Did you do something to get them out of numerical order?

AO problem fixed with the second importer Now looking into a way to match what is read from OBJ file to a particular existing mesh subset...
Nothing , i have just import/export
__________________
~~~~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, 04:32 PM   #1258
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
Nothing , i have just import/export
Well Wings3D swapped the subset ordering somehow. No worries. I'm adding something that will give the user the option to force subset ordering now
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 04:38 PM   #1259
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

So 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, 05:09 PM   #1260
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
So good
We have success!



Your Room_CT with the import of the non-AO and AO Wings3D TDC files TDC has 3 more verticies than stock courtesy of Wings3D

I'll send you the new Room_CT.GR2 file. I still have just a little more work to do on the new version before I can send it to you. I have to explain how this new force subsets thing works
TheDarkWraith 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 05:04 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.