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-03-19, 08:24 AM   #1
Seaowl
Sailor man
 
Join Date: Nov 2018
Posts: 43
Downloads: 78
Uploads: 0
Default

Quote:
I know very little about rendering programs but how do your work with Cycles Renderer applies with the textures and materials we see in game?
Due to deleting the original material, my first import of the lighthouse looked like that:



So I tuned Specularity down and Roughness up.
(and applied face and edge smoothing of course)
These changes are transfered via the mtl. file.
In that case - as far as I´ve seen - especially by the Ns., Ks. and Illum values.
Is that the way, how the specular map works?

The Renderer itself appears only indirectly in game.
For exampel: the way you are doing AO-maps is determined by the specific renderer.
After a lot of efforts, I´m meanwhile able to create AO-maps in Cycles
(In the beginning they were pitch black), in Eevee or so, for whatever reason,
I´m at the moment not.

Would be interested, if AO-maps created with Cycles look differend from AO-maps created with other Renderers? Or if differences are only a matter of settings?

But concerning AO-maps: I would be thankful for every tip,
how to set up options and values to achieve good results in SH5.

Thanks at this point at the creator of ObjSort too:
Have to find the post with the link again, where I downloaded it from,
to give proper credit.
A great tool, that works very well and saves me a lot of time!

Quote:
That's the bunker I have imported in game for TWoS. In general I wouldn't recommend you to use modded files for your own mods.


Initially I intended to use the church file as shell-file.
But when you open it, the church itself is miles away from zero point.
Annoyed by scrolling, I choose the bunker file instead and it was a good decision.
It´s a great import.
As you mentioned above, it´s cool to have the possibility to add AO- and Normalmaps.
And likely sooner or later, I will be able to make use of the damage and reflection model too.
Why there is an additional Bump map material: Bunker_Large_AB?
Would I be able to apply a Normalmap and a Bumpmap at the same time?

Until now I had no problems with the bunker file.
After all I read, I have expected much more instability.

Quote:
IIRC, units' rendering radius in stock game is 20 km. Beyond that limit, all the units are treated as immaterial points. One of TDW's patches can increase this limit.
I need to test this again and moreover I will try to find this patch of TDW.

Quote:
Do you have SHIV? If not, just check one of the DAT ships included in TWoS to understand how the unified render controller works. It should be okay using it on units as well as on terrain objects.

Yes, I have SH4. I will try to import Flakmonkeys lighthouse with SH4 features into SH5.
But – as far as I remember – the trouble with using unified render controller in SH5 is, that it doesn´t work with land units or terrain objects?

Yesterday, I managed to import the lense into the AmmoBoxGR2.
I dropped this file into the library.
It was easy to change the bone-position and to modify the lighthouse.eqp.
Problems started, as I attached a corresponding sim-file and tried to set the ParticleGenerator.
The lense vanished in Game as well as in Goblineditor.
Will experiment a bit more.
In the next step, I plan to transform the TDW_FXU_lighthouse_flare into a lense.sim.

And since you made me curious about this HarborController, I will have a look at it, as soon as possible.






Seaowl is offline   Reply With Quote
Old 02-03-19, 09:26 AM   #2
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Quote:
Originally Posted by Seaowl View Post
Thanks at this point at the creator of ObjSort too:
Have to find the post with the link again, where I downloaded it from,
to give proper credit.
A great tool, that works very well and saves me a lot of time!
Your welcome.


http://www.mediafire.com/file/lzcrdp...jjf/ObjSort.7z

Last edited by Jeff-Groves; 02-03-19 at 10:36 AM.
Jeff-Groves is offline   Reply With Quote
Old 02-03-19, 11:03 AM   #3
Seaowl
Sailor man
 
Join Date: Nov 2018
Posts: 43
Downloads: 78
Uploads: 0
Default

Thanks again!


Helped a lot to clear the first hurdle.
In continuous use now...
Seaowl is offline   Reply With Quote
Old 02-03-19, 11:42 AM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Jeff-Groves View Post
Jeff, can you please remind me on the usage of this tool of you?
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-03-19, 11:39 AM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Seaowl View Post
Due to deleting the original material, my first import of the lighthouse looked like that:
So you left GR2 Editor to update material properties from the mtl file of the imported model, didn't you?
That's a cool feature of GR2 Editor that IIRC is missing from Silent3ditor though I often skip the material import part and I keep stock materials. My bad for doing that: stock material settings are quite dull.

Quote:
Originally Posted by Seaowl View Post
So I tuned Specularity down and Roughness up.
(and applied face and edge smoothing of course)
These changes are transfered via the mtl. file.
In that case - as far as I´ve seen - especially by the Ns., Ks. and Illum values.
In other words you use Cycles for setting up the material properties that get exported in the .mtl file. Good

Quote:
Originally Posted by Seaowl View Post
Is that the way, how the specular map works?
See the specularity and roughness parameters stored in .mtl files as the luminosity/contrast knobs of an old TV. They can change the global appearance of an image on screen, but if the screen displays an uniform background, messing with those knobs won't improve that much its look.
More specifically, the roughness parameter governs the strength of the normal map; if no bump/normal map is used, I think roughness will do nothing. Conversely, the specularity parameter governs the intensity of the specular map, i.e. the strength of the texture used for defining the shininess of different portions of the same material; the lighter a portion of specular map, the more shiny the corresponding material will be rendered. In your case, using no specular map is equal to using a full white specular map which, on turn, determines all the strength of the specularity parameter to be applied to the material(s), with overly bright or dark objects showing no significant highlights (as with your first lighthouse import which looked 'entirely bleached').

For more on specular map and on their usage in conjunction with bump/normal maps see the following links please:

https://wiki.splashdamage.com/index.php/Specular_Maps
http://www.rastertek.com/dx10tut21.html
https://learnopengl.com/Lighting/Lighting-maps

Talking in general, specular maps are quickly obtained from diffuse maps, by desaturating them, by enhancing their contrast, by reducing their gamma and possibly by "cutting" all the dark/medium greys so they look black. Nonetheless, the reflective properties of various materials painted on the same texture have to be taken in consideration (wood or concrete are not as glossy as metal or wet stones), so different portions of the same specular map might need different treatments. Moreover, for very nice effects, you might want to blend on your specular maps fine detail which is not visible on the diffuse texture, so to simulate small surface features of glossy or semi-glossy materials that become visible only when we observe them from certain angles relative to the incident light

Quote:
Originally Posted by Seaowl View Post
The Renderer itself appears only indirectly in game.
For exampel: the way you are doing AO-maps is determined by the specific renderer.
After a lot of efforts, I´m meanwhile able to create AO-maps in Cycles
(In the beginning they were pitch black), in Eevee or so, for whatever reason,
I´m at the moment not.

Would be interested, if AO-maps created with Cycles look differend from AO-maps created with other Renderers? Or if differences are only a matter of settings?


But concerning AO-maps: I would be thankful for every tip,
how to set up options and values to achieve good results in SH5.
AO maps are another topic. They are pre-rendered shadows based on the geometry of each object and on light rays simulating a diffuse light. Due to their topological nature, they require to be 'baked' on non-overlapping UV projections. I know Blender can bake decent AO maps, but I never used that feature. For my AO maps I use Mod Tool, the free version of Autodesk Softimage which, as I was said, was the tool used by the devs.

Quote:
Originally Posted by Seaowl View Post
Thanks at this point at the creator of ObjSort too:
Have to find the post with the link again, where I downloaded it from,
to give proper credit.
A great tool, that works very well and saves me a lot of time!
Correct me if I am wrong: is that the tool that sorts objects files for secondary (AO) UV map importing?

If yes, I think that tool is by Jeff Groves. I would appreciate if you could find its link and post it here

EDIT: ops... Jeff beated me to it LOL lol


Quote:
Originally Posted by Seaowl View Post
Initially I intended to use the church file as shell-file.
But when you open it, the church itself is miles away from zero point.
Annoyed by scrolling, I choose the bunker file instead and it was a good decision.
It´s a great import.
Thank you sir

The big horizontal offset of stock meshes shouldn't have discouraged you though. I don't know exactly why devs set their objects that way (probably each model was part of a big scene with many objects that had to be arranged far from the origin, and when they exported them they didn't bother centering them again), but the displacement of stock meshes won't affect the centering of the new mesh. In any case, for terrain objects, only the vertical position of the object is important.

Quote:
Originally Posted by Seaowl View Post
As you mentioned above, it´s cool to have the possibility to add AO- and Normalmaps.
And likely sooner or later, I will be able to make use of the damage and reflection model too.
Those are very easy: you just need to import a low poly version of your model, and to link the proper controllers to the corresponding bones.

Quote:
Originally Posted by Seaowl View Post
Why there is an additional Bump map material: Bunker_Large_AB?
Would I be able to apply a Normalmap and a Bumpmap at the same time?
Don't ask me that. I don't know what's the exact meaning of this "additional bump map". It uses the same texture map as the "bump map" (which is actually a normal map by the way), and it is probably used for enhancing its effect, creating extra roughness. And yes, they are used at the same time.

Quote:
Originally Posted by Seaowl View Post
Yes, I have SH4. I will try to import Flakmonkeys lighthouse with SH4 features into SH5.
But – as far as I remember – the trouble with using unified render controller in SH5 is, that it doesn´t work with land units or terrain objects?
It doesn't? I never heard that, but you could be right. Did you read that information on the forum?

Quote:
Originally Posted by Seaowl View Post
Yesterday, I managed to import the lense into the AmmoBoxGR2.
I dropped this file into the library.
It was easy to change the bone-position and to modify the lighthouse.eqp.
Problems started, as I attached a corresponding sim-file and tried to set the ParticleGenerator.
The lense vanished in Game as well as in Goblineditor.
Will experiment a bit more.
In the next step, I plan to transform the TDW_FXU_lighthouse_flare into a lense.sim.
Try looking into FX Update how TDW added lighthouse flare effect to the stock ports

Quote:
Originally Posted by Seaowl View Post
And since you made me curious about this HarborController, I will have a look at it, as soon as possible.
Let me know if you find anything interesting
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-03-19, 11:44 AM   #6
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

The objsort program sorts through different obj files and arraigns the info to a more standard way that TDW's program didn't account for at the time.
I'll link the original example here.
http://www.mediafire.com/file/cmc5rg...-files.7z/file

Look at the included obj files in notepad or any text program and you'll see the issue objsort fixes.
(I forgot this file download was still active!)

Notice how things like v and vn along with f and vt are all sorts of messed up?
objsort reads the file, buffers all this then prints out a more common format.

No idea if this issue was ever fixed in TDW's program.

Last edited by Jeff-Groves; 02-03-19 at 12:25 PM.
Jeff-Groves is offline   Reply With Quote
Old 02-03-19, 12:51 PM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Jeff-Groves View Post
The objsort program sorts through different obj files and arraigns the info to a more standard way that TDW's program didn't account for at the time.
I'll link the original example here.
http://www.mediafire.com/file/cmc5rg...-files.7z/file

Look at the included obj files in notepad or any text program and you'll see the issue objsort fixes.
(I forgot this file download was still active!)

Notice how things like v and vn along with f and vt are all sorts of messed up?
objsort reads the file, buffers all this then prints out a more common format.

No idea if this issue was ever fixed in TDW's program.
Okay, I will try you tool, I hope it will help with the secondary UV map importing, because often GR2 editor messed it up. IIRC at some point TDW addressed the problem and partly fixed his importing routine, but the preparation of the AO model and its importing are still a very delicate and problematic step of GR2 Editing. I think that if vertex order and UV faces are not identical in the AO model as in the main model, errors are still very likely...
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-03-19, 01:11 PM   #8
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Quote:
Originally Posted by gap View Post
Okay, I will try you tool, I hope it will help with the secondary UV map importing, because often GR2 editor messed it up. IIRC at some point TDW addressed the problem and partly fixed his importing routine, but the preparation of the AO model and its importing are still a very delicate and problematic step of GR2 Editing. I think that if vertex order and UV faces are not identical in the AO model as in the main model, errors are still very likely...
I'll have to go back through that thread and refresh my mind.
I do know I pointed out better ways to get imports to work and give a smaller GR2 file size. I actually started the code to add to objsort back then that would produce a file ready for import that solved a lot of issues and jumped past the programs problems.
Pretty sure he started hateing me again about that time.

Get me an example with all the needed files and send it to my e-mail.
Without going back through that thread? I'm pretty sure you can hand edit the obj files to fix somethings.
Not the best way to do it but it can be coded.

Last edited by Jeff-Groves; 02-03-19 at 01:26 PM.
Jeff-Groves is offline   Reply With Quote
Old 02-03-19, 01:30 PM   #9
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Jeff-Groves View Post
Get me an example with all the needed files and send it to my e-mail.
Without going back through that thread? I'm pretty sure you can hand edit the obj files to fix somethings.
Not the best way to do it but it can be coded.
You are asking me to look back into files four or five years old. Soon we will need to import in game models of some complexity requiring an AO map, and probably we will get plenty of examples to study
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-03-19, 01:34 PM   #10
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

I seem to be fairly good at working around issues.


I also know the secret (really not that secret) as to how the GR2 stores models and how TDW's program can be tricked.
May be time to start a new thread about things like this.
Jeff-Groves is offline   Reply With Quote
Old 02-03-19, 04:45 PM   #11
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Quote:
Originally Posted by gap View Post
You are asking me to look back into files four or five years old. Soon we will need to import in game models of some complexity requiring an AO map, and probably we will get plenty of examples to study
Start reading from page 137 or so in the TDW extractor thread.
I explain a lot there. (Try to ignore the bad stuff. )
I'm sure there's another thread somewhere that gives even better information.
Maybe around page 105 of same thread.

Last edited by Jeff-Groves; 02-03-19 at 05:12 PM.
Jeff-Groves 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 08:01 AM.


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.