Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Darkan_Fireblade

Loading Models with Jim's Code?

This topic is 5654 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!"-

Share this post


Link to post
Share on other sites
Advertisement
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;
}

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!