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 10-02-11, 07:30 AM   #1
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Okay, next version of OH II full (1.4) will have a new Rongel Small Split Freighter ship that doesn't use the "Unified render controller", it's rendered with SH 5 bump map controller. There are currently some good things about it and there are some bad things that I know off.

Plus

-Flag doesn't cause freezing (flag will only freeze if other ship causes it first)
-Dynamic lighting that looks more like SH 5
-Guns and equiptment are rendered correctly

Minus

-No caustics
-No bump map (currently I have to choose between occlusion map and bump map)

Can't say yet about performance, didn't notice difference myself. This ship creates also reflections in the water. Uekel figured that one out, I just followed his example, credit goes to Uekel

Please remember that this is basicly a test, somethings may improve further. I hope that the big guys will make it possible to use new GR2 ships in the future, untill then we must accept some compromises.
Rongel is offline   Reply With Quote
Old 11-02-11, 07:57 AM   #2
TheBeast
The Old Man
 
Join Date: Jan 2010
Location: Lynnwood, WA
Posts: 1,533
Downloads: 888
Uploads: 23


Default

I've noticed that Weapons do not render correctly on imported ships.
They are using model from SH4_Guns_Radars.dat

SH5 contains all of the Merchant Weapons located in file
data\Library\ShipPart\guns_radars_01.GR2, .SIM, .ZON

To verify if the SH5 Weapons would work, I edited the .eqp file on a boat and used Stock SH5 in game weapons with basically the same result but the Weapons render black, not white as with the SH4 Models.

BTW, this model is missing its SHD 3D model completely.

Example .eqp file using SH5 Weapon names.
Code:
[Equipment 1]
NodeName=M01
LinkName=NULL
StartDate=19380101
EndDate=19431231
[Equipment 2]
NodeName=M01
LinkName=4.5In_Mk9_US
StartDate=19431231
EndDate=19451231
[Equipment 3]
NodeName=A01
LinkName=NULL
StartDate=19380101
EndDate=19421231
[Equipment 4]
NodeName=A01
LinkName=20mm_single_Oerlikon
StartDate=19421231
EndDate=19451231
[Equipment 5]
NodeName=A02
LinkName=NULL
StartDate=19380101
EndDate=19421231
[Equipment 6]
NodeName=A02
LinkName=20mm_single_Oerlikon
StartDate=19421231
EndDate=19451231
[Equipment 7]
NodeName=A03
LinkName=NULL
StartDate=19380101
EndDate=19430606
[Equipment 8]
NodeName=A03
LinkName=20mm_single_Oerlikon
StartDate=19430606
EndDate=19451231
[Equipment 9]
NodeName=A04
LinkName=20mm_single_Oerlikon
StartDate=19380101
EndDate=19430606
[Equipment 10]
NodeName=A04
LinkName=20mm_single_Oerlikon
StartDate=19430606
EndDate=19451231
[Equipment 11]
NodeName=L01
LinkName=reflector_base
StartDate=19420101
EndDate=19451231
[Equipment 12]
NodeName=L02
LinkName=NULL
StartDate=19380101
EndDate=19451231
[Equipment 13]
NodeName=P01
LinkName=2x2_version02
StartDate=19380101
EndDate=19451231
[Equipment 14]
NodeName=P02
LinkName=PT_Boat_Crew2
StartDate=19380101
EndDate=19451231
[Equipment 15]
NodeName=P03
LinkName=2x2_version01
StartDate=19380101
EndDate=19451231
[Equipment 16]
NodeName=P04
LinkName=NULL
StartDate=19380101
EndDate=19451231
[Equipment 17]
NodeName=P05
LinkName=1x10_version02
StartDate=19380101
EndDate=19451231
[Equipment 18]
NodeName=P06
LinkName=1X1_version01
StartDate=19380101
EndDate=19451231
[Equipment 19]
NodeName=A06
LinkName=NULL
StartDate=19380101
EndDate=19431231
[Equipment 20]
NodeName=A06
LinkName=20mm_double_Oerlikon
StartDate=19431231
EndDate=19451231
I have to ask, If we get basically the same results using stock weapons, why are we using up more virtual memory to load more weapons that do not render correctly either?
__________________
Fear me! I am, TheBeastBelow

SHIV-MediaFire | SHV-MediaFire

Last edited by TheBeast; 11-02-11 at 08:07 AM.
TheBeast is offline   Reply With Quote
Old 11-02-11, 09:39 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

We were using SH4's because they were rendering correctly. SH5's would not using the UnifiedRenderController.

SHDs are a thing of the past and do not exist in SH5. Shadows are done through the Granny interface now (GR2 files).

You see shadows from the SH5 guns because they are from a GR2 file.
TheDarkWraith is offline   Reply With Quote
Old 11-02-11, 09:47 AM   #4
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Quote:
Originally Posted by TheBeast View Post
I've noticed that Weapons do not render correctly on imported ships.
They are using model from SH4_Guns_Radars.dat

SH5 contains all of the Merchant Weapons located in file
data\Library\ShipPart\guns_radars_01.GR2, .SIM, .ZON

To verify if the SH5 Weapons would work, I edited the .eqp file on a boat and used Stock SH5 in game weapons with basically the same result but the Weapons render black, not white as with the SH4 Models.
Yep, when using Unified render contoller, the guns don't render correctly. So we have to decide if we take black SH 5 guns that cast shadows, or SH 4 guns that have texture, but no occlusion/shadow map. We decided that limited SH 4 guns are still better than the other option. The gun shadow is a bit distracting too, if the ship doesn't cast shadow.

If we take out the unified render controller, all guns work but the quality of the ship suffers, we lose caustics and visual damage.

You mentioned that you have white guns, are you using latest ship patches? Guns and searchlights should have a decent texture.
Rongel is offline   Reply With Quote
Old 11-02-11, 10:16 AM   #5
TheBeast
The Old Man
 
Join Date: Jan 2010
Location: Lynnwood, WA
Posts: 1,533
Downloads: 888
Uploads: 23


Default

Quote:
Originally Posted by Rongel View Post
Yep, when using Unified render contoller, the guns don't render correctly. So we have to decide if we take black SH 5 guns that cast shadows, or SH 4 guns that have texture, but no occlusion/shadow map. We decided that limited SH 4 guns are still better than the other option. The gun shadow is a bit distracting too, if the ship doesn't cast shadow.
A Shadow Model can easily be added to Models that are missing them. I suspect those that are missing their Shadow Model are SHIII imports?
Quote:
If we take out the unified render controller, all guns work but the quality of the ship suffers, we lose caustics and visual damage.
Can we add Granny Caustic Controller using GoblinEditor?
If so, maybe that is a option...
Quote:
You mentioned that you have white guns, are you using latest ship patches? Guns and searchlights should have a decent texture.
I am using the Merchant Ships added from the OH II v1.4 MOD.
Are they current?

I am just thinking about sytem reuirements increasing as the game footprint grows from loading models that really are not required.

Regards!
TheBeast
__________________
Fear me! I am, TheBeastBelow

SHIV-MediaFire | SHV-MediaFire
TheBeast is offline   Reply With Quote
Old 11-02-11, 10:30 AM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by TheBeast View Post
A Shadow Model can easily be added to Models that are missing them. I suspect those that are missing their Shadow Model are SHIII imports?

Can we add Granny Caustic Controller using GoblinEditor?
If so, maybe that is a option...
You're missing the point here. SHDs do not exist in SH5. All shadows are 'made' from the GR2 files. The Granny part of SH5 controls this.

I tried adding Granny caustics controller and couldn't get it to work. I think it actually CTD from it.
TheDarkWraith is offline   Reply With Quote
Old 11-02-11, 10:54 AM   #7
TheBeast
The Old Man
 
Join Date: Jan 2010
Location: Lynnwood, WA
Posts: 1,533
Downloads: 888
Uploads: 23


Default

Quote:
Originally Posted by TheDarkWraith View Post
You're missing the point here. SHDs do not exist in SH5. All shadows are 'made' from the GR2 files. The Granny part of SH5 controls this.

I tried adding Granny caustics controller and couldn't get it to work. I think it actually CTD from it.
Well hopefully, the work you have been doing with 3D Studeo and Reading GR2 files. You will be able to take a existing GR2 Model and replace the internal Gr2 3D Model with a new 3D Model and specify new Textures in the GR2 as well.

Does a 3D Model contain AO, UV Map info? Haven't really dug that deep with Hex Editor yet.
__________________
Fear me! I am, TheBeastBelow

SHIV-MediaFire | SHV-MediaFire
TheBeast is offline   Reply With Quote
Old 11-02-11, 11:00 AM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by TheBeast View Post
Well hopefully, the work you have been doing with 3D Studeo and Reading GR2 files. You will be able to take a existing GR2 Model and replace the internal Gr2 3D Model with a new 3D Model and specify new Textures in the GR2 as well.

Does a 3D Model contain AO, UV Map info? Haven't really dug that deep with Hex Editor yet.
A GR2 file is highly customizable (and it's this high level of customization that is causing me grief with the app). It can include a multitude of items. You could have 3 texture channels if you wanted it. If you use GrannyViewer to view a GR2 file it will show you everything you could want to know about it. Most of the VertexData for SH5 has two texture channels - one for the texture (UV) and the second for the AO. The GR2 file doesn't use specific names for each texture channel. They seem to be able to be called anything. I've seen MaxChannel 1 and 2, AdditionalChannel 1 and 2, etc.

Come to think about it I need to add a renderer for the texture channels in the app so one can see them in a 2D image

My app will spit out a TON of debug output that will tell you where it found/read everything. You can use this output to go directly to that place in file and make changes if you wish. I haven't added the ability to edit that data from the app yet.
TheDarkWraith is offline   Reply With Quote
Old 11-02-11, 12:49 PM   #9
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Quote:
I am using the Merchant Ships added from the OH II v1.4 MOD.
Are they current?
There is a patch to OH II 1.4 in the first page of the OH thread, it upgrades the ships too
Rongel is offline   Reply With Quote
Old 09-26-12, 06:43 PM   #10
zachanscom
Electrician's Mate
 
Join Date: Jul 2011
Posts: 135
Downloads: 3
Uploads: 0
Default

Quote:
Originally Posted by Rongel View Post
Okay, next version of OH II full (1.4) will have a new Rongel Small Split Freighter ship that doesn't use the "Unified render controller", it's rendered with SH 5 bump map controller. There are currently some good things about it and there are some bad things that I know off.

Plus

-Flag doesn't cause freezing (flag will only freeze if other ship causes it first)
-Dynamic lighting that looks more like SH 5
-Guns and equiptment are rendered correctly

Minus

-No caustics
-No bump map (currently I have to choose between occlusion map and bump map)

Can't say yet about performance, didn't notice difference myself. This ship creates also reflections in the water. Uekel figured that one out, I just followed his example, credit goes to Uekel

Please remember that this is basicly a test, somethings may improve further. I hope that the big guys will make it possible to use new GR2 ships in the future, untill then we must accept some compromises.
you can set the occlusion map as a transparent layer directly over the diffuse texture and just use the bump map.

gimp can do it using color to alpha, photoshop does it with a plugin called alpha works to create the transparency.
zachanscom is offline   Reply With Quote
Old 09-26-12, 06:58 PM   #11
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by zachanscom View Post
you can set the occlusion map as a transparent layer directly over the diffuse texture and just use the bump map.

gimp can do it using color to alpha, photoshop does it with a plugin called alpha works to create the transparency.
Thank you for the info.
Do you mean an alpha channel or what?

Anyway, don't forget that dat units are not fully compatible with SH5 gfx engine, since this game was designed over the GR2 format.

It is to say that what works in SHIV, doesn't necessarily work in SH5, as far as dat units are concerned. The only way to know if some setting is going to work, is to test it in game.
gap is offline   Reply With Quote
Old 09-26-12, 09:47 PM   #12
zachanscom
Electrician's Mate
 
Join Date: Jul 2011
Posts: 135
Downloads: 3
Uploads: 0
Default

not the alpha channel of the texture, but a feature to change the white pixels of the occlusion map transparent then overlay the translucent occlusion map directly onto the ship's texture.
zachanscom 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 02:12 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.