Sign in to follow this  

[Wild Magic 4.7] Transformations

Recommended Posts

hacer    139
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
Dave Eberly    1173
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::ApplyEffect(ShaderEffect*, bool&);

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this