Solved

rotate and zoom world in blender (math question)

Posted on 2007-12-04
3
1,544 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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 …
As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now