Light

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
burivuh
Posts: 30
Joined: Tue Nov 22, 2005 1:22 pm

Light

Post by burivuh »

OpenGL

Simple code (read comment)

Code: Select all

driver->beginScene(true,true, ...);
scene_manager->drawAll();

scene_manager->drawAll();//Here dynamic light options are wrong.
driver->endScene();
Last edited by burivuh on Sun Dec 04, 2005 6:42 pm, edited 2 times in total.
Conquistador
Posts: 340
Joined: Wed Sep 28, 2005 4:38 pm
Location: Canada, Eh!

Post by Conquistador »

What exactly are you asking?
Royal Hamilton Light Infantry - http://www.rhli.ca
Paris/Port Dover Pipes'n Drums - http://www.parisdover.ca
burivuh
Posts: 30
Joined: Tue Nov 22, 2005 1:22 pm

Post by burivuh »

Conquistador wrote:What exactly are you asking?
Is it normal?
That light options change on next drawAll()?
burivuh
Posts: 30
Joined: Tue Nov 22, 2005 1:22 pm

Post by burivuh »

Closed.
Guest

Post by Guest »

why do you do draw two times? it makes no sense since you dont do anything between the two draws o.O
burivuh
Posts: 30
Joined: Tue Nov 22, 2005 1:22 pm

Post by burivuh »

GFXstyLER wrote:why do you do draw two times? it makes no sense since you dont do anything between the two draws o.O
I was using render to the texture. Found this problem. Cut off everything from the code. Problem hasn't disappeared. That all.
Post Reply