Skip to main content
gamedev.net
🔒 Locked

Loading Models with Jim's Code?

Started by Darkan_Fireblade Dec 26, 2002 at 12:30 PM 2 replies 250+ views
Original Post
Darkan_Fireblade
Darkan_Fireblade
Hey, uh... how are you suppos to load models with Jim''s Core_Graphics? This is how im doing it, but its not showing up! cApp::Init() { m_Graphics.Init(); #ifdef FULLSCREENMODE m_Graphics.SetMode(GethWnd(), TRUE, TRUE, 800, 600, 0); #else m_Graphics.SetMode(GethWnd(), FALSE, TRUE, 800, 600, 0); #endif ShowMouse(TRUE); m_Mesh.Load(&m_Graphics, "warrior1.x"); return TRUE; } cApp::Frame() { m_Graphics.EnableZBuffer(TRUE); m_Graphics.BeginScene(); m_Object.Create(&m_Graphics, &m_Mesh); m_Object.Move(0.0f, 0.0f, 20.0f); //m_Object.Rotate(0.0f, 5.0f, 0.0f); m_Graphics.EndScene(); m_Graphics.Display(); m_Object.Render(); return TRUE; } Whats my problem? Sir Darkan Fireblade -"I Feel like im playing Poker i dont know who''s bluffing!"-
Sir Darkan Fireblade
Jim Adams
Jim Adams
Use this instead:


  
cApp::Frame()
{
m_Graphics.EnableZBuffer(TRUE);

m_Object.Create(&m_Graphics, &m_Mesh);
m_Object.Move(0.0f, 0.0f, 20.0f);
//m_Object.Rotate(0.0f, 5.0f, 0.0f);


m_Graphics.BeginScene();
m_Object.Render();
m_Graphics.EndScene();
m_Graphics.Display();

return TRUE;
}

Darkan_Fireblade
Darkan_Fireblade
Thanks Jim!!!!!


Sir Darkan Fireblade
-"I Feel like im playing Poker i dont know who''s bluffing!"-
Sir Darkan Fireblade

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.