Page 1 of 1

window?

Posted: 15 Jun 2008, 12:21
by Hoi
is it possible to make a window?

Re: window?

Posted: 15 Jun 2008, 13:03
by MR.D
Of course you can make a window.

Making it semi-transparent is the hard part.

Currently in the texture layers, we only have support for on/off Aplha-Test transparency, which means a section that is set to be transparent is either fully invisible, or completely solid.

There is supposed to be a workaround for doing transparency like what glass would need, but its done with LUA and can be a bit tricky to make it work properly.

Re: window?

Posted: 15 Jun 2008, 13:42
by Pressure Line
MR.D wrote:There is supposed to be a workaround for doing transparency like what glass would need, but its done with LUA and can be a bit tricky to make it work properly.
Yes, it is. but i *can* do it. just not in an easy-to-use manner.

Re: window?

Posted: 15 Jun 2008, 13:58
by Hoi
MR.D wrote:
Making it semi-transparent is the hard part.
thats what i mean :-)

Re: window?

Posted: 15 Jun 2008, 14:18
by rattle
The problem with translucenct textures is the order in which polygons are rendered in. They need to be sorted depending on the angle you look at stuff which costs a lot of computing power.

Image
As you can see the glass is transparent and there are red circuits behind it, but it stops half way (this depends on the normal of the face you are looking through I think). That's how it is.

Re: window?

Posted: 15 Jun 2008, 14:41
by Hoi
hmmm it doesnt has to be a real window, if it looks like a window, im making a car want to be able to see the driver

Re: window?

Posted: 15 Jun 2008, 15:14
by rattle
viewtopic.php?p=268377#p268377

Re: window?

Posted: 15 Jun 2008, 23:09
by MR.D
Zsinj's link to that picture of the SWS transport is 404'd..

Re: window?

Posted: 16 Jun 2008, 01:25
by [Krogoth86]

Re: window?

Posted: 16 Jun 2008, 01:37
by smoth
Image
hur hur I can use view image.

Re: window?

Posted: 16 Jun 2008, 09:16
by Hoi
yeh, thats what i mean, how did they do that :?:

Re: window?

Posted: 16 Jun 2008, 10:02
by Gnomre
Image

That's what the primary/secondary skins look like for the windshield on that model. For the exact process, you'll have to wait on an answer from Zsinj. It's not transparent at all, it's an entirely solid piece.

Re: window?

Posted: 16 Jun 2008, 11:12
by Warlord Zsinj
Honestly I just darkened the area where I knew you'd most likely be seeing *something* behind, and then made it highly reflective. As I said in the other thread, it works in some angles, and in angles where it doesn't, you just assume it's part of a natural variation on the glass.

My suggestion is to just draw a fuzzy outline of a person (very fuzzy, use a high gaussian blur, on highly reflective glass. It's not going to work in all situations; you're probably best off going for either 100% transparent glass, or completely opaque but reflective glass.