![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1891 | |
Black Magic
![]() |
![]() Quote:
The material file for those lifeboat parts exposed a flaw in my mtllib reader. The map_Ka and map_Kd had some entries that it didn't recognize: -s x y z where x,y, and z were float values. The -s means there are 3 floats after it that describe the texture scaling. I'm not quite sure how to utilize these values. I modified the app so that it can handle these (but no others) by reading them in but other than that it does nothing with them. You might be seeing strange renderings because of these texture scale values present in the mtllib file. Try editing the mtllib file and removing these -s entries from map_Ka and map_kd and see if you don't see the same thing you were seeing (same problem). Last edited by TheDarkWraith; 03-03-13 at 03:07 PM. |
|
![]() |
![]() |
![]() |
#1892 |
Nub
![]() Join Date: Jul 2012
Posts: 4
Downloads: 6
Uploads: 0
|
![]()
Hello TheDarkWraith,
can You send me the current Version of your GR2 Tool? Thank you very much P.S. Your PO box is full ![]() Regards, Wurmi |
![]() |
![]() |
![]() |
#1893 |
Black Magic
![]() |
![]()
You can find it at post #1 of this thread. I'll be releasing a new version here shortly that will allow files with animations and trackgroups again.
|
![]() |
![]() |
![]() |
#1894 |
Nub
![]() Join Date: Jul 2012
Posts: 4
Downloads: 6
Uploads: 0
|
![]()
Thanks
![]() |
![]() |
![]() |
![]() |
#1895 | |
Ace of the Deep
![]() |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#1896 | |
Black Magic
![]() |
![]() Quote:
Saved the new file. Opened in Granny Viewer and all is good (looks just like the app): Opened in Goblin and not even close: Now I just have to sit down and analyze all this to figure out what Goblin/SH5 is doing in regards to materials/subsets ![]() Being that it rendered fine in Granny Viewer means the app is working correctly. Goblin/SH5 just does something funny with materials/subsets... |
|
![]() |
![]() |
![]() |
#1897 |
Black Magic
![]() |
![]()
Looks like I finally figured out what's going on with Goblin/SH5. You can only define 2 materials for each mesh. The third material (if defined) is an opacity or something else map (not quite sure but if you define a third material that has a texture Goblin/SH5 crashes). If a third material is defined it has to have no texture and no maps.
Now that's not all. The material bindings need to be defined in the order you will be using the materials. A subset can use the same material as another subset. Materials added to a mesh's material bindings need to have maps defined (no textures). The material can have only 1 map defined - Diffuse. Obviously the SH5 devs didn't understand the Granny system or they imposed their own set of rules ![]() |
![]() |
![]() |
![]() |
#1898 |
Black Magic
![]() |
![]()
v1.1.355.1 released. See post #1
Lifted restriction on GR2 files that contain trackgroups and/or animations (so yes you can now load any air unit now) Fixed bugs reported/found few posts up I'm working on adding the TrackGroups and Animations tabs to the app so the end-user can edit the data in them. Should be available in next version. I have tested modifying/saving GR2 files that contain animations and/or trackgroups and didn't encounter any problems. That is not to say it is 100% perfect. Always save, exit the app, and reload the GR2 file to ensure it doesn't have any problems if it contains any of these. Also view in Granny Viewer to ensure the animations work correctly. You have been warned ![]() ![]() |
![]() |
![]() |
![]() |
#1899 |
Ace of the Deep
![]() |
![]()
So, from what you said, if I understand correctly, each mesh cannot contain more than 2 materials with maps of textures defined? No matter how many subsets there is.
Hmm, that is workable. Annoying, but workable. |
![]() |
![]() |
![]() |
#1900 | |
Black Magic
![]() |
![]() Quote:
I've been working on something that will fix this problem. Still working on it though ![]() |
|
![]() |
![]() |
![]() |
#1901 |
Black Magic
![]() |
![]()
v1.1.356.1 released. See post #1
This version fixes a bug I found. The bug only appeared if you made multiple changes to the file and saved the file multiple times during your 'session' with the app (like after every change) OR you were deleting items from the GR2 file or the app was reducing the size of the GR2 file for whatever reason. The bug would corrupt the GR2 file. ![]() |
![]() |
![]() |
![]() |
#1902 |
Ace of the Deep
![]() |
![]()
quick question: if I have 3 maps defined in 1 material (diffuse/AO/bump), I still can have a second material assigned to the mesh, correct? (hopefully?)
I will be testing this all tomorrow - need to re-do all the uvws for the lifeboat. |
![]() |
![]() |
![]() |
#1903 |
Black Magic
![]() |
![]()
By all accounts yes. Each material can have any number of maps but each mesh can only have 2 materials assigned to it (SH5 restriction).
|
![]() |
![]() |
![]() |
#1904 |
Black Magic
![]() |
![]()
v1.1.358.1 released. See post #1
While coding in the TrackGroups tab I noticed that the number of trackgroups displayed was doubled ![]() |
![]() |
![]() |
![]() |
#1905 |
Mate
![]() Join Date: Nov 2011
Posts: 53
Downloads: 4
Uploads: 0
|
![]()
Does this still only work with your version on granny? (sorry cant check right now)
|
![]() |
![]() |
![]() |
|
|