About Store Forum Documentation Contact



Post Reply 
Mesh rendering
Author Message
Dynad Offline
Member

Post: #1
Mesh rendering
hey,

Ive a problem with drawing objects in the scene. Ive added a weapon in the world with the WE. But when i use this code, the weapon is rendered 2 times. Is there a another way to render a mesh 1 time with matrix with the human hand point?

PHP Code:
void Render()
{
    
Game::World.draw();

    switch(
Renderer())
    {
        case 
RM_PREPARE:
        {
            
LightDir(Vec(0,0,-1),1-D.ambColor()).add();
            {
                
OrientP &wepLPlayers[0].cskel.getPoint("HandR");
                
Items[0].mesh->draw(Matrix(wepL));
            }
        }break;
    }  
}
void Draw()
{
   
Renderer(Render);


   

Thnx,
~Dynad
Like my previous problem i still cant figure it out to get a rifle nice aligned with 2 hands.. i tried Esenthels idea but thats not working either...

http://www.esenthel.com/community/showth...p?tid=2187

There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 06-01-2010 07:13 PM by Dynad.)
06-01-2010 06:22 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: Mesh rendering
drawing weapons in hand is "tutorialed" in bloody massacre
06-01-2010 07:24 PM
Find all posts by this user Quote this message in a reply
Post Reply