Reflections

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
VinZ
Posts: 21
Joined: Sat Jul 29, 2006 11:16 am
Location: India

Reflections

Post by VinZ »

Hi, any one knows how do Reflections like this,

Image

i have tried a lot but no use. Its output of irrlicht from "myPicture3d"

thanks in advance.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

You can do it with shaders but you don't actually have to use shaders really. You could check out the various attempts at mirrors people have made (search the forum) or if you are comfortable with shaders then you could check out Elvman's realistic water scene node in the projects forum as reflective water is obviously basically the same but with added waves and refractions.
Image Image Image
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

That pic uses inverted geometry with a transparent floor.
"Irrlicht is obese"

If you want modern rendering techniques learn how to make them or go to the engine next door =p
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

I think shader would be the best solution.
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

I wouldn't use a shader unless you need to modify the reflection on a per pixel level, this thread http://irrlicht.sourceforge.net/phpBB2/ ... reflection shows how to achieve this. I also listed the pros and cons of each method.
"Irrlicht is obese"

If you want modern rendering techniques learn how to make them or go to the engine next door =p
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yeah you'd want a shader if you need dynamic reflections but if you've no need for movement in the reflections, like in the picture above, you can just use inverted geometry below the floor.
Image Image Image
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

No, the shader has nothing to do with how dynamic the scene can be, the inverted geometry can be animated in the same way as normal geometry, the shader is only needed for distortions/floor illumination model.
"Irrlicht is obese"

If you want modern rendering techniques learn how to make them or go to the engine next door =p
Post Reply