I am new to Papervision, and am experimenting on importing animated 3ds max models into my project.I can export a model (with no animations) into Collada format, and import it using Papervision, with no problems. But when I try to import a model with animations, i get this error:[code]I am using Flash CS 4 / Papervision3D Public Beta 2.0 - Great White / 3D Studio Max 2009 (with the New Collada Plugin).
i created a 3d model using sketchup and exported it as a DAE file.
then i try to import the model into papervision, but the model never appear.
when i use the DAE file provided in the examples, it works. only when i tried to create my own models, it doesn't work. does this have anything to do with sketchup?
I'm working on an Augmented Reality project that requires an animated 3d model to be displayed. I've managed to far to get all the AR marker detection and whatnot working, but I've come to a dead halt when trying to load an animated model. I'm working in 3Ds Max 2011 for all the modeling and animating. The model is exported as COLLADA (using 3dsMax's own Autodesk Collada exporter) and embedded into the Flex project. I can export a model, and it does load into papervision...The problem is that an animated model, although it exports fine and produces no compile-time erros, gives me a run-time error about a call to a null object. This error is being thrown by papervision's animation classes but it really doesn't give too much information, I see no animations...
This is the error I get: TypeError: Error #1009: Cannot access a property or method of a null object reference. at org.papervision3d.objects.parsers::DAE/buildAnimationChannels()[C:UsersUserDesktopStuffTechFlashClassesorgpapervision3dobjectsparsersDAE.as:568] at org.papervision3d.objects.parsers::DAE/onParseAnimationsComplete()[C:UsersUserDesktopStuffTechFlashClassesorgpapervision3dobjectsparsersDAE.as:1496] at flash.events::EventDispatcher/dispatchEventFunction() .....
I am trying to build a portfolio application similar to the used by Whitevoid. I am using Flex 4 and Papervision3D 2. I have everything working except for one issue. When I try to load an external SWF as a material on one of the planes, I can see any native Flex or Flash components in their correct positions, but the papervision objects are not being rendered properly. It looks like the viewport is not being set in the nested swf. I have posted my code for loading the swf below.
private function loadMovie(path:String=""):void { loader = new Loader(); request = new URLRequest(path);
[Code]....
Below I have posted two pictures. The first is a shot of the application running by itself. The second is the application as a MovieMaterial on a Plane. You can see how the button created as a spark object in the mxml stays in the correct position, but papervision sphere (which is rotating) is in the wrong location.
I have been rendering large 3D frames as part of an animation for my main menu of my game. (1024*768) Very large.What is the best file format to import into flash as animation sequences, to get the best quality and compression out of flash. I am having trouble keeping file size down.
I have 10 jpg which same size and the name is liked a1, a2, a3...a10. Can I import them to flash and arrange them to same position on the stage and the animation is like: frame1:a1.jpg frame2:a2.jpg ...frame10:a10.jpg What ways is quickest to achieve it?
I have done simply 3D animation in Flash CS5 with AS3 (letters horizontal spin).
I wanted to include that simple spin.swf into the Flash 8 AS2 project. P.S. the project is completed in Flash 8 AS2, a year ago, so I just want to update it.
When I call the swf or import it the swf is empty and there is no animation.
I have been rendering large 3D frames as part of an animation for my main menu of my game. (1024*768) Very large. What is the best file format to import into flash as animation sequences, to get the best quality and compression out of flash. I am having trouble keeping file size down.
Basically I have 51 separate static images that I need to import into Flash and then use to form an animation. I don't want to simply make them into a gif unless I can manually control the animation (the images essentially represent a 'health bar' in a game, so I need to be able to control what is shown based on the amount of 'health' the player has). I have been told that there is an easy way to do this in Flash, but the person I was talking to wasn't sure how to go about it.
Im using PS CS5 to build the parts of animation i am making in Flash CS5. Im not using PS for the animation as the GIF quality is horrendous, and also rotating layers for animation is a no go!Anyway, im saving the individual layers in (Save for Web) as PNG-24 files with transparency. Then importing them 'To Stage' in Flash. That side is all good. When ive made the animation in Flash and go to 'Publish Preview' there is a 'background' there. Also there is a border around the files on the stage. This appears to be the size of the 'background' in the animation. Transparency is set in the GIF settings.
I am importing a picture in flash and i found out that there is a difference between importing to the stage, and importing to the library... [URL] I've placed both picture close of each other and if you look closely, you'll notice that one of them is losing some resolution. Both picture come from the same file, a png. The picture imported to the stage is sharper than the one imported to the library. is there a way to import that picture to the library without losing any resolution?
I have a movieclip that shows an animation onRollOver and an animation on RollOut but onRelease the animation enlarge itselfs but now when I'll roll out when the animation isn't open (so i didn't release) the animation plays the animation for the minimizing of the animation. Here's my code (I know its a bit amateuristic but I'm not a programmer )
I asked this question in papervision 3d forums, but nobody replied. So. I am writing a 3D application with actionscript 3 and papervision 3D. But I have stuck on one problem, I can't figure out, how to place skidmarks (decals?) on an object. The only method I can think of is drawing directly to BitmapData (texture). What would you suggest to draw a textured skidmark on ground (plane primitive)?
I have done globe in papervision - basically sphere + material (image of political map) over it.Now, I need to make every country on my globe interactive, what means, I need somehow create event listeners for lots (at least 15) of small areas on my globe, and if I click those areas, something will happen (say, additional info windowwill come out)I googled a lot and found a lot of things describing some realted stuff (hotspots?), but since I am quite new in flash/actionscript/papervision, could I, please, get some introductory idea how my problem might be solved?
I am trying to develop a game based on papervision and flash.the very basic idea of the game is that some 3D objects are falling from the sky and you have to catch them .. At a time there can be as many as 20 of such 3D objects on the stage.Now the problem is that these 3D objects are causing too much CPU usage .. I was hoping if there was another way to do the same thing and which causes less of performance issues ...
1.I have two classes suppose A and B
2.the class A calls class B
3.class B initiates a 3D sphere whenever it is called .. the Sphere has a bitmap image material .. and it rotates along the X axis on every enter frame event
4.class A has a timer function which moves the 3D object in the Y direction and also destroys it when the object reaches a specified Y position ..here are the code snippets ...
Class A :Code: public function onTick(e:TimerEvent) { if(Math.random() < spawnrate)[code]......
how to setup Planes with papervision, then retrieve them later?I've set up the 3d scene like this:
PHP Code:
var con:Sprite = new Sprite(); con.x = this.width * 0.5; con.y = this.height * 0.3; holder.addChild(con);
[code]....
but none of these methods seem to work,, possibly because you can't do the same things to Planes that you can to movieclips...(?)the scene.numChildren seems to work though.
I have an SWF loading in an SWF containing a papervision scene.I've done it before yet problem is, I get an error - I'm not sure what the issue really is.[code]
now i need to add a health bar and countdown timer on the screen. how am i going to do it? adding a plane in the 3d scene? the health bar is always on the top right corner of the screen. is there anyway of NOT using 3d concept to implement this. i mean i could do it with a plane keep changing it's texture to show the status of the character. is there any cleaner way of doing it?
how to create a carousel like his with papervision. I created one but the planes just go round and round. I was wondering if it's possible for the planes to keep the same angel as the example of the link. I do not want the plane to rotate itself on the y axis but just move on the X/Z axis just going around an object in the middle.
there's a simple thing in papervision I can't do , I want to have a simple button on my swf like we have in flash , just a 2d square which is on screen and you can click on it and have some action
why I get an Error #1009("cannot access a property or method of a null object reference at at rain3D/createScene() at rain3D()"] using this simple code:
I've used Flash and AS2 for years: I want to move over to AS3 and play with Papervision. Everyone seems to use Eclipse rather than Flash. Does anyone know where there is a SIMPLE, and I stress SIMPLE(!) tutorial to set up Eclipse for AS3 and install and get started with Papervision because so far all I can find are the most confusing and frustrating tutorials ever. I'm on the verge of giving up on this because even the set up of Eclipse seems utterly impenetrable.
I am having trouble getting a spaceship to fly through space in 3 dimensions. I was wondering if anyone knows of like some good example source code for 3D plane flying movement?
Or if someone could point me in the right direction for the Trigonometry equations,