  | | | transforms driving newbie crazy please help :) | transforms driving newbie crazy please help :) 2004-04-02 - By Steve Rachels
Back Have you read this article? Might help getting your head around the concepts: http://www.macromedia.com/devnet/mx/director/articles/maze_magic.html
hth Steve -- -- Original Message -- -- From: James Carrington To: dir3d-l@(protected) Sent: Friday, April 02, 2004 6:10 AM Subject: [Dir3d-l] transforms driving newbie crazy please help :)
Hi all. I'm trying to get my head round transforms, especially with the camera. I've gone through the transforms chapter in Paul Catenese's book a few times now and cant seem to get my head round it.
I basically want to do this.
At the start of the movie, set the camera up into a nice initial start position for viewing the 3d object. I want to store this position/transform of the camera so that I revert back to it when the user clicks 'reset'.
I then want to allow the user to rotate the camera round the object and zoom in and so on with mouse and keyboard inputs.
Does anyone know of any good examples I can rip through to help me get my head round this once and for all?
The method im thinking of is that I need to set up a transform, eg. myTrans = transform(), then edit this transform and set the camera to it. I can then use scene.camera[1].transform.identity to reset it right??
Anyway, I'd very much appreciate some help.
Thanks in advance
James.
James Carrington
3D Illustrator
email: jcarrington@(protected)
Tel: +44 (0) 1757 703620
Record Playground Equipment Ltd
Waterfront Complex
Selby
North Yorkshire
United Kingdom
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word" xmlns:st1 = "urn:schemas-microsoft-com:office:smarttags"><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content=Word.Document name=ProgId> <META content="MSHTML 6.00.2800.1106" name=GENERATOR> <META content="Microsoft Word 10" name=Originator><LINK href="cid:filelist.xml@(protected)" rel=File-List><o:SmartTagType name="country-region" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o :SmartTagType name="place" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!-- [if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if !mso]> <STYLE>st1\:* { BEHAVIOR: url(#default#ieooui) } </STYLE> <![endif]--> <STYLE> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} span.EmailStyle17 {mso-style-type:personal-compose; mso-style-noshow:yes; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; font-family:Arial; mso-ascii-font-family:Arial; mso-hansi-font-family:Arial; mso-bidi-font-family:Arial; color:windowtext;} span.GramE {mso-style-name:""; mso-gram-e:yes;} @(protected) Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> </STYLE> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--></HEAD> <BODY lang=EN-US style="tab-interval: 36.0pt" vLink=purple link=blue bgColor=#ffffff> <DIV><FONT face=Arial size=2>Have you read this article? Might help getting your head around the concepts:</FONT></DIV> <DIV><FONT face=Arial size=2><A href="http://www.macromedia.com/devnet/mx/director/articles/maze_magic.html" >http://www.macromedia.com/devnet/mx/director/articles/maze_magic.html</A></FONT ></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>hth</FONT></DIV> <DIV><FONT face=Arial size=2>Steve</FONT></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=JCarrington@(protected) href="mailto:JCarrington@(protected)">James Carrington</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=dir3d-l@(protected) href="mailto:dir3d-l@(protected)">dir3d-l@(protected)< /A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, April 02, 2004 6:10 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> [Dir3d-l] transforms driving newbie crazy please help :)</DIV> <DIV><BR></DIV> <DIV class=Section1> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi all? I?m trying to get my head round transforms, especially with the camera. I?ve gone through the transforms chapter in Paul Catenese?s book a few times now and <SPAN class=GramE>cant</SPAN> seem to get my head round it. <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT>< /P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I basically want to do this?<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">At the start of the movie, set the camera up into a nice initial start position for viewing the 3d object. I want to store this position/transform of the camera so that I revert back to it when the user clicks ?reset?.<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT>< /P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I then want to allow the user to rotate the camera round the object and zoom in and so on with mouse and keyboard inputs. <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT>< /P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Does anyone know of any good examples I can rip through to help me get my head round this once and for all?<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT>< /P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The method im thinking of is that I need to set up a transform, eg. <SPAN class=GramE>myTrans</SPAN> = transform(), then edit this transform and set the camera to it. I can then use <SPAN class=GramE>scene.camera[</SPAN>1].transform.identity to reset it right??<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT>< /P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Anyway, I?d very much appreciate some help.<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT>< /P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks in advance<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">James. <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT>< /P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT>< /P> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt; mso-no-proof: yes"> <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt; mso-no-proof: yes"> <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt; mso-no-proof: yes"> <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt; mso-no-proof: yes"> <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><STRONG><B><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">J</SPAN></FONT ></B></STRONG><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">ames <STRONG><B><FONT face=Arial><SPAN style="FONT-FAMILY: Arial">C</SPAN></FONT></B></STRONG>arrington</SPAN></FONT ><SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal><STRONG><B><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">3D Illustrator</SPAN></FONT></B></STRONG><SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt; mso-no-proof: yes"> <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">email: </SPAN></FONT><SPAN style="mso-no-proof: yes"><A href="mailto:jcarrington@(protected)"><STRONG><B><FONT face=Arial color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial; TEXT -DECORATION: none; text-underline: none">jcarrington@(protected)</SPAN></FONT> </B></STRONG></A><o:p></o:p></SPAN></P> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt; mso-no-proof: yes"> <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">Tel: +44 (0) 1757 703620</SPAN></FONT><SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt; mso-no-proof: yes"> <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">Record Playground Equipment Ltd</SPAN></FONT><SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">Waterfront Complex </SPAN></FONT><SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">Selby</SPAN>< /FONT><SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal><st1:place><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">North Yorkshire</SPAN></FONT></st1:place><SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal><st1:country-region><st1:place><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">United Kingdom</SPAN></FONT></st1:place></st1:country-region><SPAN style="mso-no-proof: yes"><o:p></o:p></SPAN></P></DIV></BLOCKQUOTE></BODY>< /HTML>
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|
 |