Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,787 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,365 people online right now. Registration is fast and FREE... Join Now!




Need the transformation matrix

 
Reply to this topicStart new topic

Need the transformation matrix, transformation matrix for a plane

ashishsagarwal
20 Aug, 2008 - 03:25 AM
Post #1

New D.I.C Head
*

Joined: 20 Aug, 2008
Posts: 2

Hello,

given the vertices's of initial and resultant plane.

I need to transform a plane(i.e. triangle) from one plane to other in which rotation, scaling and translation has to occur. I just need that transformation matrix if applied to the initial plane it will give resultant plane.

i am trying to

1> rotate the plane first to the normal of the resultant plane.

2> scale the matrix requred

3> translate the points...

dont know the approach is correct upto what extent? also it would be to know that can the rotation o the plane be replaced by transalation.
User is offlineProfile CardPM
+Quote Post

grimpirate
RE: Need The Transformation Matrix
20 Aug, 2008 - 09:12 AM
Post #2

D.I.C Head
Group Icon

Joined: 3 Aug, 2006
Posts: 192



Thanked: 5 times
Dream Kudos: 375
My Contributions
Take a look at these two snippets of code of mine:

http://www.dreamincode.net/code/snippet685.htm
http://www.dreamincode.net/code/snippet675.htm

I was working on very primitive 3d renders with easy shapes. The PHP snippet rotates the points. Don't remember exactly where, but if you can understand PHP code it may help you algorithmically. The Java code is simply a compilation of Matrix operations.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 01:21PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month