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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-04-09, 07:09 AM   #1
DarkFish
Sea Lord
 
Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,785
Downloads: 28
Uploads: 0
Default

I've got a problem myself too, when using (semi-)transparent textures. In S3D everything looks as it should, but in game the colors get all messed up:

the texture used by this model is just a plain texture, RGB 167;167;255, alpha 128, but depending on the models orientation the color changes.
It should be possible to have semi-transparent textures, look at the flying dutchman for example, that one hasn't got any rainbow effect.

Anyone have any ideas how to get it working?
__________________

DarkFish is offline   Reply With Quote
Old 07-04-09, 09:31 AM   #2
Silverwolf
Officer
 
Join Date: Jul 2009
Posts: 241
Downloads: 21
Uploads: 0
Default

I have a suggestion, why don't you take the material from the Dutchman and export it as a raw chunk. Then import it with the mod you want and see if that works. I don't know what the folder for the Dutchman is called though but I'm sure tweaking the already made material could produce the effect you want.

(edit)
Found it, the folder is NFD.
Silverwolf is offline   Reply With Quote
Old 07-04-09, 10:20 AM   #3
DarkFish
Sea Lord
 
Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,785
Downloads: 28
Uploads: 0
Default

Yep I already tried that, using the exact same texture the FD uses. But instead of a ghostly green I get a colorful rainbow
__________________

DarkFish is offline   Reply With Quote
Old 07-04-09, 11:45 AM   #4
Silverwolf
Officer
 
Join Date: Jul 2009
Posts: 241
Downloads: 21
Uploads: 0
Default

Hmm, just messed around with the texture and I can't get anything better than you can. I too would like to know how to get this to work cause I have a sub that's gonna need clear pieces for two parts.
Silverwolf is offline   Reply With Quote
Old 07-04-09, 03:18 PM   #5
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

Quote:
Originally Posted by DarkFish View Post
I've got a problem myself too, when using (semi-)transparent textures. In S3D everything looks as it should, but in game the colors get all messed up:

the texture used by this model is just a plain texture, RGB 167;167;255, alpha 128, but depending on the models orientation the color changes.
It should be possible to have semi-transparent textures, look at the flying dutchman for example, that one hasn't got any rainbow effect.

Anyone have any ideas how to get it working?
It's yet another 'feature' of SH4. Depth charges have the same property. the first time you start a game, then depth charges have a rainbow effect on them when they are created for launch from Y throwers, very similar to the effect you posted. If you can, start the game, start a campaign / single mission, quit out of it and then restart the mission and you should see the colours properly. Why on Earth the game does this, I have no idea. Just another bug I guess.

EDIT: It should be noted that ships in game don't have this effect, but generated objects do (like depth charges) so there may be some controller affecting the behaviour. Either way, there's no excuse for things to behave differently after restarting a mission.
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Old 07-04-09, 04:12 PM   #6
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Take a look at how the Glass is handled in the Aircraft.
Perhaps that will help?
  Reply With Quote
Old 07-04-09, 05:26 PM   #7
DarkFish
Sea Lord
 
Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,785
Downloads: 28
Uploads: 0
Default

I tried restarting the mission, but it doesn't work.
Looking at the aircraft glass didn't get me further either, it's not too different from some other transparent examples in game (FD, trees)
Judging from these it must be somehow possible to eliminate the rainbow effect, but I just can't figure out how

In the meantime I did find out that there doesn't have to be an alpha channel in the texture, just enabling alpha+disabling z-buffer write in S3D is enough to get this strange effect.
__________________

DarkFish is offline   Reply With Quote
Old 07-04-09, 05:42 PM   #8
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

You don't have the unifiedrender controller active do you?
I notice the Glass does not use that controller.
  Reply With Quote
Old 07-04-09, 05:51 PM   #9
DarkFish
Sea Lord
 
Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,785
Downloads: 28
Uploads: 0
Default

I didn't, I just set up a test mission with the model using a UnifiedRender controller and IT WORKS

Apparently models need this controller to counter the rainbow effect

all thx for your help
__________________

DarkFish is offline   Reply With Quote
Old 07-04-09, 05:56 PM   #10
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Very cool.


Maybe the Glass stuff has a hard coded controller then.


Anyway,
Glad you got it sorted.
  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 09:56 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.