Talk About Network

Google





Graphics > OpenGL 3D API > OpenGL Lighting
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 4873 of 5061
Post > Topic >>

OpenGL Lighting

by mchristyuk <mark.christyuk@[EMAIL PROTECTED] > Aug 18, 2008 at 12:11 PM

Hi all,

I've struck a bit of a lighting puzzle which I've "kind of" worked
around.. but not properly.. I'm sure there is a much better way of
doing this but I'm at a dead end and run out of ideas.. If anybody
could tell me the "right" way of solving this I would be much
appreciated.

Scenario:

I have a ball which will need to be lit from around 20 different light
sources onto conentrated "spots" on the ball. These 20 lights will all
be moving.

Now OpenGL only has a limited number of lights so I'm reusing the same
light but repositioning it every time. Of course to get the light
effect on the ball I also have to redraw the ball.

This creates 2 problems.
1) It seems very ineffecient as spheres are complex things to draw.
2) My ball was fairly transparent.. however if I draw it over and over
again then it becomes more and more solid.

So... how do I light my transparent ball from lots of different
directions without making it appear solid or really hitting the draw
speed?

Many Thanks

Mark
 




 9 Posts in Topic:
OpenGL Lighting
mchristyuk <mark.chris  2008-08-18 12:11:01 
Re: OpenGL Lighting
Wolfgang Draxinger <wd  2008-08-18 21:57:31 
Re: OpenGL Lighting
John Tsiombikas <nucle  2008-08-19 07:58:04 
Re: OpenGL Lighting
Wolfgang Draxinger <wd  2008-08-19 12:08:51 
Re: OpenGL Lighting
John Tsiombikas <nucle  2008-08-19 17:11:34 
Re: OpenGL Lighting
mchristyuk <mark.chris  2008-08-18 13:20:49 
Re: OpenGL Lighting
fungus <openglMYSOCKS@  2008-08-19 13:03:42 
Re: OpenGL Lighting
Wolfgang Draxinger <wd  2008-08-20 00:17:18 
Re: OpenGL Lighting
mchristyuk <mark.chris  2008-08-20 02:20:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 15:02:43 PST 2009.