![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
07-04-09, 07:09 AM
|
#1 |
|
Sea Lord
![]() Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,785
Downloads: 28
Uploads: 0
|
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?
__________________
![]() |
|
|
07-04-09, 09:31 AM
|
#2 |
|
Officer
![]() Join Date: Jul 2009
Posts: 241
Downloads: 21
Uploads: 0
|
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. |
|
|
07-04-09, 10:20 AM
|
#3 |
|
Sea Lord
![]() Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,785
Downloads: 28
Uploads: 0
|
Yep I already tried that, using the exact same texture the FD uses. But instead of a ghostly green I get a colorful rainbow
__________________
![]() |
|
|
07-04-09, 11:45 AM
|
#4 |
|
Officer
![]() Join Date: Jul 2009
Posts: 241
Downloads: 21
Uploads: 0
|
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.
|
|
|
07-04-09, 03:18 PM
|
#5 | |
|
Ocean Warrior
![]() Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
|
Quote:
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. |
|
|
|
07-04-09, 04:12 PM
|
#6 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Take a look at how the Glass is handled in the Aircraft.
Perhaps that will help? |
|
07-04-09, 05:26 PM
|
#7 |
|
Sea Lord
![]() Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,785
Downloads: 28
Uploads: 0
|
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.
__________________
![]() |
|
|
07-04-09, 05:42 PM
|
#8 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
You don't have the unifiedrender controller active do you?
I notice the Glass does not use that controller. |
|
07-04-09, 05:51 PM
|
#9 |
|
Sea Lord
![]() Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,785
Downloads: 28
Uploads: 0
|
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
__________________
![]() |
|
|
07-04-09, 05:56 PM
|
#10 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Very cool.
Maybe the Glass stuff has a hard coded controller then. ![]() Anyway, Glad you got it sorted.
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
