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 11-02-11, 11:00 AM   #556
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
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   #557
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 859
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   #558
zachanscom
Electrician's Mate
 
Join Date: Jul 2011
Posts: 134
Downloads: 2
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   #559
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
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   #560
zachanscom
Electrician's Mate
 
Join Date: Jul 2011
Posts: 134
Downloads: 2
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
Old 09-24-16, 08:37 PM   #561
kevinsue
Der Einzelgänger
 
kevinsue's Avatar
 
Join Date: Apr 2013
Location: Cairns, Australia
Posts: 583
Downloads: 363
Uploads: 3
Support

It's a shame that some of these old but very informative threads get lost over time and only found by stumbling across them by accident.
__________________
Best Regards....Kev*

"The finest Captain I ever crossed swords and set sail with"
kevinsue is offline   Reply With Quote
Old 09-25-16, 08:33 AM   #562
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by kevinsue View Post
It's a shame that some of these old but very informative threads get lost over time and only found by stumbling across them by accident.
The whole concept of importing dat unis in game is now outdated by the new possibilities opened by GR2 Editor and especially by the RAD tools, if we manage gathering enough money. We must also consider that, as noted many times by me, and more recently by Vecko, the usage of dat-stored objects in game is, at least, contriversial, as the spawning of many of these objects, especially near land, might be the cause of some unexplained ctd's.
I nonetheless agree with you that the content of this thread is still extremely instructive.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 09-25-16, 02:33 PM   #563
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

I just can't get to rid of texture problem when unit is damage for this particular ship....It's the Sub Depot form SH4...


Last edited by vdr1981; 09-25-16 at 02:48 PM.
vdr1981 is offline   Reply With Quote
Old 09-25-16, 03:02 PM   #564
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,663
Downloads: 137
Uploads: 0


Default

If you send me a link to Download that Unit I can look at it for you.
Something don't look right with the texture mapping.
Jeff-Groves is offline   Reply With Quote
Old 09-25-16, 03:45 PM   #565
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by Jeff-Groves View Post
If you send me a link to Download that Unit I can look at it for you.
Something don't look right with the texture mapping.
Much appreciated Jeff !

You will find in the archive two ships with the same problem...Tell me if you want test mission too...

https://www.mediafire.com/?yzadq5dq2rdck4i
vdr1981 is offline   Reply With Quote
Old 09-25-16, 03:55 PM   #566
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

I am pretty sure that the same used to happen with the first import of the torpedo boat by TDW (which, on turn, was the first dat unit ever imported in SH5). I don't remember what was the fix, but if memory serves me well, there was a controller in SHIII-IV which controlled the rendering of 2D "hole" decalcs on damaged units. This controller is unsupported in SH5 and might cause the messing up of textures when units are damaged. The removal of the said controller might solve the issue.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 09-25-16, 04:05 PM   #567
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,663
Downloads: 137
Uploads: 0


Default

Got the package. Looking at them now.
Jeff-Groves is offline   Reply With Quote
Old 09-25-16, 04:28 PM   #568
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,663
Downloads: 137
Uploads: 0


Default

SH3 had that controller. SH4 does it totally different.

Yes send me your test mission and I'll load SH5 back on my system.

And gap. Your wrong about the first dat file in SH5.

Check the date.



The fix I believe is to import a 3d damage object. (been awhile since I've done anything with SH5)
We all know the Unifiedrender stuff is whacked.
Send me a ship that does not have this problem so I can compare them.

Last edited by Jeff-Groves; 09-25-16 at 04:44 PM.
Jeff-Groves is offline   Reply With Quote
Old 09-25-16, 04:47 PM   #569
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by Jeff-Groves View Post
SH3 had that controller. SH4 does it totally different.

Yes send me your test mission and I'll load SH5 back on my system.

And gap. Your wrong about the first dat file in SH5.

Check the date.



The fix I believe is to import a 3d damage object. (been awhile since I've done anything with SH5)
We all know the Unifiedrender stuff is whacked.
Send me a ship that does not have this problem so I can compare them.
These are OK, single mission included with all units both good and bad...
https://www.mediafire.com/?3nojzqas8p6aimo

You can merge two mods...
vdr1981 is offline   Reply With Quote
Old 09-25-16, 04:47 PM   #570
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Jeff-Groves View Post
SH3 had that controller. SH4 does it totally different.
Good to know

Quote:
Originally Posted by Jeff-Groves View Post
And gap. Your wrong about the first dat file in SH5.

Check the date.

You are right mate, sorry, I had totally forgot about that proof of concept by you
I should have said "the first dat unit ever released for SH5"

Quote:
Originally Posted by Jeff-Groves View Post
The fix I believe is to import a 3d damage object. (been awhile since I've done anything with SH5)...
Me to, I am just going by memory, but at first glance I think that that chunk #141: DMG_Sub_Depot_Ship shouldn't be there
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Reply


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 09:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.