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:05 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by privateer View Post
I'd tend to think they got saddled with it but did not have the time to work with it as well as they could have.


To do the Open Bunker I had to move the verts themselves.
Same thing on some of SteelVikings stuff I did.
It's quite obvious they either didn't understand what the Granny system can do or just totally ignored it.

The whole point of this app was to make it easier to work with the GR2 files for SH5 but every little step forward I make it's 10 steps backwards I was working towards taking a piece from a unit and adding it to a different unit but now that's out the window due to not being able to specify rotation and position in the file itself. It's totally absurd to have to pre-position every mesh....I mean what the hell were they thinking? To me that's a basic concept in model building....you build a model of say a crane around world origin then when you add it to another item you specify the rotation and position so that it's positioned where it needs to be on the item.....but pre-positioning?? Did they hire people off the street to program this game?

Here's how it appears they created the GR2 files used in this game: a 3D modeller made the entire unit - the stacks, extra objects, funnels, hull, etc. - in one drawing. Then they took this one drawing and diced it up (preserving the position of every item) and made a GR2 file out of it. I just can't believe it...
TheDarkWraith is offline   Reply With Quote
Old 11-21-11, 05:10 PM   #2
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   #3
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   #4
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   #5
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   #6
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$!!
That answer your questioning nature?
  Reply With Quote
Old 11-21-11, 06:06 PM   #7
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   #8
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-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-21-11, 05:21 PM   #10
longam
Admiral
 
Join Date: Jun 2005
Posts: 2,004
Downloads: 26
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Did they hire people off the street to program this game?
I seem to remember them doing a posting about hiring in this forum, but you had to live in Romania. You could be right.
longam is offline   Reply With Quote
Old 11-21-11, 05:24 PM   #11
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by longam View Post
I seem to remember them doing a posting about hiring in this forum, but you had to live in Romania. You could be right.
I have exchanged E-Mails with a few of the Devs about the Granny System and more in the 3D area.

They are quite talented and knew what they were doing.

It's the programmers that got thrown the Granny System and not enuff time to use it to it's greatest advantage.


Read a Blog from Dave at RAD Game Tools and you'll quickly realize how lucky SH 5 users and Modders may be!
http://radgranny.blogspot.com/2011_09_01_archive.html
  Reply With Quote
Old 11-21-11, 05:28 PM   #12
longam
Admiral
 
Join Date: Jun 2005
Posts: 2,004
Downloads: 26
Uploads: 0
Default

Quote:
Originally Posted by privateer View Post
I have exchanged E-Mails with a few of the Devs about the Granny System and more in the 3D area.

They are quite talented and knew what they were doing.

It's the programmers that got thrown the Granny System and not enuff time to use it to it's greatest advantage.
Yup the game is a testimony to the fact of the rush, carry on.
longam is offline   Reply With Quote
Old 11-21-11, 05:33 PM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by longam View Post
Yup the game is a testimony to the fact of the rush, carry on.
Sure is, more and more evident the more we poke into SH5's inner workings.
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:51 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.