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 11-21-11, 05:10 PM   #1
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

The positioning was the first thing I noted that was going to be an issue when we reach import ability.
Mostly because of the Tangent stuff.
Now we don't NEED to do the tangents before hand.
But it will force the Game Engine to calculate them on the fly.
So up the system specs when massive imports start rolling in!
(It may also be happening already with imported SH4 Units?)
  Reply With Quote
Old 11-21-11, 05:15 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by privateer View Post
The positioning was the first thing I noted that was going to be an issue when we reach import ability.
Mostly because of the Tangent stuff.
Now we don't NEED to do the tangents before hand.
But it will force the Game Engine to calculate them on the fly.
So up the system specs when massive imports start rolling in!
(It may also be happening already with imported SH4 Units?)
The only thing I can see to do is store an offset of the sum where the item was originally and where the user wants it to be. Then apply this offset to every vertice in the mesh thus achieving the same effect. Nuts

Thank god that if I set the mesh's transform to be the bone's transform * the bone's inversetransform it positions the mesh where it needs to be. Thus I can figure out the offset required by doing what I mentioned.
TheDarkWraith is offline   Reply With Quote
Old 11-21-11, 05:21 PM   #3
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Actually?
Few modder in the 3D area center the different meshes before importing to SH3 or SH4 on totally custom models.
Most of what is done incases like that is to leave the meshes at 0 coords.
So for them? It may be a God sent feature or have no impact at all.
  Reply With Quote
Old 11-21-11, 05:33 PM   #4
Reece
CINC Pacific Fleet
 
Reece's Avatar
 
Join Date: Sep 2003
Location: Down Under
Posts: 11,223
Downloads: 171
Uploads: 0
Default

Good grief! what a nightmare, I can understand why the game was released in the state it was!
__________________

Sub captains go down with their ship!
Reece is offline   Reply With Quote
Old 11-21-11, 05:38 PM   #5
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$!!
That answer your questioning nature?
  Reply With Quote
Old 11-21-11, 06:06 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

ok, after some thought on this here's what I'm going to do:

Bones reposition like they should when you change position and rotation which is good. Meshes on the other hand do not.

Even though meshes are supposedly 'bound' to a bone they are, in fact, not in SH5. Thus if we treat each mesh as a new 'bone' then it will help mitigate the pain and frustration. Since they will be classified as a bone then they will inherit position information (from the GR2Coords class). I'll initialize their position information to 0 (no rotations, no position - (0,0,0)) and set their transform to the Identity transform. This will work because they are already pre-positioned to where they need to be.

Now when the user asks to reposition the item or change it's rotation then these variables will obviously not be 0 anymore. I'll check to see if they are 0 or not and if not then I'll update the mesh's verticies to reflect the change the user wanted.

Now to take what I just described and apply it to the code

The fact that this has to be done in the first place is utterly absurd. There was no reason to use the Granny system...the DAT file system would've done everything they needed.
TheDarkWraith is offline   Reply With Quote
Old 11-21-11, 06:13 PM   #7
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I'd tend to agree about the dat format.
The benifits of the Granny system were not implemented in a 'saveing Grace' way.
I'm just sitting here wondering how many of the Upper's are sweating it out wondering when people like you and I can pull thier arses out of the fire!
  Reply With Quote
Old 11-21-11, 06:42 PM   #8
Sartoris
Captain
 
Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
Default

Just dropping by to express my gratitude for still working on fixing the game and learning more about it.
Sartoris is offline   Reply With Quote
Old 11-22-11, 06:45 AM   #9
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Quote:
Originally Posted by TheDarkWraith View Post
ok, after some thought on this here's what I'm going to do:

Bones reposition like they should when you change position and rotation which is good. Meshes on the other hand do not.

Even though meshes are supposedly 'bound' to a bone they are, in fact, not in SH5. Thus if we treat each mesh as a new 'bone' then it will help mitigate the pain and frustration. Since they will be classified as a bone then they will inherit position information (from the GR2Coords class). I'll initialize their position information to 0 (no rotations, no position - (0,0,0)) and set their transform to the Identity transform. This will work because they are already pre-positioned to where they need to be.

Now when the user asks to reposition the item or change it's rotation then these variables will obviously not be 0 anymore. I'll check to see if they are 0 or not and if not then I'll update the mesh's verticies to reflect the change the user wanted.

Now to take what I just described and apply it to the code

The fact that this has to be done in the first place is utterly absurd. There was no reason to use the Granny system...the DAT file system would've done everything they needed.
Let me see: Firstly they acquired a license from RAD for the Granny SDK. Then the SDK wasn't used for anything sensible apart from effectively (though most probably unwittingly) blocking modding efforts. Finally the license's price was included into the game's price (we all know how it works), so not only modders do not have the ability to mod the game to the needed extent, but we even paid for not having this ability!
While this policy is understandable in the case of charging user for the copy-protection and things alike in the hope to prevent loosing $$ that should motivate further development work, in the SH5 case not only the money were unnecessarily spent but $$ loss is further aggravated by preventing modders saving the unfinished game. In my opinion this is squandering at its best!
I am sorry for the offtopic, just couldn't hold myself.

@ TDW,
This is amazing progress with bones, wtg! I actually wanted to ask whether I understand correctly that this non-moving meshes issue doesn't affect animation editing in the sense that when we will be editing animations we won't need to move the meshes? To give an example - if we think of the infamous 'ladder-climbing-lamp-changing' animation, I guess it is much easier to cut it directly in the file to leave only climbing part of it and we will not need 3d editor in this case. Sorry if it is a stupid question.

Last edited by Vanilla; 11-22-11 at 08:15 AM.
Vanilla is offline   Reply With Quote
Old 11-22-11, 04:05 PM   #10
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Vanilla View Post
Let me see: Firstly they acquired a license from RAD for the Granny SDK. Then the SDK wasn't used for anything sensible apart from effectively (though most probably unwittingly) blocking modding efforts. Finally the license's price was included into the game's price (we all know how it works), so not only modders do not have the ability to mod the game to the needed extent, but we even paid for not having this ability!
While this policy is understandable in the case of charging user for the copy-protection and things alike in the hope to prevent loosing $$ that should motivate further development work, in the SH5 case not only the money were unnecessarily spent but $$ loss is further aggravated by preventing modders saving the unfinished game. In my opinion this is squandering at its best!
Never give a loaded Weapon to someone not fully trained to use it properly.
Someone will get hurt.

Quote:
@ TDW,
This is amazing progress with bones, wtg! I actually wanted to ask whether I understand correctly that this non-moving meshes issue doesn't affect animation editing in the sense that when we will be editing animations we won't need to move the meshes? To give an example - if we think of the infamous 'ladder-climbing-lamp-changing' animation, I guess it is much easier to cut it directly in the file to leave only climbing part of it and we will not need 3d editor in this case. Sorry if it is a stupid question.
Editing animations will not involve the actual Models or the meshes they are made up from as was done in SH3.
One can edit the animations GR2 files to 'zero out' things in a way.
Say to remove the 'screw in the light bulb' part?
Just loop the information just before that part so the animation appears to pause for the set duration or change the timing so it passes quicker.
  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:50 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.