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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11-21-11, 03:54 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

maybe someone will find this interesting:

I coded the GR2 editor/viewer to be able to change parameters in the GR2 file now (transform, inverseworldtransform, rotation, maxproperties, etc.). For a test to see if I have the app working correctly I changed the position of crane01 of the King George V. I set the X position to -1.25 from -0.7. Now my app showed the crane as having moved to the new spot but when I checked in Goblin and GrannyViewer they show it hasn't moved. This tells me that the transform data is only used to derive the inverseworldtransform which is what is used to place the item. Interesting

This also means that everything is flipped as to how I'm presenting it with the app. Crane01 is actually on the right side of the ship vice the left like I render it. Wow. I have to make some major changes...

EDIT:

went back and looked at GrannyViewer again and noticed that yes everything is flipped from how I'm presenting it but the crane01 was in fact moved to it's new position. This tells me that the transform used when rendering the mesh is the bounded bone transform (rotation and position) * bounded bone inverseworldtransform.

Everything is flipped because GrannyViewer is using a left hand coordinate system and I'm rendering with a right handed coordinate system.

Last edited by TheDarkWraith; 11-21-11 at 04:16 PM.
TheDarkWraith is offline   Reply With Quote
 

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


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.