Papervision3D + Loading Collada

Playing around with collada (dae) files which use textures. You can get lots of models at google’s 3D warehouse, check it and start playing around with it. Its really easy! package { // import flash import flash.filters.BlurFilter; import flash.display.StageScaleMode; import flash.display.StageAlign; import flash.display.Sprite; import flash.events.Event; //import main papervision assets import org.papervision3d.cameras.Camera3D; import org.papervision3d.lights.PointLight3D; import org.papervision3d.render.QuadrantRenderEngine; […]

Fun with Ribbons3D

Old experiment I found with the ribbon3D class thought might as well post it. With many thanx to Soulwire for writing this class. Based on where your mouse positions it tweens to that location via bezier points. package {  // papervision  import org.papervision3d.core.effects.view.ReflectionView;  import org.papervision3d.lights.PointLight3D;  import org.papervision3d.materials.shadematerials.FlatShadeMaterial;  import org.papervision3d.objects.DisplayObject3D;    // tweenmax  import gs.TweenMax;  import […]

3D World – SimpleDemo

Simple demo showing the world in 3D, using a bitmap as texture combined with a phongshader and a shadedmaterial which combines the bitmap and the phongshader. For sure its not new, but its still fun. Here’s the code: package {  // tweenmax import gs.easing.Back;  import gs.TweenMax;    // papervision  import org.papervision3d.materials.shaders.ShadedMaterial;  import org.papervision3d.materials.shaders.PhongShader;  import org.papervision3d.core.effects.view.ReflectionView; […]

GoogleMaps API – SimpleDemo

Simple demo showing google maps in flash, add a marker as an overlay with a listener to open its information window. (Up at codexperiments.googlecode.com). package {  // flash  import flash.geom.Point;  import flash.events.Event;  import flash.display.MovieClip;    // google maps  import com.google.maps.Map;  import com.google.maps.MapEvent;  import com.google.maps.MapType;  import com.google.maps.LatLng;  import com.google.maps.InfoWindowOptions;  import com.google.maps.MapOptions;  import com.google.maps.overlays.Marker;  import com.google.maps.MapMouseEvent;  import […]

Papervision3D Multiple Objects hitTest

A little research on hitTest with multiple objects. You could imagine what you could do with it, for instance create a game like Guitar Hero (with a setup like this that is). Code is now committed at codexperiments.googlecode.com, hope you enjoy it If you want to add more hitArea’s (planes) on the stage to do […]

Experiments downloads available asap

As soon as possible I will commit all the experiments you find on this blog to codexperiments.googlecode.com. At the moment it’s an empty repository. This will be updated soon!

Papervision3D 2.0 + Google Sketchup – v2

After loading the collada file and apply a texture on the whole object (see previous post), we now give each seperate object from the collada file its own texture and make them interactive. get main node: var holder:DisplayObject3D = daeFile.getChildByName(“COLLADA_Scene”).getChildByName(“Model”); Within the “Model” we find all our 6 mesh shapes. loop through all meshes: for […]

Papervision3D 2.0 and Google Sketchup

Its a first tryout, so any feedback/help/examples it’s all welcome, just drop a line/comment. Thanx in advance! UPDATE: instead of using the BasicRenderEngine I implemented the QuadrantRenderEngine with the type number set to 1, so now there are no face ‘issues’ anymore. Go check it out And here are the source files: download

Particles v3

Particles with random velocity on x-axis aswell on the y-axis and gravitation. Using the same Particle class as in Particles v1 (post), is this another demo: package {  // FLASH  import flash.filters.BlurFilter;  import flash.utils.getDefinitionByName;  import flash.events.Event;  import flash.display.MovieClip;    public class Particles003 extends MovieClip  {   //   // Private properties   //   private […]

Particles v2

Particles with no velocity on the axis’s, but instead we use negative gravitation. Using the same Particle class as in Particles v1 (post), is this demo 2: package { // FLASH  import flash.filters.BlurFilter;  import flash.utils.getDefinitionByName;  import flash.events.Event;  import flash.display.MovieClip;    public class Particles002 extends MovieClip  {   //   // Private properties   //   […]

« go backkeep looking »
-->