Idea with glass and refraction |
by Whitetemplar
on 08/03/2007 17:57, 37 messages, last message: 08/14/2007 21:30, 8837 views, last view: 05/18/2024 15:34 |
|
Why dont put some types of glass with different refractions on each ?
|
|
Board Index
|
|
#1: .. |
by Acord
on 08/03/2007 23:57
|
|
You know, you could just use a envmap entity and get reflections of the environment... It's easy. Put the envmap entity in, and then recalc.
reply to this message
|
|
#2: Re: .. |
by Ganandar
on 08/04/2007 00:52, refers to #1
|
|
hwo do you get the envmap and where would you put it?
reply to this message
|
|
#3: .. |
by Acord
on 08/04/2007 02:41
|
|
Using envmap:
While editing, pick a spot, open your console and type:
/newent envmap 2048
Now type:
/calclight 3
and then:
/recalc
reply to this message
|
|
#4: Re: .. |
by Quin
on 08/04/2007 05:13, refers to #3
|
|
#2: you place envmap entities near glass areas, preferably only one in the middle of an area - as they're pretty intensive.
http://sauerbraten.org/docs/editref.html#_envmap_
#3: envmaps don't require a calclight, just a recalc.
reply to this message
|
|
#5: .. |
by Whitetemplar
on 08/04/2007 12:33
|
|
That dont make any refraction on the glass that just put reflection
reply to this message
|
|
#6: .. |
by Acord
on 08/04/2007 18:04
|
|
Ummm... Glass, unless rounded, does not refract light most of the time, at least not enough for it to be really noticable.
I guess you could always play with the shaders...
reply to this message
|
|
#7: .. |
by Quin
on 08/05/2007 03:12
|
|
While on this subject, people should realise that aesthetics like this are really the job of the mapper.
eg. You can fake a light reflecting off water surfaces by using a smaller light near the point where the water would reflect the light to.
reply to this message
|
|
#8: .. |
by SanHolo
on 08/05/2007 11:21
|
|
Any translucent material with parallel, straight borders - as it is the case in sauerbraten - does not refract enough to notice. Given that it's not too thick and you can't go inside it.
So adding refraction to materials in sauerbraten would make no sense.
reply to this message
|
|
#9: .. |
by Max of S2D [Fr]
on 08/05/2007 11:44
|
|
I would agree about keeping only one kind of glass and adding it refraction.
That would look fine, but i doubt some maps' authors didn\'t though about that point of view.
What about a command line into the CFG to able/disable the refraction ?
reply to this message
|
|
#10: Re: .. |
by SanHolo
on 08/05/2007 12:15, refers to #9
|
|
As I said, when looking through a glass pane, you won't notice any refraction. There is only refraction when the glass is not straight and/or the borders are not parallel. Both is not (yet?) possible in sauerbraten.
So, adding refraction would not make any sense.
reply to this message
|
|
#11: .. |
by Max of S2D [Fr]
on 08/05/2007 13:46
|
|
(*HIGH* res pictures, warning)
Glass : http://img393.imageshack.us/img393/8683/dscf2772wr8.jpg
Behind : http://img393.imageshack.us/img393/372/dscf2773jv6.jpg
By the way, it'd be nice to choose the glass colour.
reply to this message
|
|
#12: Re: .. |
by SanHolo
on 08/05/2007 16:00, refers to #11
|
|
That's why I said "parallel, straight borders". This is not the case in your pics, is it?
reply to this message
|
|
#13: .. |
by Acord
on 08/05/2007 18:03
|
|
Right... Sauer only does flat glass, unfortunately. You'll have to play with the shaders.
reply to this message
|
|
#14: .. |
by Whitetemplar
on 08/05/2007 20:31
|
|
In sauer you have allready refraction on water so why cant you put refraction on glass ?
reply to this message
|
|
#15: .. |
by blikje bier
on 08/05/2007 22:27
|
|
Why would you? Glassplanes normally don't show much refraction unless it is curved like a lens for example.
Different colors of glass and Opacity on the other hand would be sweet.
reply to this message
|
|
#16: Re: .. |
by SheeEttin
on 08/06/2007 05:08, refers to #15
|
|
Right. As stated before, when you have a flat piece of glass, the refraction is minute. Why do you think people use glass in windows? Because it's the closest thing we have to something not being there visually, but being there physically. (Unfortunately, we can't place clip in real life.)
As for colors and opacity, I agree. The material system, if expanded, could be awesome.
reply to this message
|
|
#17: Re: .. |
by noerrorsfound!
on 08/06/2007 13:37, refers to #16
|
|
I heard John Carmack noclipped a few parts of his house...
reply to this message
|
|
#18: Re: .. |
by SanHolo
on 08/06/2007 20:04, refers to #17
|
|
That'd be TEH R0XX0RZ!!!
=)
reply to this message
|
|
#19: Re: .. |
by Ganandar
on 08/07/2007 02:38, refers to #6
|
|
is it possible to make glass round?!
reply to this message
|
|
#20: Re: rounded glass |
by MeatROme
on 08/07/2007 03:05, refers to #19
|
|
no. materials in sauerbraten are pure cubes.
But look at "skycastle" .. you can "fake it" ;)
reply to this message
|
|
|
Board Index
|
|