PDA

View Full Version : light projector with OpenGL 1.1 only



_arts_
12-29-2010, 11:56 AM
Hi,

for a project for school, I'd like to create a light projector. However, I'm stuck with GL 1.1 only (computer of the teacher).
And as far as I know, multitexturing appeared only in GL 1.2, so I wonder how to do lightmap in that case.
And second point, how to "mimics" the "fog" made by the light beam, something like in http://www.dreamstime.com/light-beam-from-projector-image2355424. (http://www.dreamstime.com/light-beam-from-projector-image2355424)

Anyone has any ideas ?

Alfonse Reinheart
12-29-2010, 12:17 PM
And as far as I know, multitexturing appeared only in GL 1.2, so I wonder how to do lightmap in that case.

Multipass rendering. You render the geometry with the base texture. Then you render the same geometry again with the light map and appropriate blending operations (multiply, for example).

ugluk
12-30-2010, 04:21 AM
GL 1.1 probably means the teacher has no gfx accelerated card. Better to bring your own laptop along. Otherwise your project might run very slowly.

_arts_
12-31-2010, 04:00 AM
Hi,

thanks for the reply.

I'll check the multipass rendering.

The teacher has gfx accelerated card. However he will check only under dev-cpp, and on my computer dev-cpp/glut doesn't work. So, for conveniences, I prefered not to stuck with opengl extensions (glew or manual doings) so that to avoid issues...

Thanks again