020 7920 7120 | public@publicreative.com

Posts Tagged ‘Papervision’

April 30th, 2009

Inside the Classic

It’s been a while between posts for me. Mainly because I have been heavily involved in creating the Remaster the Classic project for the last month or so.

The site was made for K-Swiss and MTV to promote the K-Swiss Classic Remastered trainer. Users have the opportunity to customise their Classic by expressing their creativity using paint, graphics and uploading images not to mention adding chains, diamonds and/or studs to their shoe.

Designs are applied to the shoe (a Collada model rendered with Papervision, created in Maya) in real time. Users can continue to edit the shoe until they are happy with it and then submit the shoe to the competition and gallery when both the texture and a thumbnail of the designed shoe are saved.

There were many challenges and many (very) late nights but well worth it as the end result has proven to be extremely popular. Below is a high level overview of the site in relation to the functionality of the Shoe.

(more…)

January 23rd, 2009

3dsMax Texture Baking and Papervision

3d is really exciting us at the moment. Papervision is great but so far we’ve only used primitive shapes within Papervision to do all our work. Chris, our newest arrival in the Public development pit has been amazing us with his 3dsMax skills and of course prompted us to get up with the play and start exporting from Max into flash.

It’s also prompted me, having no 3dsMax experience but plenty of Papervision experience to start having a play. After many hours at work and home coming up to speed with the basics of modelling, lightning and materials and learning how to texture bake and deal with UV maps I think I’ve got a handle on what this is all about.

Here’s the first test. Nothing amazing but the speakers are fully UVW unwrapped in 3dsMax and the textures are baked on.

Next up will be testing animation exported from 3dsMax and some more detailed modeling.

Click image to open:

maxpreview.jpg

(more…)

January 13th, 2009

PV3D with AS3DMod and Shaders

This was my first attempt at using the AS3DMod Library so you can see where the previously posted example came from.

I’ve also added gouraud shading to make it a little more interesting.

Click image to open:

publicFlag.jpg

(more…)

January 13th, 2009

PV3D Page Flip with AS3Dmod and Effects

We’ve made sites using Papervision in the past, but I’ve had a bit of time to really get to know it a lot better. There has been so much functionality added lately it’s hard to keep up!

I’ve also really enjoyed playing with the AS3Dmod library by Bartek Drozdz and using BitmapEffectLayer’s

The following project started as a simple idea for a gallery to showcase work that we have done but eventually evolved into more of a personal indulgence. Click anywhere to flip the page over.

To get the two sided Plane effect I’ve simply used a Cube that is 1px deep. The thing that frustrated me the most was trying to get the MovieMaterial holding the content of the image Loader instance to render the correct size. Initially I was creating the MovieMaterial’s at the same time I was initialising the Loaders but as there was no content in the loaders yet, the MovieMaterial rendered at its default size.

To fix this I initially assign a place holder Sprite that is the correct size to the MovieMaterial objects. Then when the Loader finishes loading the asset I switch the MovieMaterial that contains the Sprite for a new MovieMaterial that contains the image data from the Loader. This also means that the MovieMaterial does not have to be animated (updated on each render loop) improving performance.

It took me a long time find the method to replace materials, but it should have been pretty obvious.

_cube.replaceMaterialByName( /* new material */ , /* material name */);

Click image to open: Click again to flip:

headerPreview.jpg

Also thanks to Zack Jordan for sharing his SWFLibrary class.

(more…)