Jump to content
Developer Wiki and Function Reference Links ×

How to get the view matrix.


Nebeor

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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...