Silverlight 3 – Split image in to tiles and show in 3d space

At Remix Australia 09 one of the demos I showed was of a 3d wall with lots of images which would then extrude in to 3d space.

I’ve taken that demo and updated it a little so you can now load and show any image as a set of separate 3d tiles which can be moved around independently of one another.

Have a look at the app running here: Tile image and place tiles in to 3d space thingo.

<Sample Code>

Split image and 3d-ify

</Sample Code>

The cool part here is using the new WritableBitmap to create the tiles. Open up CrazyNoPurposeWrapImage3dThingo.cs and check out the way the code loops through rows and columns and renders potions of the source image in to tiles using WritableBitmap.Render, modifying the translate transform to move the source portion around.

bm.Render(imgWriteTemp, new TranslateTransform() { X = -cx, Y = -cy });

The 3d stuff I’ll explain another day :)

Enjoy!

Advertisement

2 Responses to Silverlight 3 – Split image in to tiles and show in 3d space

  1. Afternoon, It’s great to find a good blog like this one. Would you mind if I used some of your information, and I’ll put a link back to your blog?

  2. I so enjoyed every part of post and I’ve bookmarked your blog to read the new information you will share in the future.

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.