Expression Studiohttp://forums.silverlight.net//21.aspx/1?Expression+StudioGeneral discussions of Expression Studio usage for SilverlightMon, 01 Jan 0001 00:00:00 -0500214484http://forums.silverlight.net//p/1860/4484.aspx/1?Basic+Silverlight+3D+ElementBasic Silverlight 3D Element <p>&nbsp;Hello Everyone,</p> <p>&nbsp;I would like to make a basic 3D panel in Silverlight.&nbsp; It should appear to be thin, but you should be able to see that it does have a little depth.&nbsp; I would like to use basic animation to be able to rotate it180 degrees programmatically.&nbsp; If a language is necessary I prefer C#, but I'll take any workable solution.&nbsp; Also I would like to have the corners rounded.&nbsp; I've seen a lot of samples containing this type of element but no tutorials on how to make one or make it animated.&nbsp; Does anyone know how you make the colored mirror effect as well?&nbsp; So basically the panel would look like it was made from some highly polished metal or something (maybe shiny plastic).&nbsp; Thanks in advance.</p> <p>&nbsp;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Robert<br> &nbsp;</p> 2007-06-07T12:01:15-04:004683http://forums.silverlight.net//p/1860/4683.aspx/1?Re+Basic+Silverlight+3D+ElementRe: Basic Silverlight 3D Element <p>Well, Microsft did drop the 3D features provided with WPF from SIlverlight. But you can still do 3D through polygon manipulation. This is a link to an interresting post about 3D in Silverlight </p> <p><a href="http://www.dolittle.com/blogs/einar/archive/2007/05/19/3d-in-silverlight-1-1-alpha.aspx">http://www.dolittle.com/blogs/einar/archive/2007/05/19/3d-in-silverlight-1-1-alpha.aspx</a></p> <p>Telerik is also making a control suite that contains a 3D cube, I think the control they have is somewhat similar to what you need.<br> </p> <p>http://www.telerik.com/products/silverlight/overview.aspx&nbsp;</p> 2007-06-09T18:06:55-04:004701http://forums.silverlight.net//p/1860/4701.aspx/1?Re+Basic+Silverlight+3D+ElementRe: Basic Silverlight 3D Element <p>&nbsp;I went to the site but I'm only seeing a demo and a toolkit.&nbsp; Since I am still in basic learning mode on Silverlight technology I need some kind of description as to how to actually do this stuff.&nbsp; Once I get to a higher skill level these sites will be more useful, but not at the moment.</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Robert</p> <p>&nbsp;</p> <p>P.S. Telerik appears to be making great stuff, but I want to learn how to build this stuff from scratch before I start integrating pre-built controls.<br> &nbsp;</p> 2007-06-10T03:36:21-04:004706http://forums.silverlight.net//p/1860/4706.aspx/1?Re+Basic+Silverlight+3D+ElementRe: Basic Silverlight 3D Element <p>At this site you can find a #D demo with the source code http://bubblemark.com/3d/silverlight1.1.htm</p> <p>The source link is: http://bubblemark.com/3d/silverlight3d.zip</p> <p>The code is somehow complex, so if you are new to 3D stuff, go o http://www.gamedev.net where you can find tutorials, articles, and forums to help you learn about 3D basics like spaces, cameras, perspectives, viewports ... etc. For example this article shows the math for doing rotations in 3D</p> <p>http://www.gamedev.net/reference/articles/article790.asp&nbsp;</p> 2007-06-10T07:15:54-04:004707http://forums.silverlight.net//p/1860/4707.aspx/1?Re+Basic+Silverlight+3D+ElementRe: Basic Silverlight 3D Element <p>Thanks, this is more what I had in mind. </p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Robert </p> 2007-06-10T07:23:51-04:004748http://forums.silverlight.net//p/1860/4748.aspx/1?Re+Basic+Silverlight+3D+ElementRe: Basic Silverlight 3D Element <p>Okay, after a little playing around in Blend I found a feature that might help me with what I want to do.&nbsp; There is a menu item called &quot;flip&quot; which does return the mirror image of the object you are flipping over.&nbsp; Although it seemed to only work instantaneously.&nbsp; Is there any way to slow it down and show it as an animation?&nbsp; I only want the object to appear to flip over in place it does not need to move at all.&nbsp; I'm sure an animation this simple could be done by modifying the width of the panel to give it the appearance of &quot;flipping over&quot; without any 3D type of animation.&nbsp; Does anyone know how to do this?&nbsp; I have seen just about every demo on the internet so I doubt just giving me a link and saying &quot;check out this demo&quot; is going to help, unless the demo is pretty much doing exactly what I want to do.&nbsp; Thanks in advance.</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Robert</p> 2007-06-11T08:58:28-04:004752http://forums.silverlight.net//p/1860/4752.aspx/1?Re+Basic+Silverlight+3D+ElementRe: Basic Silverlight 3D Element <p>You can do this animation by foloowing these steps</p> <p>1- Select the object you need to rotate<br> 2- In objects and timelines window (by default on the left of blend screen), create a new Timeline (the &#43; button)<br> 3- Drag the Timeline control to (yellow line) to the end of animation (One second for example)<br> 4- Make sure the Item you want to animate is selected<br> 5- In properties window Open the Transform Tab (at the bottom)<br> 6- Select rotate transform<br> 7- Enter the transform angle<br> 8- Click play to preview the animation</p> 2007-06-11T09:36:06-04:004829http://forums.silverlight.net//p/1860/4829.aspx/1?Re+Basic+Silverlight+3D+ElementRe: Basic Silverlight 3D Element <p>&nbsp;Now we're talking!&nbsp; Just following these 8 steps helped me figure out the basics of animation in less than a minute.&nbsp; That was a subject that was throwing me off, but I get it now.&nbsp; A million thanks on that!&nbsp; However, I believe this transform function will only do animations in the x-y plane.&nbsp; I think for my particular issue I will need to do some kind of trapezoid math along with the animation which is how you would fake this in 2D if I understand this kind of animation correctly.&nbsp; This way the object appears to flip over in the z-plane as well, but really it's more of a 2D optical illusion.&nbsp; Does anyone know what math you would use on this and how you would generate an animation with a mathematical function?&nbsp; Thanks in advance. <br> </p> 2007-06-12T02:08:07-04:00107251http://forums.silverlight.net//p/1860/107251.aspx/1?Re+Re+Basic+Silverlight+3D+ElementRe: Re: Basic Silverlight 3D Element <p>&nbsp; <style> <!-- @font-face {font-family:"Cambria Math"} @font-face {font-family:Calibri} @font-face {font-family:Verdana} p.MsoNormal, li.MsoNormal, div.MsoNormal {margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; font-size:11.0pt; font-family:"Calibri","sans-serif"} a:link, span.MsoHyperlink {color:blue; text-decoration:underline} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline} .MsoChpDefault {font-size:10.0pt} @page Section1 {margin:1.0in 1.0in 1.0in 1.0in} div.Section1 {} --> </style></p> <p class="MsoNormal"><span style="font-size:14pt; line-height:115%">Hi </span></p> <p class="MsoNormal"><span style="font-size:14pt; line-height:115%">I want to develop one silver light 3d Application I got a sample project by how to create sample application like 3D. It’s wonderful. Here I pasted the link for your reference </span><a href="http://www.markdawson.org/Kit3D/" target="_blank"><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'">http://www.markdawson.org/Kit3D/</span></a><span style="font-size:14pt; line-height:115%"></span></p> <p class="MsoNormal"><span style="font-size:14pt; line-height:115%">I download that project I verified it. </span></p> <p class="MsoNormal"><span style="font-size:14pt; line-height:115%">Here we can see a image which is exactly like 3D but its not 3D.This is done by three main points,(</span> <a href="http://www.markdawson.org/kit3d/demos/sl2/tiger/testpage.html" target="_blank"> <span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'">http://www.markdawson.org/kit3d/demos/sl2/tiger/testpage.html</span></a>)<span style="font-size:14pt; line-height:115%"></span></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:14pt; color:rgb(148,54,52)">This can be done by the folowing points at code behind </span></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:14pt">1.Position-To position the triangles</span></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:14pt">2. TextureCoords-This is to apply texture for that image</span></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:14pt">3.Triangle Indices-This contains the co-ordinates for “N” number of trianges to form a image like 3D.</span><span style="font-size:14pt"></span></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><b style=""><u><span style="font-size:10pt; font-family:'Verdana','sans-serif'">Sample Points for Triangle indices in kit3D</span></u></b></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><b style=""><u><span style="font-size:10pt; font-family:'Verdana','sans-serif'"><span style="text-decoration:none">&nbsp;</span></span></u></b></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:10pt; font-family:'Verdana','sans-serif'; color:blue">string</span><span style="font-size:10pt; font-family:'Verdana','sans-serif'"> positions = <span style="color:rgb(163,21,21)">&quot;0,-0.061426,0.9388459 -0.049693,0.200773,0.692165 0,-0.031454,1.28361……………….”</span></span></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:10pt; font-family:'Verdana','sans-serif'; color:rgb(163,21,21)">&nbsp;</span></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:10pt; font-family:'Verdana','sans-serif'; color:blue">string</span><span style="font-size:10pt; font-family:'Verdana','sans-serif'"> textureCoords = <span style="color:rgb(163,21,21)">&quot;0.19086,-0.544059 0.272086,-0.355992 0.077337,-0.522561 0.187013,-0.516511 0.180133,-0.467245 0.17937,-0.4……………….”</span></span></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:10pt; font-family:'Verdana','sans-serif'; color:blue">&nbsp;</span></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:10pt; font-family:'Verdana','sans-serif'; color:blue">&nbsp;</span></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:10pt; font-family:'Verdana','sans-serif'; color:blue">string</span><span style="font-size:10pt; font-family:'Verdana','sans-serif'"> triangleIndices = <span style="color:rgb(163,21,21)">&quot;300,301,302 299,300,302 298,300,299 295,296,297 294,295……………….”</span></span></p> <p class="MsoNormal">&nbsp;</p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:10pt; font-family:'Verdana','sans-serif'; color:rgb(148,54,52)">Here I mentioed some Links For your Reference </span></p> <p class="MsoNormal" style="margin-bottom:0.0001pt; line-height:normal"><span style="font-size:10pt; font-family:'Verdana','sans-serif'">&nbsp;</span></p> <p class="MsoNormal"><a href="http://www.markdawson.org/kit3d/demos/sl2/tiger/testpage.html" target="_blank"><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'">http://www.markdawson.org/kit3d/demos/sl2/tiger/testpage.html</span></a><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'; color:black"><br> </span><a href="http://www.markdawson.org/Kit3D/" target="_blank"><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'">http://www.markdawson.org/Kit3D/</span></a><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'; color:black"><br> </span><a href="http://www.codeplex.com/Kit3D" target="_blank"><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'">http://www.codeplex.com/Kit3D</span></a><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'; color:black"><br> </span><a href="http://silverlight.net/forums/p/1860/t/19853.aspx" target="_blank"><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'">http://silverlight.net/forums/t/19853.aspx</span></a> </p> <p class="MsoNormal"><span style="color:red">Now my requirement is I want to develop one sample shirt .how I can generate shirt like Tiger (</span><span style="color:rgb(84,141,212)"><a href="http://www.markdawson.org/kit3d/demos/sl2/tiger/testpage.html" target="_blank"><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'; color:rgb(84,141,212)">http://www.markdawson.org/kit3d/demos/sl2/tiger/testpage.html</span></a></span><span style="color:red">) if you know how to generate it please tell .or otherwise if you know that three points(</span><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'; color:red">positions,</span><span style="color:red"> </span><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'; color:red">textureCoords</span><span style="color:red"> ,</span><span style="font-size:10pt; line-height:115%; font-family:'Verdana','sans-serif'; color:red"> triangleIndices )</span><span style="color:red">tell me .Any <span style="">&nbsp;</span>queries welcome </span></p> 2008-10-13T06:16:19-04:00142606http://forums.silverlight.net//p/1860/142606.aspx/1?Re+Re+Basic+Silverlight+3D+ElementRe: Re: Basic Silverlight 3D Element <p>Hello every&nbsp;one, </p> <p>I just release on codeplex too a 3D engine similar to Kit3D (Based on WPF 3D) totally c# and with support to xaml and flat lights (no textures). </p> <p>Here are the links to the project:</p> <p>code: <a href="http://www.codeplex.com/aXelerateSL3D">http://www.codeplex.com/aXelerateSL3D</a></p> <p>running sample: <a href="http://www.axelerate.com/SilverlightSamples/Silverlight3D/"> http://www.axelerate.com/SilverlightSamples/Silverlight3D/</a></p> 2008-12-04T21:45:55-05:00142788http://forums.silverlight.net//p/1860/142788.aspx/1?Re+Basic+Silverlight+3D+ElementRe: Basic Silverlight 3D Element <p>&nbsp;I did one sample silverlight 3D&nbsp; application by using Mesh.<br> I saw the&nbsp; Demos From <font color="#ff0000" style="">http://sildev.net/3DDemo/</font><font color="#ff0000" style=""> <font color="#000000" style="">its very nice <br> <br> I need one help&nbsp; </font></font><font color="#ff0000" style="">click and drag the mouse to change the 3D shirt&nbsp; model position</font>.<br> How can i achieve this give me a solution or any sample project or sample project link URL please </p> 2008-12-05T07:37:50-05:00143007http://forums.silverlight.net//p/1860/143007.aspx/1?Re+Re+Basic+Silverlight+3D+ElementRe: Re: Basic Silverlight 3D Element <p>if you use the my library is very easy to do. Only add to the GeometryModel in the transform property a transform group with two Rotation3DTransform one over the X axis and other over the Y axis, and hook the mouseleftbuttondown, mousemove and mouseleftbuttonup to change the angle of the rotation. I go to add a sample of that on my sample project, only you need is download the last version of the sourcecode to get it. Also i actualize the running sample on <a class="" title="Axelerate Silverlight 3D Sample" href="http://www.axelerate.com/SilverlightSamples/Silverlight3D/"> axelerate website</a>.</p> 2008-12-05T15:37:37-05:00143356http://forums.silverlight.net//p/1860/143356.aspx/1?Re+Re+Re+Basic+Silverlight+3D+ElementRe: Re: Re: Basic Silverlight 3D Element <p>&nbsp;HI Toducs </p> <p>http://www.axelerate.com/SilverlightSamples/Silverlight3D/&nbsp;</p> <p>in that URL i saw the Rotation using mouse .. How can i get the source code .. please give the source link for that Horse Rotation using mouse&nbsp; <br> </p> 2008-12-06T08:28:41-05:00143395http://forums.silverlight.net//p/1860/143395.aspx/1?Re+Re+Re+Re+Basic+Silverlight+3D+ElementRe: Re: Re: Re: Basic Silverlight 3D Element <p>&nbsp;Hi I got the source code from Codeplex axeletarte<br> </p> 2008-12-06T11:45:33-05:00143943http://forums.silverlight.net//p/1860/143943.aspx/1?Re+Re+Re+Basic+Silverlight+3D+ElementRe: Re: Re: Basic Silverlight 3D Element <p>&nbsp;Hi Toducs </p> <p>i saw the applications form http://www.axelerate.com/SilverlightSamples/Silverlight3D/</p> <p>when&nbsp; mouse drag on the horse it will be rotating its good one now my requirement is&nbsp; i want to add many more horse with the same function in to that single page when i am draaging over the horse at the time all the horse will be rotating how can i acheieve this .. </p> <p>&nbsp;</p> 2008-12-08T03:28:00-05:00144121http://forums.silverlight.net//p/1860/144121.aspx/1?Re+Re+Re+Re+Basic+Silverlight+3D+ElementRe: Re: Re: Re: Basic Silverlight 3D Element <p>Hi </p> <p>in that axelereate Horse doesnt work properly when the mouse over or mouse drag the horse its goes to opposite side .. i want to rotate the horse among with mouse position ..</p> <p>that means </p> <p>Mouse Position and angle == Horse &nbsp;</p> <p>&nbsp;</p> 2008-12-08T10:51:25-05:00144275http://forums.silverlight.net//p/1860/144275.aspx/1?Re+Re+Re+Re+Basic+Silverlight+3D+ElementRe: Re: Re: Re: Basic Silverlight 3D Element <p>Hi, </p> <p>The code to rotate the horse is maybe not the best, I am not sure of&nbsp;understant&nbsp;exactly wath you want to do, but&nbsp;another way to rotate the horse a little more precise is with the following code:</p> <pre class="prettyprint"> <SPAN class=kwd>private void</SPAN> viewport_MouseMove(<SPAN class=kwd>object</SPAN> sender, MouseEventArgs e) { <SPAN class=kwd>if</SPAN> (IsRotating) { Point newPosition = e.GetPosition(sender <SPAN class=kwd>as</SPAN> UIElement); <SPAN class=kwd>if</SPAN> ((newPosition.X - MousePosition.X) &gt; 0) { <SPAN class=kwd><FONT size=2>rotationY.Angle</FONT></SPAN>++; } <SPAN class=kwd>else if</SPAN> ((newPosition.X - MousePosition.X) &lt; 0) { <SPAN class=kwd><FONT size=2>rotationY.Angle</FONT></SPAN>--; } <SPAN class=kwd>if</SPAN> ((newPosition.Y - MousePosition.Y) &gt; 0) { <SPAN class=kwd><FONT size=2>rotationX.Angle</FONT></SPAN>++; } <SPAN class=kwd>else if</SPAN> ((newPosition.Y - MousePosition.Y) &lt; 0) { <SPAN class=kwd><FONT size=2>rotationX.Angle</FONT></SPAN>--; } MousePosition = newPosition; } }</pre>&nbsp;Now, about the question of have multiple horses, you can do it, putting multiple viewports using maybe a grid to format the space. Yes, you can put all the horses that you want in one single viewport and have individual rotations or translations for each one, but&nbsp;on this moment i'm not added yet, the Hit test functionallity. That means, that you don't have a way to check if the mouse is clicking over one horse specifically, you only now that the mouse is clicking on the viewport inself. 2008-12-08T16:13:53-05:00144584http://forums.silverlight.net//p/1860/144584.aspx/1?Re+Re+Re+Re+Re+Basic+Silverlight+3D+ElementRe: Re: Re: Re: Re: Basic Silverlight 3D Element <p>&nbsp; <style> <!-- @font-face {font-family:"Cambria Math"} @font-face {font-family:Calibri} p.MsoNormal, li.MsoNormal, div.MsoNormal {margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; font-size:11.0pt; font-family:"Calibri","sans-serif"} a:link, span.MsoHyperlink {color:blue; text-decoration:underline} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline} .MsoChpDefault {font-size:10.0pt} @page Section1 {margin:1.0in 1.0in 1.0in 1.0in} div.Section1 {} --> </style></p> <p class="MsoNormal">Dear Toducs </p> <p class="MsoNormal">Thanks For your reply&nbsp; <br> </p> <p class="MsoNormal">Event of mouse drag is not properly in horse rotation. ( <a href="http://www.axelerate.com/SilverlightSamples/Silverlight3D/"> http://www.axelerate.com/SilverlightSamples/Silverlight3D/</a>) When I am dragging the mouse in left Direction the horse is rotating in some other Direction.</p> <p class="MsoNormal">Actually my requirement is when I click the horse part (Say for Example Leg), The Leg should rotate and come in front of user View (Leg should be in Visible position). </p> 2008-12-09T05:33:58-05:00144681http://forums.silverlight.net//p/1860/144681.aspx/1?Re+Re+Re+Re+Re+Basic+Silverlight+3D+ElementRe: Re: Re: Re: Re: Basic Silverlight 3D Element <p>&nbsp;Hi toducs </p> <p>i am applying the image to horse from Xaml Page it will run susccessfully and image also applied&nbsp;</p> <p>&nbsp;&lt;axmedia3d:GeometryModel3D.Material&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;axmedia3d:DiffuseMaterial &gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;axmedia3d:DiffuseMaterial.Brush&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ImageBrush&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ImageBrush.ImageSource&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;BitmapImage UriSource=&quot;Simbu.jpg&quot;&gt;&lt;/BitmapImage&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ImageBrush.ImageSource&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ImageBrush&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/axmedia3d:DiffuseMaterial.Brush&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/axmedia3d:DiffuseMaterial&gt;</p> <p>&nbsp;</p> <p>But i want to apply image to horse&nbsp; from code behind how can i achieve this&nbsp; <br> </p> 2008-12-09T10:19:21-05:00144773http://forums.silverlight.net//p/1860/144773.aspx/1?Re+Re+Re+Re+Re+Basic+Silverlight+3D+ElementRe: Re: Re: Re: Re: Basic Silverlight 3D Element <p>Hi, </p> <p>Easy, but a little tricky... you need know the structure of the logical tree; I mean, you have a viewport inside you have ModelView3D and a GeometryModel3D as content. you need do something like this:</p> <p>&nbsp;<pre class="prettyprint">&nbsp;<pre class="prettyprint">ImageSource myImageSource = <SPAN class=kwd>new</SPAN> System.Windows.Media.Imaging.BitmapImage(<SPAN class=kwd>new</SPAN> Uri(<SPAN class=st>"Simbu.jpg"</SPAN>)); ImageBrush myImageBrush = <SPAN class=kwd>new</SPAN> ImageBrush(); myImageBrush.ImageSource = myImageSource;</pre>&nbsp;&nbsp;</PRE><pre class="prettyprint">((DiffuseMaterial)((GeometryModel3D)((ModelView3D)Viewport.Children[0]).Content).Material).Brush = myImageBrush</pre>&nbsp;you need also remember set the x:Name of the Vieport3D on the xaml to Viewport for this example and the Children maybe is not the 0 in your case (if you use my sample code the frist ModelView3D is the directional light).</p> 2008-12-09T14:04:32-05:00