Tutorial Papervision3D – Load Collada DAE example source

March 8th, 2009 5 comments

collada

VIEW EXAMPLE

DOWNLOAD EXAMPLE

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package
{
	import flash.events.Event;
	import org.papervision3d.materials.utils.MaterialsList;
	import org.papervision3d.materials.WireframeMaterial;
	import org.papervision3d.objects.parsers.DAE;
	import org.papervision3d.objects.DisplayObject3D;
	import org.papervision3d.view.BasicView;
	import flash.display.Sprite;
 
	public class Main extends BasicView
	{
		private var _obj:DAE;
 
		public function Main()
		{
			super(0, 0, true);
 
			createObject();
 
			_camera.zoom = 1000 / _camera.focus + 1;
			var cameraTarget:DisplayObject3D = new DisplayObject3D();
			_camera.target = cameraTarget;
 
			startRendering();
		}
 
		private function createObject():void
		{
			_obj = new DAE(false, "objeto");
			_obj.load("soccer.DAE");
			scene.addChild(_obj);
		}
 
		override protected function onRenderTick(event:Event = null):void
		{
			_obj.roll(1);
 
			super.onRenderTick(event);
		}
	}
}



Categories: Flash, Papervision3d Tags:

Flash Actionscript 3 How to rotate object 360º degrees

March 8th, 2009 No comments

This is a very simple example of how to rotate an object 360 degrees. The theory is very simple, you must have a movieclip that contains a set of images with the rotation of any element. Then you can use a Slider component to go to  movieclip frame desired.

download example



Categories: Actionscript 3, Flash Tags:

Tutorial Papervision3D – Lights, light examples source code

March 7th, 2009 No comments

papervision3d-light

VIEW EXAMPLE
DOWNLOAD EXAMPLE
In papervision3D, we can find different types of materials that work with a light: FlatShadeMaterial, GouraudMaterial, PhongMaterial, and others. Here a sample illuminated material, the FlatShadeMaterial.


Categories: Papervision3d Tags:

flash actionscript 3 AS3DMod flag or cloth effect, changing objects

March 7th, 2009 No comments

bandera-chile-320x320 as3dmod-320x320

Here another important library, AS3DMod is a library for modifying 3D objects. Its main features are:
Current version 0.2. Features include:

VER EJEMPLO
DESCARGAR EJEMPLO

1. 7 modifiers as listed above
2. a framework for creating static and animated modifier stacks
3. 4 plug-ins for the most popular 3d engines: Pv3d, Away3d, Sandy3d and Alternativa3d
4. a simple demo for each engine

The project site is in http://code.google.com/p/as3dmod/ there you can download and find more examples.



Get Adobe Flash player