View Full Version : Light effect
I have a 3d ring with a great diamond on its top.
How can I create some light effect for the diamond ? Can you provide some link to a website ?
Thanks in advance.
08-24-2003, 01:00 PM
I am not sure if I understood what you want and I dont have a link handy but you may want to use www.google.com (http://www.google.com) to search for '3d billboard'
08-25-2003, 10:01 AM
For a diamond, you should try environment mapping, both inside then outside environment mapping will give a pretty good reflection/refraction effect.
Draw the diamond last,
Apply an environment sphere map texture.
Turn texgen sphere map on.
Set the blend function to be GL_ONE, GL_ONE
Disable depth writes, keep depth testing on
Draw the diamond back faces on, front faces culled
Draw the diamond front faces on back faces culled
Now, this will look pretty darned good, and doesn't actually need the back faces then the frontface pass, but you may want to experiment with different blend functions and alpha values and colors between the passes, and different environment maps representing refraction vs reflection images.
To get more advanced you could go on to try cube mapping instead of sphere mapping and even try chromatic aberrations with multipass, all a bit too advanced for your first attempt.
[This message has been edited by dorbie (edited 08-25-2003).]
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.