Jump to content
Developer Wiki and Function Reference Links Read more... ×
Nebeor

How to get the view matrix.

Recommended Posts

VWTransformMatrix vmat;
gSDK->GetViewMatrix(gSDK->GetActiveLayer(),vmat);

If I execute this piece of code it sends me an union matrix, even when my current view is turned in a weird non-perpendicular angle.

I would like to retrieve a matrix which corresponds to the way i'm currently looking to my 3D world.

Vectorscript's/Python's VS:GetViewMatrix returns useful information but I don't understand how I could get exactly the same information from the SDK.

I find this essential to get the most out of my tools.

I'll thank you beforehand for your reply.

Share this post


Link to post

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

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×