  | | | transforms driving newbie crazy please help :) | transforms driving newbie crazy please help :) 2004-04-02 - By James Carrington
Back 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) <mailto:jcarrington@(protected)> Tel: +44 (0) 1757 703620 Record Playground Equipment Ltd Waterfront Complex Selby North Yorkshire United Kingdom ************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete it and any attachents.
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas -microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office :smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <link rel=File-List href="cid:filelist.xml@(protected)"> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/> <!--[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 link=blue vlink=purple style='tab-interval:36.0pt'>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; 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 size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I basically want to do this…<o:p></o:p></span></font>< /p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; 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 size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; 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 size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; 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 size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; 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 size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Anyway, I’d very much appreciate some help.<o:p></o:p> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Thanks in advance<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>James. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><strong><b><font size=2 face=Arial><span style='font-size: 10.0pt;font-family:Arial;mso-no-proof:yes'>J</span></font></b></strong><font size=2 face=Arial><span style='font-size:10.0pt;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 size=2 face=Arial><span style='font-size: 10.0pt;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 size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial;mso-no-proof:yes'>email: </span></font><span style='mso-no-proof:yes'><a href="mailto:jcarrington@(protected)"><strong><b> <font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial; color:windowtext;text-decoration:none;text-underline:none'>jcarrington@(protected) .co.uk</span></font></b></strong></a><o:p></o:p></span></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; 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 size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; 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 size=2 face=Arial><span style='font-size:10.0pt; 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 size=2 face=Arial><span style='font-size:10.0pt; 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 size=2 face=Arial><span style='font-size: 10.0pt;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 size=2 face=Arial><span style='font-size:10.0pt;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>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt; mso-no-proof:yes'>*************************************************<o:p></o:p>< /span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt; mso-no-proof:yes'>This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete it and any attachents.</span></font><font size=2><span style='font-size:10.0pt'><o:p></o:p ></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
|
|
|