Re: Assigning different colors
- From: Joris Deboris <joris.deboris@xxxxxxxxxx>
- Date: Wed, 24 Oct 2007 13:37:15 +0200
Andy V wrote:
Joris Deboris wrote:Hi group,
I have a bunch of gluSpheres that I randomly place in an environment. Now I want to do the following: spheres that are closer to the 'camera' should have a different color than those that are further away. Is there any way to do this?
Example: spheres that are closest to the camera are assigned a red color and that color changes to green for spheres that are further away...
Look into glFog and friends.
OK, thanks!
.
--
Andy V
- References:
- Assigning different colors
- From: Joris Deboris
- Re: Assigning different colors
- From: Andy V
- Assigning different colors
- Prev by Date: Re: glviewport and glCopyTexSubImage on nvidia
- Next by Date: Re: cad gui toolkit
- Previous by thread: Re: Assigning different colors
- Index(es):
Relevant Pages
|