Rendering lights
How to render lights when I have more than 8???
THX, PM
PM Times change...
Excuse my poor english!
February 19, 2003 10:21 AM
My friend, there are 8 light sources per polygon, you can''t have more than 8 (unless there is an extention i don''t know about...), but you can reinit them for other polygons...
Thats not good
But anyway, I will select the most important lights then
)
THX u


THX u
PM Times change...
Excuse my poor english!
so what ur saying Anonymous is if i have say 100 polygons i can have 800 lights total?
opengl supports 8 light sources GL_LIGHT0->GL_LIGHT7 , lighting is a per vertex operation that means you cant have more than 8 lights/vertex(I think this is what the anonymous poster tried to say)
---sorry for not using proper english , I'm from latin roots
February 19, 2003 04:34 PM
is there any way to have more lighting even if it is fake? say i have 20 players in a room all firing guns. how would i do the muzzle flashes? i want some sort of flash to reflect off of the walls.
you could make the light jump from gun to gun real quick if its flashes.... That way you wouldn''t need multiple ones, you''d just have like 1 that''s constantly switching to whatever gun was fired...
February 20, 2003 10:23 AM
quote:
Original post by adam17
so what ur saying Anonymous is if i have say 100 polygons i can have 800 lights total?
(I''m that annonymus) yes i tried to say that, and thx liKen for correcting me

Actually you can have as much polygons as you want (as your vcard lets you have actually

It''s really good idea to use one light source and to make it rush from one gun to another! GREAT!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement