![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
01-17-13, 05:47 PM
|
#1 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
Adding a filter to determine where to look for the given string (mesh/texture/bone, etc.) would be a cool feature though
|
|
|
|
01-17-13, 05:58 PM
|
#2 |
|
Ace of the Deep
![]() |
|
|
|
01-17-13, 06:14 PM
|
#3 |
|
Black Magic
![]() |
Just noticed that there has been a constant bug in the importers. The bug deals with Calculating tangents and binormals checkbox on the importer screen. If you set that to unchecked the app was still re-calculating the tangents and binormals. This has been fixed in v1.1.279.1
|
|
|
01-17-13, 06:27 PM
|
#4 |
|
Black Magic
![]() |
I released v1.1.279.1 because of the bug I found in the imports and so that you all can start testing/playing around with adding new subsets to a mesh. I was unable to find any errors but if you do please post them in this thread. You can find the new version at post #1 of this thread.
All new subsets added will default to the first material listed in the GR2 file as their material. You'll need to manually edit this or add new materials for it. Still working on the ability to move a subset of a mesh (currently you have to move the entire mesh [all of it's subsets] if you want to move it).
|
|
|
01-17-13, 06:41 PM
|
#5 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
|
|
|
01-17-13, 07:04 PM
|
#6 |
|
Black Magic
![]() |
After some thought on how to implement the ability to move subsets of a mesh vice the whole mesh I know how I will implement it. I have a coordinates class that is responsible for keeping track of position, rotation, scale, etc. of any object. It contains all the support functions for manipulating these values also. What I will do is have each mesh subset create an instance of this coordinates class. Thus each subset will now have the ability to move, rotate, and scale. Now just to update the code to support this
|
|
|
01-18-13, 12:04 PM
|
#7 |
|
Black Magic
![]() |
I knew the day was going to come when I would have to restructure my base classes. I was hoping that day was still a long ways away but the time had come to hunker down and do it. In order to give mesh subsets the ability to position, rotate, and scale I needed something that C# doesn't allow: multiple inheritance. Since I cannot have a class inherit from multiple base classes I had to restructure all my base classes. The benefit of this is the aforementioned and also reduced a lot of redundant methods and properties (thus saving memory). I have released v1.1.281.1 and you can find it at post #1. All this new version is is the previous version with all the base classes restructured and redundancy removed. Many, many changes were made and thus I hope there are no errors or bugs. You all can test this and tell me if you notice anything strange or notice any errors.
Now I can start coding the mesh subsets ability to translate, rotate, and scale |
|
|
02-03-13, 04:00 PM
|
#8 |
|
Watch
![]() Join Date: Dec 2009
Posts: 20
Downloads: 91
Uploads: 0
|
Lovely stuff.
|
|
|
02-03-13, 08:56 PM
|
#9 |
|
Black Magic
![]() |
Updated the app so that it can recognize more map usages such as those defined in that Augustus.GR2 file. I also updated the app so that if it finds a map usage it doesn't know it will simply ignore it (before it threw an error). That Augustus.GR2 file exposed some major errors in my app that I also fixed. There is one 'error' though that I cannot get my head around.
This 'error' is a rendering error and it's due to not reading the vertices correctly. The vertex component names are not unfamiliar and I've loaded SH5 GR2 files that contain the same 7 vertex component names defined. The problem is this Augustus.GR2 file has X,Y, and Z texture coordinates! I cannot find where the GR2 file defines that the vertex data contains a Z texture coordinate. Once I can figure that out I will be able to read the vertex data correctly and it will render correctly. So yes this means I was able to successfully open a previously compressed GR2 file with the app and render it Now to figure out and fix this 'error'...
|
|
|
02-03-13, 08:59 PM
|
#10 |
|
Ace of the Deep
![]() |
well, there is a slight problem I'm having with importing multiple subsets:
The original mesh has no problem, however all the subsets do. In the GR2Viewer - all textures are proper. Even in GrannyViewer they are good. However, in game and goblin editor - the textures are all messed up. ![]() And here's how it looks like in game ![]()
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
