Game Development Community

Glass

by Lukas Hanak · in Torque 3D Public · 02/08/2011 (6:06 am) · 7 replies

Hi all,
I need a help. I use torgue 3d for achitectural visualisation and I need make glass. (I try opacity, is no problem but mirror reflections is my problem. How solve this? (In torgue 3d is water, I need similar reflections)

thanks for every idea

About the author

3D Graphic Designer.


#1
02/08/2011 (8:35 am)
Ideas...

Hacky workaround ... Put an actual water block on it's side, scale it, get rid of waves and ripples and then set the translucency so that you can see through it but it still reflects.

The proper way ... create a reflecting shader for the glass.
#2
02/08/2011 (8:47 pm)
Steve,

Gotta say that I always like your innovations & work-a-rounds!





#3
02/09/2011 (12:24 am)
thanks Steve,
How to use shader in torgue3d on object?in material editor?
#4
02/09/2011 (9:02 am)
I think you've got to add it manually in material.cs - I've never actually used any shaders ... check the docs and then search the forum for info (or make a new thread saying "how do I use shaders on a material").
#5
02/09/2011 (3:07 pm)
Steve - nice work around on the glass using water. In the past I used an alpha transparent texture on a billboard or box - What would the fps overhead be on a big building using the water effect, and I\'m guessing but you could apply a decal to simulate a broken window on shooting the water?.

Looks better in the game than in the pic.

www.something2play.com/images/portfolio/portfolio_showcase_3/portfolio_showcase_3_5.jpg
#6
02/09/2011 (4:49 pm)
lol, I swiped the idea from someone else\'s post in the forums ages ago. :P

Bullet hole decals would be the \"splash=\" on the projectile (see SplashRingEmitter)
#7
02/09/2011 (5:25 pm)
arrrrrrr swashbuckling bandits! edited to make it more pirate like I take that back then and replace it with a \"Good re-use of that idea then\".