Flash VR Effect 2.0

April 17th, 2009

I have had a chance to mess around some more with the earlier VR effect I had posted. Since then, the powers of the universe have granted me access to Flash CS3 and thus, AS 3. You can see this new, uber powerful code being put to use on this very site! Check it out!

This differs from the original VR file in many ways. Take it away, bullet list!

  • Rebuilt using AS 3
  • Preloader
  • Rotation is now controlled by holding the mouse down and moving left or right rather than just moving to the left or right. This allows you to “pause” the VR by letting go of the mouse.
  • The speed can be controlled by changing a variable in the fla (dragSpeed; frame 2, line 2).

I am planning some more updates to this file in the future, including: loading from an XML, y-scrolling, and zooming. Joy!

Download the source code! [ 8K ]

 

[Free] Ring Truss Model

November 12th, 2007

Ring Truss

A free model! It’s a truss!

This was built in Cinema 4D Release 8.2. There are no textures included.

Download Ring Truss Model [ 5k ]

 

[Free] Square Truss

November 11th, 2007

Square Truss

A free model! It’s a truss!

This was built in Cinema 4D Release 8.2. There are no textures included.

Download Square Truss Model [ 314k ]

 

Flash VR Effect 1.0

October 31st, 2007

Today I am giving away a simple Flash VR file. You will need to create images at the various angles of your subject. Then simply import all of your images into this Flash file, adjust the speed to your tastes, and you will have a simple VR effect for the web or wherever.

Move your mouse to the right and the model will rotate counter-clockwise. Move the mouse to the left and the model will rotate clockwise.

Plan for further development include:

  • adding vertical rotation
  • smoother rotation
  • on the fly updating (no need to have Flash to edit the content)
  • a simple GUI

Model taken from 3dtotal.

All the ActionScript is on the first frame. It is as follows:

stop();

// Edit topSpeed to modify how fast the VR can rotate
var topSpeed:Number = 2;
var frameSpeed:Number;
var frame:Number = _root._currentframe;

// Functions, no need to edit these
onEnterFrame = function () {
	frameSpeed = Math.round(topSpeed*(_xmouse-Stage.width/2)/(Stage.width/2));
	newFrame = _root._currentframe+frameSpeed;
	if (newFrame>_root._totalframes) {
		newFrame = newFrame-_root._totalframes;
	} else if (newFrame<=0) {
		newFrame = _root._totalframes+newFrame;
	}
	gotoAndStop(newFrame);
	frame = _root._currentframe;
};

Download the source code! [ 1.5M ]

 

ASP List Directory 1.0

October 21st, 2007

There have been occasions where I have needed to just dump some files in a hidden directory of a website for internal use or to preview to a client. I don’t want to create a whole preview site for just this instance, and I want to keep directory browsing off for the rest of the site.

ASP offers some simple tools to list all the files in a specific folder and any sub-folders. The following code wasn’t written by me, credit goes to Mike Hall. I did however make some modifications to his original code. He had it set up in such a way as that you needed to manually enter which folders would be listed. I wanted something simpler. Something you could just drop in a folder on your site and it would automatically load and list all the files. I also didn’t want the index file to appear in this list.

Here is an example of the code in action.

View the source code!
Download the source code! [ 1k ]

Check out the updated version as well.

 

[Free] 8′x10′ Pop-Up Wall Model

October 2nd, 2007

8'x10' Popup Wall

Wowzers! A free model! Not an exciting model at all, but it is useful for saving a little time when setting up a concept for a trade show. This is a 10′ wide, 8′ tall curved pop-up wall.

This was built in Cinema 4D Release 8.2. It is set up to use the saved GI. The texture files are ready to go, just place your art over the grey images included in the TEX folder and you should be good to go. Enjoy!

Download 8′ x 10′ Popup Model [ 612k ]