Jump to content
  • Advertisement
Sign in to follow this  
msd1357

[.net] Copy device.Transform.View

This topic is 4411 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.. In my application, I want to save the current view to a matrix variable. I do this like below: Matrix mat; mat = device.Transform.View; When the application reach to second line, I receive InvalidCallException and application terminated! The device.Transform.View initiated whith the Matrix.LookAtLH and has a valid value. Why I can't copy it to a mat variable? I also test the device.Transform.View.M11 value but I get similar exception! pklease help me. Regards..

Share this post


Link to post
Share on other sites
Advertisement
Are you using a Pure Device? Pure devices don't support reading values back from them.

Also, do you get any errors in the debug output when you use the debug runtimes?

Hope this helps.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!