Are reflections possible in Irrlicht?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Guest

Are reflections possible in Irrlicht?

Post by Guest »

I was curious if Irrlicht is capable of rendering real-time reflections(not pre-generated), and if it is, how would one go about doing that? If not, is there a way to implement them? Thanks.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Usually, this is done by rendering the environment into a texture and applying this texture to an object. but render target rendering is not supported in irrlicht, currently.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Niko, do you plan to implement this feature in Irrlicht?
Thanks.
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Post by knightoflight »

i always was asking myself, why its not possible to get a texture from the screen (draw2DImage draws a texture (not an image) - and get2DImage gets a texture from coordinates), then i could take for example a part of the screen to a texture or can open a second irrlicht-device and draw there and get from screen. Ok, i stop asking myself, cause i dont get an answer - i ask you.
Serg Nechaeff
Posts: 162
Joined: Wed Nov 26, 2003 5:24 pm
Location: Europe

Post by Serg Nechaeff »

check out my demo http://www.dev.your3dgames.com/irrlicht/bowl/bowl.zip and see the way I made reflections
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Post by knightoflight »

Hi Serg,
but i see no code in your zip ? Or how should we see it ?
Guest

Post by Guest »

yep, sorry I didnt post any code, but actually there is nothing complicated in there. The toilet bowls that reflect the main one are the same meshes but the walls of the WC are transparent, so you think this is a reflection but in fact these are another "real" meshes, so it look like a reflection :)
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

This technique I've been seen in quake :) , or doom.
I need some like water reflection effect. My question is whether this feature is in list of Niko's plans, or yet someone advanced user have realized that.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

RTT is planned, other simple reflections done with sphere maps are already in the engine. Cubemaps for even cooler reflections are planned too. :)
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Great! :lol:
I'll be waiting. RTT and cubemap are a great features.
Post Reply