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-15-12, 04:30 AM   #1
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Hi

For the bones, I have a small question: Why, the pointer of the bones they are outside of the room, even in the original files

BIGREG is offline   Reply With Quote
Old 02-15-12, 06:57 AM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
Hi

For the bones, I have a small question: Why, the pointer of the bones they are outside of the room, even in the original files
Your guess is as good as mine. Been trying to figure out the reasoning for this since I started working on this app. At first it made me think I was not reading something correctly from the file till I did what you did and viewed them in Goblin
The thing that really doesn't make any sense is the bone bindings. Every mesh has an entry called bone bindings. In skinned mesh animations you assign a mesh to a bone so that as the bone is transformed the mesh is automatically transformed also. SH5 ignores the bone bindings. The only thing it uses from the bone bindings are the max properties entries (whether the mesh should be visible, cast shadows, receive shadows, etc.). The mesh itself has max properies entries but it seems they are not used for anything. Really confusing.
TheDarkWraith is offline   Reply With Quote
Old 02-15-12, 09:06 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I may be able to read special GR2 files but I sure can't add anything new to them (to a point). If I add new data to a special GR2 file downstream of the pointers (pointers come before data) I have no problems and the file will open in GrannyViewer. The minute I add one byte to the pointers area GrannyViewer refuses to open it (doesn't crash it though just says unable to open). This tells me that I'm not adjusting the section values correctly. That is what I'm working on now
TheDarkWraith is offline   Reply With Quote
Old 02-15-12, 09:54 AM   #4
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Well, I tried a lot of stuff to export. Obj from 3dsmax or blender its not working! message is still "missing library material ...."
(No problems in wings3d but lacks functions for editing and not very practical to use)

Ps:i have try to modifie the light bulbs into 3dsmax i can redo them ( transparent cover and visible lightbulbs )


Last edited by BIGREG; 02-15-12 at 10:13 AM.
BIGREG is offline   Reply With Quote
Old 02-15-12, 10:48 AM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
Well, I tried a lot of stuff to export. Obj from 3dsmax or blender its not working! message is still "missing library material ...."
(No problems in wings3d but lacks functions for editing and not very practical to use)

Ps:i have try to modifie the light bulbs into 3dsmax i can redo them ( transparent cover and visible lightbulbs )
Nice work on the bulbs

I would like to see all the files you exported from 3dsmax and from blender. Can you zip them all up and send me a link to them?

After I finish with the big wrench the NSS_Undine has thrown me I'll work on the importer so it can import 3DSMax and blender OBJ files.
TheDarkWraith is offline   Reply With Quote
Old 02-15-12, 11:04 AM   #6
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Thank ; But for the lightbulbs is just an adjust of the transparency and little color change ,not a big works
I have think in 3dsmax (if you are read the "notice" have send upper)
I can choose preset setting for import and export the mesh (maya,blender etc ...) but not for Wings3d
Do you not think it something to do with that ?

I get zipping the files
BIGREG is offline   Reply With Quote
Old 02-15-12, 11:27 AM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
I have think in 3dsmax (if you are read the "notice" have send upper)
I can choose preset setting for import and export the mesh (maya,blender etc ...) but not for Wings3d
Do you not think it something to do with that ?
Not sure what you mean by preset setting for import and export the mesh

Good news! Found the problem of why the special GR2 files were giving me fits when trying to add anything to the pointer area Since the pointers preceed the data in special GR2 files the section data resides after them instead of before them. When I would add anything to the pointer area the section data would get updated, all is good there. I would also adjust all the pointers and datatype definition offsets relating to the section with the size change. All is good there too if it's not a special GR2 file. Doing this with a special GR2 file results in a double addition of the size change! If you don't understand why here's why: a pointer has an offset in the section data and an offset in section value. To get it's true address you take the offset + section's file offset. Well since the section file offset was adjusted with the size change there's no need to adjust the offsets. I was adjusting the offsets also resulting in double size addition.
Now I'm able to add new pointers and datatype definitions to special GR2 files and those files open in GrannyViewer
TheDarkWraith is offline   Reply With Quote
Old 02-15-12, 11:45 AM   #8
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Here the files ( Radar.obj without AO)

- Export from 3Dwings without change (this one work): http://dl.dropbox.com/u/8655607/Wings3d_export.zip

- Export from 3DSMax without change : http://dl.dropbox.com/u/8655607/3dsm...ect_export.zip
(texture are present ,but no optimised and missing coordinates)

- Export from Blender witout change : http://dl.dropbox.com/u/8655607/Blender_export.zip

- Export from 3Dsmax (mesh exported from 3Dwings ! ) : http://dl.dropbox.com/u/8655607/3dma...ngs_export.zip
(in 3dsmax all textures are applied, and coordinates are good )

Great News
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:42 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.