Skip to content

Instantly share code, notes, and snippets.

@tgjones
Created February 11, 2011 11:49
Show Gist options
  • Save tgjones/822240 to your computer and use it in GitHub Desktop.
Save tgjones/822240 to your computer and use it in GitHub Desktop.
Rendering 3D images in ASP.NET
<sitdap:DynamicImage runat="server">
<Layers>
<sitdap:RenderedLayer Width="600" Height="300" SourceFileName="~/Assets/Models/3ds/85-nissan-fairlady.3ds" Zoom="1.4" Yaw="135" />
</Layers>
</sitdap:DynamicImage>
<sitdap:DynamicImage runat="server">
<Layers>
<sitdap:RenderedLayer Width="600" Height="300" BackgroundColour="LightBlue">
<Source>
<sitdap:InlineSceneSource>
<Meshes>
<sitdap:Mesh Positions="-10,15,-5 10,15,0 -10,0,-5 10,0,0" Normals="0,0,1 0,0,1 0,0,1 0,0,1"
TextureCoordinates="0,0 1,0 0,1 1,1" Indices="0,1,2 2,1,3">
<Material TextureFileName="~/Assets/Photos/Koala.jpg" DiffuseColor="White" />
</sitdap:Mesh>
<sitdap:Mesh Positions="5,0,-2 10,10,0 15,0,-2" Indices="0,1,2">
<Material DiffuseColor="Blue" />
</sitdap:Mesh>
</Meshes>
</sitdap:InlineSceneSource>
</Source>
</sitdap:RenderedLayer>
</Layers>
</sitdap:DynamicImage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment