About Store Forum Documentation Contact



Post Reply 
Black screen when i add "drawShadow"
Author Message
FireMan Offline
Member

Post: #1
Black screen when i add "drawShadow"
Hi!
I have some problem with my code. I made car, i add mesh by "mesh.draw..." and when i add "mesh.drawShadow" boom. BLACK SCREEN. How to repare that?

Some code:

Code:
void Render()
{
   Game::World.draw();
  
   mesh.draw(car.matrix());  
   tire1.draw(wheel[1].matrix());
   tire2.draw(wheel[0].matrix());
  
   mesh.drawShadow(car.matrix());            
   tire1.drawShadow(wheel[1].matrix());
   tire2.drawShadow(wheel[0].matrix());    

}

All "drawShadow" made problem.
09-17-2011 10:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #2
RE: Black screen when i add "drawShadow"
you are not using switch(renderer)
RM_SHADOW
09-17-2011 11:14 AM
Find all posts by this user Quote this message in a reply
FireMan Offline
Member

Post: #3
RE: Black screen when i add "drawShadow"
Thanks. I use case RM_SHADOW but don't add shitch'er.
09-17-2011 11:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply