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


Default

Quote:
Originally Posted by gap View Post
What do you think? can I set a new texture and save the file as normally, or GR2 editor would screw it, due to the image errors?

Awesome, you are disclosing a new world to me! I also start understanding why your custom characters crashed Goblin: pointing to a action absent from the game folder (I was opening your files from the MODS folder with OH disabled), the editor probably encountered an unexpected exception
I wouldn't set a new texture for two reasons:
1) my app will more than likely corrupt the file due to not reading the image data and the images themselves from the file (thus it will not write them back to a new file)
2) I'm pretty sure that there are no textures for a certain reason. That reason being the game 'fills' them in as needed. Think about it like this: if material has no texture defined then game is free to substitute whatever it needs but if material has texture defined game uses what is defined. So I'm fairly certain that if you set a texture then that is the only texture that will ever be used - i.e. there will be no variety.

Yes, Goblin was more than likely crashing because it couldn't find the 'actions' I defined for my characters on the PT boat.
TheDarkWraith is offline   Reply With Quote
Old 02-25-14, 10:45 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
I wouldn't set a new texture for two reasons:
1) my app will more than likely corrupt the file due to not reading the image data and the images themselves from the file (thus it will not write them back to a new file)
Yes, I was guessing the same

Quote:
Originally Posted by TheDarkWraith View Post
2) I'm pretty sure that there are no textures for a certain reason. That reason being the game 'fills' them in as needed. Think about it like this: if material has no texture defined then game is free to substitute whatever it needs but if material has texture defined game uses what is defined. So I'm fairly certain that if you set a texture then that is the only texture that will ever be used - i.e. there will be no variety.
I wish I could believe that, but I have my doubts about it; mostly for three reasons:

- the Willys Jeep model was also missing its texture: it was set in the shipcargo GR2 file, but devs forgot to put it in the tex folder. The rifle gun having no texture assigned at all might be (yet) another blunder of the kind

- the rifle model looks quite basic, and its UV map covers only a little part of the UV space. It is as well possible that devs purposedly decided to give it up before finishing it.

- all the other character parts are rendered with their textures by Goblin. I don't see why only the low poly rifle model should have configurable textures when no one would notice them anyway.

Quote:
Originally Posted by TheDarkWraith View Post
Yes, Goblin was more than likely crashing because it couldn't find the 'actions' I defined for my characters on the PT boat.
yep, not only the actions must be in the scripts folder: waypoint_info.txt must also be located within the game folder.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-26-14, 08:46 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Working on making a new GR2 file for the sub loops patch for testing and noticed that I forgot to code in the ability to edit the model's transform data in the GR2 file. I added the code so that this can now be edited and is available starting in v1.1.446.1.

Why did I need to be able to edit the model's transform data? The coastal guns are located off center. Whoever made them had their meshes located at a point away from the origin of the model's world. Thus I needed to get them centered again. To edit a model's transform data go to the Bones tab and right click on the model interested in and select Edit (ensure Bones show is checked and the model interested in is checked also).

The model's transform effects where all the bones for each skeleton of the model are located in 3D space. The bones for the coastal gun were off-center also. When I looked at the model's transform data it's position was off center and thus the reason why the bone's were offcenter:



Notice the model's position data in the screenshot above. I set the model's X and Z position to 0 to get the bones located back at the origin. When I did this the meshes were still located off center. Thus I coded in a very powerful new feature If you edit the model's transform it will ask you if you want to update all the meshes defined for the model with the new transform data from the model. By saying yes to this the app updated all the meshes with the change in position of the model's position data thus moving them back to center If I had changed the scale or rotation data of the model the app would've updated all the meshes with those changes also. To make the changes permanent for the meshes you have to go to each mesh and press the Update button followed by the Store button. Why did I do this? Well say there is one or more meshes you didn't want updated with the new delta transform data from the model. By clicking the Reset button for each of those meshes you will remove the delta transform update from them

Here is the model's position data updated so that X and Z are 0:


And after saying yes to update all meshes they are now rendered where I wanted them to be (right at world origin):



v1.1.446.1 released. See post #1

TheDarkWraith is offline   Reply With Quote
Old 02-27-14, 03:36 AM   #4
tonschk
Sea Lord
 
Join Date: Mar 2007
Posts: 1,897
Downloads: 172
Uploads: 0
Default



Quote:
Originally Posted by TheDarkWraith View Post
v1.1.446.1 released. See post #1

__________________
What we do in life echoes in Eternity
tonschk is offline   Reply With Quote
Old 02-28-14, 01:36 PM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
Working on making a new GR2 file for the sub loops patch for testing...
Sorry, during the last few days I had problems with my web connection and little time for modding; I have nonetheless cleaned up my lookout bunker model (which we can also use a magnetic loop station until we get a proper model) and started importing it

On a side note, while working with GR2 Editor I have met the following bugs:
  • starting with v 1_1_442_1, your editor resets the parent bones of all the bones to -1 (world);

  • do the following:
    • open a GR2 file;
    • edit the file;
    • click on Window's close button (top right 'x' icon)
    • click on the 'cancel' button
    the viewport stops working. If you close the model currently in memory (menu 'file', close 'all', and try opening a gr2 file again, you will get a "reference to an object not set to an object instance" exception. Reproduced this bug many times with different versions of your editor

Quote:
Originally Posted by TheDarkWraith View Post
...noticed that I forgot to code in the ability to edit the model's transform data in the GR2 file. I added the code so that this can now be edited and is available starting in v1.1.446.1...
Nice!
By the way, have you by any chance looked into why Beaufort's rear turret is affected by trasform data, but not its barrels, and why Granny Viewwer and GR2 editor show them in a different position than Goblin?

http://www.subsim.com/radioroom/show...postcount=2259

Quote:
Originally Posted by TheDarkWraith View Post
...I coded in a very powerful new feature If you edit the model's transform it will ask you if you want to update all the meshes defined for the model with the new transform data from the model. By saying yes to this the app updated all the meshes with the change in position of the model's position data thus moving them back to center
Awesome, thank you!
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-28-14, 03:30 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
On a side note, while working with GR2 Editor I have met the following bugs:
  • starting with v 1_1_442_1, your editor resets the parent bones of all the bones to -1 (world);
  • do the following:
    • open a GR2 file;
    • edit the file;
    • click on Window's close button (top right 'x' icon)
    • click on the 'cancel' button
    the viewport stops working. If you close the model currently in memory (menu 'file', close 'all', and try opening a gr2 file again, you will get a "reference to an object not set to an object instance" exception. Reproduced this bug many times with different versions of your editor

v1.1.447.1 released. See post #1
This version fixes the bugs reported above

As far as the parent indexes being reset to -1 in v1.1.446.1 that was throwing me for a loop for the past day. I changed the model's position data to 0 for X and Z thus moving the coastal defense's meshes to the origin. I would save the file and then view it in Granny Viewer - all was well. I would view it in Goblin - only the barrel would show! Couldn't figure out what the hell was going on. Then I finally remembered an option I had in the app to render the bones as a hierarchy. I set that option on and loaded my new coastal defenses loop GR2 file and noticed that all the bones' parents were world. I loaded up the original coastal defense GR2 file and it had the proper hierarchy. It was then that I investigated my app to see why the bones were all getting their parent set to World. I found the error and corrected it (error was introduced when I used multiple threads to read in all the bones). Now looking at my updated coastal defense loop GR2 file it's correct (and renders correctly in Goblin):
TheDarkWraith is offline   Reply With Quote
Old 02-28-14, 05:15 PM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
v1.1.447.1 released. See post #1
This version fixes the bugs reported above


Two little requests for making the editing of large files easier:

could you add a "global tree" tab (or whatever you want to call it). It should be an improved version of the bone tree view, with meshes, subsets, materials and textures sorted hierarchically under each bone according to their usage. This way one could spot at first glance stuff which gets used on each mesh/bone.

What about implementing the "search item by name" function which I had suggested a while back?

...and since we are at it: is there a way that we can preview equipments and linked objects (as characters) on the model currently previewed?
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-28-14, 10:13 PM   #8
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default UV map problems (again)

Hi TDW, please see the image attached below.

I have again the same problem I had with the diffuse UV map getting messed up, this time with the AO one, and though wrapping the model correctly, the diffuse map is previewed is a 2 x 2 matrix, as it was with the balloon model (handn't you fixed that? )

If it can help, I am ready to send you my files (obj files, textures, and GR2 file I am currently working on).

__________________
_____________________
|May the Force be with you!|
...\/
gap 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:42 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.