Solved

rotate and zoom world in blender (math question)

Posted on 2007-12-04
3
1,552 Views
Last Modified: 2013-12-21
Hi,

I have created a model in blender and I would like to programmatically rotate and zoom in and out on the object.

So far I have been directed to using the

Window.GetViewMatrix() command  in blender.

I can manually rotate my world using blender and then spit out the GetViewMatrix().

This matrix is 4x4 in size.

I would like to know what math is involved to manipulate this matrix to rotate my world by say, 5 degrees.

I'm guessing that one might not need to be familiar with blender to help with this question.

Thank you,

b

0
Comment
Question by:bryanberg
3 Comments
 
LVL 84

Assisted Solution

by:ozo
ozo earned 225 total points
ID: 20408180
0
 
LVL 18

Accepted Solution

by:
JoseParrot earned 275 total points
ID: 20408734
Hi bryanberg,

4x4 matrices are for affine transformations, that is, a rotation and a translation at same time.
The upper left 3x3 matrix inside the 4x4 matrix is the linear rotation.
By continuing ozo's comment, at same tutorial, take a look at
http://www.euclideanspace.com/maths/geometry/affine/matrix4x4/index.htm
Specific to Blender, take a look at
http://www.blender.org/documentation/244PythonDoc/Mathutils.Matrix-class.html

GetViewMatrix function uses 4x4, say 3x3 rotation and a vector.

Jose
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question