![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
02-14-12, 11:19 PM
|
#1 |
|
Black Magic
![]() |
Fixed the problem with adding bones to some GR2 files
Man it was a sinister one. Problem was in two places - the linked list class and how the classes when writing their data were getting their offsets from the linked list class. Glad that is behind me ![]() Here are Waypoint_Room_QR1 and 2 to verify for yourself: http://www.mediafire.com/?0zc8bv9aatnj796 Load them up in GrannyViewer and the app to ensure there are no errors. I couldn't find any! I successfully added a new bone to Waypoints_Room_QR2 (and even set the new exporter info to boot Once I test this on several files and I find no errors with the changes I'll release a new test version
Last edited by TheDarkWraith; 02-15-12 at 12:11 AM. |
|
|
02-15-12, 12:52 AM
|
#2 |
|
Black Magic
![]() |
So far any non-special GR2 file I added a new bone to worked flawlessly. I did get a failure on NSS_Undine though (special GR2 file). That file is a bastard (and is why it's part of my testing files)
I'll look into why tomorrow
|
|
|
02-15-12, 03:53 AM
|
#3 | |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
Quote:
|
|
|
|
02-15-12, 04:30 AM
|
#4 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
HiFor the bones, I have a small question: Why, the pointer of the bones they are outside of the room, even in the original files ![]()
|
|
|
02-15-12, 06:57 AM
|
#5 | |
|
Black Magic
![]() |
Quote:
![]() 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. |
|
|
|
02-15-12, 09:06 AM
|
#6 |
|
Black Magic
![]() |
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
|
|
|
02-15-12, 09:54 AM
|
#7 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
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. |
|
|
02-15-12, 10:48 AM
|
#8 | |
|
Black Magic
![]() |
Quote:
![]() 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. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
