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


Default

Quote:
Originally Posted by rocker_lx View Post
Yes I think "." is the way to go.
I did one better. I included a new menu item:



If this is unchecked it will use US regional settings (thus the . for decimal notation). If this is checked then it will use your current regional settings. This gives the most flexibility
This is saved to the cfg file at app end and read from cfg file and applied at app start.

and with that....

v1.0.499.0 released. See post #1

Let me know if the export problem is fixed and whether this decimal 'problem' is cured or not

Also fixed the problem that the texture coordinates were not being saved to the current size of the render window when you selected to save render window.
TheDarkWraith is offline   Reply With Quote
Old 01-03-12, 01:59 AM   #2
fromhell
Lieutenant
 
Join Date: Mar 2008
Location: the deep
Posts: 251
Downloads: 217
Uploads: 7
Default

fantastic stuff TDW
fromhell is offline   Reply With Quote
Old 01-03-12, 02:30 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

It's only going to get better

Now you can select individual faces and render the texture coordinates just for those faces. This opens up another new age for skinning - pinpoint skinning. Man am I having fun now



I'll finish coding the opacity part of the selected faces tomorrow. I'm tired. Time to sleep...

v1.0.501.0 released. See post #1

TheDarkWraith is offline   Reply With Quote
Old 01-03-12, 04:26 AM   #4
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
It's only going to get better

Now you can select individual faces and render the texture coordinates just for those faces. This opens up another new age for skinning - pinpoint skinning. Man am I having fun now
....
Wow. That's very impressive!
Vanilla is offline   Reply With Quote
Old 01-03-12, 07:33 AM   #5
fromhell
Lieutenant
 
Join Date: Mar 2008
Location: the deep
Posts: 251
Downloads: 217
Uploads: 7
Default

that is absolutly fantastic, hats of to you TDW.
will we be able to produce an IX Boat soon?
please please.
fromhell is offline   Reply With Quote
Old 01-03-12, 07:55 AM   #6
dcb
Grey Wolf
 
Join Date: Apr 2005
Location: Bucharest, Romania
Posts: 845
Downloads: 547
Uploads: 0
Default

TDW, please check your PM. Thank you.
dcb is offline   Reply With Quote
Old 01-03-12, 10:26 AM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by dcb View Post
TDW, please check your PM. Thank you.
When I was playing around with that sub on the bottom thing I was moving one bone up in the sub:



For the 7b this was Room_EXT. I simply moved it up till it was in centerline of the sub.

If you're going to do this please fix the other bones on this sub. There are many that are way out of position...Something doesn't look right...

EDIT:

Granny Viewer confirms that I have a problem with bones. Now I have to figure out why
TheDarkWraith is offline   Reply With Quote
Old 01-03-12, 10:13 AM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by fromhell View Post
that is absolutly fantastic, hats of to you TDW.
will we be able to produce an IX Boat soon?
please please.
That all depends on the outcome of my next importer that I'm still working on. Lots of little details to still work out You'll see some of those details being implemented in upcoming versions...
TheDarkWraith is offline   Reply With Quote
Old 01-03-12, 04:27 PM   #9
rocker_lx
Watch
 
Join Date: May 2005
Posts: 27
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
I did one better. I included a new menu item:



If this is unchecked it will use US regional settings (thus the . for decimal notation). If this is checked then it will use your current regional settings. This gives the most flexibility
This is saved to the cfg file at app end and read from cfg file and applied at app start.

and with that....

v1.0.499.0 released. See post #1

Let me know if the export problem is fixed and whether this decimal 'problem' is cured or not

Also fixed the problem that the texture coordinates were not being saved to the current size of the render window when you selected to save render window.
Yep, decimal problem is fixed also select save location now also exports mtl and tga files.
I still get the error with the bounding spere, but it does not cause a problem.
rocker_lx is offline   Reply With Quote
Old 01-03-12, 04:47 PM   #10
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by rocker_lx View Post
Yep, decimal problem is fixed also select save location now also exports mtl and tga files.
I still get the error with the bounding spere, but it does not cause a problem.
Good to hear

Yes I've noticed that error in some of the doors. I'm investigating why currently. So far it appears the mesh (as read from the file) is messed up...
TheDarkWraith is offline   Reply With Quote
Old 01-03-12, 10:48 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Started making the architectural changes necessary for the new importer. This is major reworking when it comes to coding There really was no way to prevent it because during planning I had no idea I would make it to this stage.

When it's all said and done the new importer will allow you to import anything (note 1) into a GR2 file.

Now note 1:
The pointers used in the GR2 files are a godsend and a hinderance at the same time. I've been unable to come up with an algorithm that manages to remap every pointer needed 100% of the time for whatever you want to do. The number of different combinations of what one could do are hard to fathom. So I took a step back and took another look at what one could do. What we want to accomplish is:
- importing new vertex data to replace existing
- change material names to reflect material needed for new vertex data
- change bones to match new vertex data

We can already edit bones to reposition/rotate them. All that is really needed for this is ability to change names. The new importer will allow you to change names BUT the length of the name cannot exceed the length of the old name (shorter names are fine).

Same thing above applies to new material names. We'll use existing materials and edit them.

Vertex data...the biggie. Using the exploit I mentioned some posts ago this can be done. Now I haven't coded in this part yet but in theory it should work. If you think about how the GR2 file lays out vertex data you'll notice that it all sits in one big chunk of space (except for skin data and animations). There are pointers to data in there from PrimaryVertexData defines. These pointers are managable in regards to changing. By changing the PrimaryVertexData's pointers and using the exploit, theoretically, one can put anything they want in that chunk of space.

Above applies to indicies also.

So with this we can think of the GR2 file as a shell. We can hollow out a shell and fill it with what we need. If we don't use all the space no big deal.

I have added a new class to the app - Registry. Everything that gets made (read in/saved to file) or destroyed ('hollowed out') has to go through the registry (like Windows). Thus this class is the overall master of the file. It knows where everything is, how much space is between things, what can be added, what can be removed, how big something is, etc.

With this we can take a GR2 file and replace it's 'guts' with the new vertex data, indicies, and names required. Thus we are not making new GR2 files per se, we are using existing ones as a host.

That's my course of action that I'm heading down currently
TheDarkWraith is offline   Reply With Quote
Old 01-04-12, 05:55 AM   #12
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
Default

sounds as if someone founds his destiny...

__________________


urfisch is offline   Reply With Quote
Old 01-04-12, 05:10 PM   #13
redcoat22
Sailor man
 
Join Date: Apr 2008
Posts: 48
Downloads: 8
Uploads: 0
Default

I follow this post with glee yet have little idea what everyone is saying. Good work lads.
redcoat22 is offline   Reply With Quote
Old 01-05-12, 03:10 AM   #14
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v1.0.507.0 released. See post #1

Almost all the architectural changes to the code are complete. I changed the name of the Registry class to Sentinel because it better describes what it's doing (looking out for and protecting the GR2 file).

Now when you open a file you will see the file's sentinel activated

The sentinel adds some overhead to loading, saving, and making changes. You'll see loading times increase some. It's needed though

If you want a small glimpse of what the sentinel is doing under the hood enable debug output under the misc tab. Once a file is loaded it will spit out what it's tracking (I disabled some items from the status report).

As there were a ton of changes I'm hoping for no bugs but realistically I expect some. Hopefully they are minor in nature.

Let me know if the sentinel is too sensitive (keeps 'barking' saying there's problems). It never 'barked' at me once and I tried many different files.

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 05:20 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.