Idea with glass and refraction |
by Whitetemplar
on 08/03/2007 17:57, 37 messages, last message: 08/14/2007 21:30, 8839 views, last view: 05/18/2024 20:57 |
|
Why dont put some types of glass with different refractions on each ?
|
|
Board Index
|
|
#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
|
|
#21: Re: .. |
by noerrorsfound!
on 08/07/2007 03:06, refers to #19
|
|
Nope. :( Glass and water cannot be "shaped" in the way cubes can.
reply to this message
|
|
#22: .. |
by Acord
on 08/07/2007 06:04
|
|
If you make a glass - like texture with the proper shader, you can fake it, but it isn't transparent. Just enter this line above the materials you want to try it with in the map's config file:
setshader bumpenvspecmapparallaxworld
Example:
http://acord.789mb.com/images/usm04_01.jpg
reply to this message
|
|
#23: .. |
by Acord
on 08/07/2007 06:06
|
|
Also, having part of the spec map all white and using an envmap entity will give you pretty decent fake mirror.
reply to this message
|
|
#24: .. |
by randomcivilian [just found linux]
on 08/07/2007 06:22
|
|
Acord... your homepage for http://acord.789mb.com/ gives me this huge Biohazard sign and says "Hacked by Hazard"... just thought i'd let you know.
/offtopic
reply to this message
|
|
#25: Re: .. |
by noerrorsfound!
on 08/07/2007 08:56, refers to #24
|
|
Hopefully he had the stuff on SourceForge ;) Or kept a local copy of everything.
reply to this message
|
|
|
Board Index
|
|