Solved

rotate and zoom world in blender (math question)

Posted on 2007-12-04
3
1,557 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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