Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

rotate and zoom world in blender (math question)

Posted on 2007-12-04
3
Medium Priority
?
1,576 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 900 total points
ID: 20408180
0
 
LVL 18

Accepted Solution

by:
Jose Parrot earned 1100 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

718 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