View Full Version : How to apply reflection effect to a simple cube?
11-19-2004, 12:59 AM
It is something like the surface is coated with plastic material, so the surface is shinnny.
e.g., see this:
Is it lighting will do the job? Or need something called environmental mapping?
11-19-2004, 02:07 AM
There is many ways to render shiny material
You can use different material properties with your object, you can use multitexturing to apply a transparent texture such as in NeHeGL page (http://nehe.gamedev.net) (how cheat with the rendering :) )
Lighting is also very important, you can use advanced "per-xxx lighting" techniques using latest graphic card possibilites, and of course 'classical' lighting
So, in theory: 1/ using special material 2/ using special lighting
hope that helps-
11-19-2004, 05:40 AM
11-19-2004, 11:58 AM
To learn more about different material and lighting you can check the OpenGL RedBook on this website
I think taht I also read something about the astencil buffer for reflections.... Search around... Try google for "opengl stencil buffer reflections" or somthing like that... Hope This Helps...
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.