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, 01:47 PM   #1
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   #2
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   #3
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
Old 05-20-12, 02:29 PM   #4
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   #5
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   #6
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   #7
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   #8
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:21 PM   #9
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:17 PM   #10
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
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:40 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.