About Store Forum Documentation Contact



Post Reply 
How i can draw shadow on Game::World?
Author Message
Truelegend Offline
Member

Post: #1
How i can draw shadow on Game::World?
I have mesh
Code:
Mesh Sword1;

and i want to draw shadow on my world.
so i tried
Code:
Sword1.draw(MatrixIdentity);
doesnt work'd so i tried
Code:
Sword1.draw(Gane::World()::MatrixIdentity);
but it too doesnt work.

Anyone can help. please
04-16-2011 04:30 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
RE: How i can draw shadow on Game::World?
hm?

There is always evil somewhere, you just have to look for it properly.
04-16-2011 10:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #3
RE: How i can draw shadow on Game::World?
its mesh::drawshadow i think
04-16-2011 10:18 PM
Find all posts by this user Quote this message in a reply
Truelegend Offline
Member

Post: #4
RE: How i can draw shadow on Game::World?
.My mistake... i think it was draw .hehe sorry
04-16-2011 10:20 PM
Find all posts by this user Quote this message in a reply
siwykon Offline
Member

Post: #5
RE: How i can draw shadow on Game::World?
For example:

void Render()
{
Game::World.draw();
switch(Renderer())
{
case RM_SHD_MAP: //Shadow rendering
{
if(Sword1)Sword1.drawShadow(Players[0].cskel);
}
break;
}
}

Try this.
04-17-2011 09:18 AM
Find all posts by this user Quote this message in a reply
Post Reply