Sign in to follow this  

[Wild Magic 4.7] Transformations

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

This topic is 3339 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.

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