![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
01-02-12, 04:59 PM
|
#1 |
|
Black Magic
![]() |
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. |
|
|
01-03-12, 01:59 AM
|
#2 |
|
Lieutenant
![]() Join Date: Mar 2008
Location: the deep
Posts: 251
Downloads: 217
Uploads: 7
|
fantastic stuff TDW
![]() ![]()
|
|
|
01-03-12, 02:30 AM
|
#3 |
|
Black Magic
![]() |
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
|
|
|
01-03-12, 04:26 AM
|
#4 |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
|
|
|
01-03-12, 07:33 AM
|
#5 |
|
Lieutenant
![]() Join Date: Mar 2008
Location: the deep
Posts: 251
Downloads: 217
Uploads: 7
|
that is absolutly fantastic, hats of to you TDW.
![]() will we be able to produce an IX Boat soon? ![]() please please. ![]()
|
|
|
01-03-12, 07:55 AM
|
#6 |
|
Grey Wolf
![]() Join Date: Apr 2005
Location: Bucharest, Romania
Posts: 845
Downloads: 547
Uploads: 0
|
TDW, please check your PM. Thank you.
|
|
|
01-03-12, 10:26 AM
|
#7 |
|
Black Magic
![]() |
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
|
|
|
01-03-12, 10:13 AM
|
#8 | |
|
Black Magic
![]() |
Quote:
You'll see some of those details being implemented in upcoming versions...
|
|
|
|
01-03-12, 04:27 PM
|
#9 | |
|
Watch
![]() Join Date: May 2005
Posts: 27
Downloads: 0
Uploads: 0
|
Quote:
I still get the error with the bounding spere, but it does not cause a problem. |
|
|
|
01-03-12, 04:47 PM
|
#10 | |
|
Black Magic
![]() |
Quote:
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... |
|
|
|
01-03-12, 10:48 PM
|
#11 |
|
Black Magic
![]() |
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 |
|
|
01-04-12, 05:55 AM
|
#12 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
sounds as if someone founds his destiny...
__________________
|
|
|
01-04-12, 05:10 PM
|
#13 |
|
Sailor man
![]() Join Date: Apr 2008
Posts: 48
Downloads: 8
Uploads: 0
|
I follow this post with glee yet have little idea what everyone is saying. Good work lads.
|
|
|
01-05-12, 03:10 AM
|
#14 |
|
Black Magic
![]() |
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.
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
