VectorVision Hello World
Since VectorVision was integrated with Papervision3D, it seemed only appropriate to make a Hello World demo for today. Simple, eh?
package { import flash.events.Event; import org.papervision3d.materials.special.Letter3DMaterial; import org.papervision3d.typography.Font3D; import org.papervision3d.typography.Text3D; import org.papervision3d.typography.fonts.HelveticaBold; import org.papervision3d.view.BasicView; [SWF(width="640", height="480", backgroundColor="#000000", frameRate="60")] public class VectorVisionHelloWorld extends BasicView { private var text3D:Text3D; public function VectorVisionHelloWorld() { var material:Letter3DMaterial = new Letter3DMaterial(0xcc0000); var font3D:Font3D = new HelveticaBold(); text3D = new Text3D("Hello World", font3D, material); scene.addChild(text3D); startRendering(); } override protected function onRenderTick(event:Event=null):void { text3D.yaw(1); renderer.renderScene(scene, camera, viewport); } } }
3 Comments to VectorVision Hello World
I try this Example an get some Errors:
TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.
at org.papervision3d.view.layer::ViewportLayer/processRenderItem()
at org.papervision3d.render::BasicRenderEngine/org.papervision3d.render:BasicRenderEngine::doRender()
at org.papervision3d.render::BasicRenderEngine/renderScene()
at VectorVisionHelloWorld/VectorVisionHelloWorld::onRenderTick()
it’s repeating all the time…
No Permission or a method error.
The Flash is working but there is only the first letter ( the “H” ) displayed.
After one turn the letter switch to a mirrow d then again after a turn H and so on…
I’m using Papervision3D Public Beta 2.0 - Great White (December 3rd, 2008)
It’s so cool you guys added VectorVision - I’m already using it and it works awesome…
February 19, 2009
When I copy the code above and run it in Flash, the text rotates fine but the disappears once it hits 90 degrees, so the backside is not visible. When i run the example above, it works perfectly. Do you know what could be causing this?
Leave a comment
Search
Recent Posts
- MorphController - Mighty Morphing Papervision3D
- End dump
- Test if a plane is within the view of the camera (aka testing if culled)
- Materials Reference
- Perlin Blob
- Dynamic Text on a Plane
- Maya Texture Baking
- Creating a Custom VectorVision Font
- Workshop video and example dump
- 3D Math Book Recommendation
- Heading to New York. brb ;)
- Launching Flex4.org
- Flex 4 Layouts and Groups
- Flex 4 States
- How to click on stuff in Papervision3D - Viewport, ViewportLayers, InteractiveScene3DEvent, Mouse3D, and MovieMaterial Buttons
Recent Comments
- alexxcz on MorphController - Mighty Morphing Papervision3D
- andre venancio on 3D Math Book Recommendation
- DS on Dynamic Text on a Plane
- John Lindquist on Maya Texture Baking
- Itai on Maya Texture Baking
- Javier on End dump
- samBrown on End dump
- tf on archive
- Pan on requests
- Martin Lindelöf on requests


December 17, 2008