nicked on 21/10/2017 at 07:29
OK, let me clarify what I'm trying to achieve - it's for a minor special effect rather than swapping the entire sky.
Right now I have windows that have a golden glowy texture on the outside when the light is on inside the room, but if you switch the lights off, the external window turns to a dark glass texture instead. This is set up and all works.
However, since I'm using object windows, and the actual texture swap behind is separate, I found it actually looks like a pretty cool reflection if the texture behind the object window is the sky.
So I want to be able to swap the window texture between the glowy yellow texture when the light is on, and the sky texture when the light is off. I had hoped it would be as simple as defining TerrReplaceOff as "sky" but it doesn't work.
It's not the end of the world if it's not possible, it looks fine as is, I'm just experimenting.
ZylonBane on 21/10/2017 at 12:30
Uhhm. So... make the window object transparent... so you can see the sky through it? :erm:
FireMage on 21/10/2017 at 17:24
NAY ! I accidentaly found it, but "THIS IS POSSIBLE TO APPLY THE TEXTURE SKY WITH TEXTURETRAP !!"
There are nevertheless two important things to know :
-It works on Thief Gold only
-It is irreversible
You just have to replace your texture with fam/outtakes/George.pcx
Do not ask me how it works and why it works because George is acutally Jorge with another name, but it will successfuly replace your texture with Sky ! ;)
nicked on 22/10/2017 at 08:33
Quote Posted by ZylonBane
Uhhm. So... make the window object transparent... so you can see the sky through it? :erm:
The window is transparent and you can see the sky through it - but I can't switch between the sky and the brightly lit window.
Although, you've got me thinking - a solution would be to swap the window model itself between a "lit" version with opaque glowing panes, and an unlit version with transparency that shows the sky through.
Yandros on 22/10/2017 at 13:37
I'm doing that all over the place in DCE, but not even swapping the model, just changing the texture. My lit window textures are opaque, and unlit ones have some transparency on the glass portion.
ZylonBane on 22/10/2017 at 20:23
Quote Posted by nicked
The window is transparent and you can see the sky through it - but I can't switch between the sky and the brightly lit window.
"Switch between the sky"? What? You've been explaining all of this in a very confused manner. Like above where you say "the texture behind the object window". Eh? How can there be a texture "behind" a window? It's a window. There's empty space on both sides.
Yandros on 23/10/2017 at 00:43
Nick, I think you just need the terrain behind the window to be skyhack, and to have the window switch between two textures, one with and the other without transparent panes.
nicked on 23/10/2017 at 06:34
Yandros - yes, that's definitely the best solution. I had thought myself into a corner with this.
ZylonBane - a picture tells a thousand words:
Here's the windows:
Inline Image:
https://nickdablin.files.wordpress.com/2017/10/windows1.jpgAnd with the object part moved outward - the face behind the windows is what I'm currently changing:
Inline Image:
https://nickdablin.files.wordpress.com/2017/10/windows2.jpgSo I wanted to change the dark blue texture for sky, but then it wouldn't let me swap it for the yellow texture.
So the solution is to simply put sky on the terrain face behind, and swap the windows between the current "unlit"/transparent version, and one with opaque panes with the yellow applied directly to the object.
ZylonBane on 23/10/2017 at 07:40
Christ, now you explain that it's a fake window. Whereas previously you said "...when the light is on inside the room..."
nicked on 23/10/2017 at 09:32
Aye, inside the room is a normal lightswitch setup, it just also triggers the windows on the outside. Apologies for the confusion!