Jump to content
  • Advertisement
Sign in to follow this  
hacer

[Wild Magic 4.7] Transformations

This topic is 3553 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

Hi I have a question to any one who used David's Eberly Wild Magic engine v. 4.7. I was studying his code and i have a problem to locate the spot where WORLD, PROJECTION, VIEW transforms are applied to DirectX renderer. I couldn't find it in code nor in book. I thought it will be done via D3DTS_VIEW, D3DTS_WORLD, D3DTS_PROJECTION flags on device. Please help me. Thank you in advance

Share this post


Link to post
Share on other sites
Advertisement
The sequence of functions that leads to setting the "renderer constants" (shader constants that I support automatically when you use special names in the FX programs) is the following:

Renderer::DrawScene(VisibleSet&);
Renderer::Draw(Geometry*);
Renderer::ApplyEffect(ShaderEffect*, bool&);
Renderer::EnableVProgram(VertexProgram*);

In EnableVProgram, the code block with the comment "// Process the renderer constants." is the one that sets the various world, view, and projection matrices.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!