Actionscript 3.0 :: PV3D: Collada Not Visible?

May 19, 2010

having a weird issue with a loaded Collada model. I'm not getting any errors as such, and I can trace out the collada's position etc, I just can't see it! Am I missing something stupid? Or is it a bad collada model, and if so how do I test for it? I thought it might be a texture issue, but I tried other collada models without textures and they show up as wireframes straight away.Here's the code:

Code: Select allpackage
{
import flash.display.Sprite;

[code]......

View 3 Replies


Similar Posts:


ActionScript 3.0 :: PV3D ShadedMaterial On A Collada File

Jan 20, 2009

i'm doing a materialtest with papervision, using some collada-objects that i load with the DAE-class. one thing that i didnt get to work is creating a shadedmaterial, not a shader as a material but combining a shader and my original material (loaded with the collada-file) into a new material. i dont get any errors, and when i look at examples i think i'm doing the right things, although the examples always create a new object from scratch (and add the ShadedMaterial to the fresh materialslist).What i do is load the objects, store their materials in an array (i clone them once they're loaded), and use this object-loop to create the shadedmaterial and replace it with its original.[code]The original materials are actually Bitmap FileMaterials, but since that's a subclass of BitmapMaterial i think that should work just fine. You can see my test here, every material works except for the flatshaded+bitmap, when i use that one my framerate drops dramatically but i dont see any change.URL...

View 1 Replies

ActionScript 3.0 :: Integration Of 2d Elements With PV3D

Jul 26, 2010

how I might go about integrating a 2D layer on top of a Papervison layer.

my goal: attach some 2D elements to a 3d object that is shifting rotation in 3dspace. Specifically, I want to draw a 2d line - x/y origin is the bottom right corner of the plane.

1. Height? Width? I can obtain the screen coordinates of a given displayObject3D with the screen property, but this gives me the coordinates of the center of the object. I simply haven't found a method to return the value of a related coordinate (the bottom right corner...) Since pv3d is projecting the object as a flattened 2d image at render time, you would think there would be a built in method to get such a thing. I've played around with papervisions built in drawing api, and it does a fine job of replicating the 2d api - so that might be an option if I can't find the coords in a predictable way.

2. translating zoom and focus of the camera into a predictable pixel values. If I have a plane that I know the 3d location of, and, hypothetically, the camera is viewing it squarely, how would I take into account the zoom and focus to translate the initial dimensions of the plane into pixel perfect height/width values? (for example, to place a 2d rectangle over the 3d content.) I can do a scale hack where I've applied a manual multiplier (just through trial and error), but its not exactly pixel perfect...

View 0 Replies

Actionscript 3.0 :: Event Propagation In PV3D?

May 18, 2009

how event propagation works in PV3D its definitely not like the conventional Flash style. On a quick search i have been able to find out that its possible using the InteractiveSceneManager Class, but unfortunately

View 1 Replies

ActionScript 3.0 :: Do A Drag And Drop In 3d Like PV3D

May 19, 2011

I'm wondering if its possible to use for example Papervision or something similar to make a drag and drop action in 3d space. But when I say drag and drop I mean, you drag the object and then place it in its correct spot, if you do not, then you receive an incorrect message for example.

View 1 Replies

ActionScript 3.0 :: Sphere Planes Rotation In PV3D

Oct 21, 2009

The effect I would like to achieve is when the plane around the sphere is clicked, the sphere rotates so that the plane is in the middle of the stage. but there always some problems when i clicked the plane the sphere seems like never rotate to it's back.[code]

View 3 Replies

ActionScript 3.0 :: PV3D Causes Movieclip To Spin Uncontrollably?

Feb 6, 2010

I have this script that creates a Tiltviewer effect and it works perfectly as long as you're on the page. However, if you switch focus to another browser window or tab, it begins to spin wildly and even takes a while to recover when the user comes back to the page.

ActionScript Code:
/* ----------  PV3D  ---------- */
import org.papervision3d.events.InteractiveScene3DEvent;
import org.papervision3d.materials.BitmapMaterial;

[Code].....

View 0 Replies

ActionScript 3.0 :: PV3D Gallery - Add Hyperlinks To The Images

May 26, 2011

I've been playing with this PV3D gallery that I found and dissecting and trying to learn everything I can, but I want to see if its possible to add hyperlinks to the images. Basically when the image resizes, I want it also to load a hyperlink after you click it again to remove the Image. I've included all the SourceCode in a zip file. If anyone can take a look and give me some pointers it would be awesome! edit*all the images are XML driven, I've tried making hyperlinks in the XML itself, but the way these gallery is setup is to load(img) not load(url)

View 1 Replies

Actionscript 3.0 :: PV3D Active HTML Links?

Apr 30, 2008

As part of a papervision project I need to render html text on to a plane. I've done this using a MovieMaterial and the html text renders perfectly as one would expect, except that any Code: Select all<a href=""> tags used in the html aren't working? Has anybody else experienced this problem? I've set the material to Code: Select allinteractive=true and that's working because buttons on the same material are working, just the html links aren't.

View 5 Replies

Actionscript 3.0 :: PV3D - MovieAssetMaterial Play And Stop

Jul 15, 2009

I have managed to create a Plane with a material that is a running movieClip with 8 frames. The thing is that I want to be able to play and stop that movieClip that's acting as the material of the Plane but can't seem to get to it... That movieClip called "walkingTest" that I'm using as the material, has another movieClip inside it called animatedDoll that is the one I need to play and stop.

[Code]...

View 2 Replies

Actionscript 3.0 :: PV3D - MovieAssetMaterial Play And Stop?

Aug 8, 2009

I have managed to create a Plane with a material that is a running movieClip with 8 frames. The thing is that I want to be able to play and stop that movieClip that's acting as the material of the Plane but can't seem to get to it...That movieClip called "walkingTest" that I'm using as the material, has another movieClip inside it called animatedDoll that is the one I need to play and stop. If I use:

walkingTest.animatedDoll.stop();

I get this error:

1119: Access to a possibly undefined property animatedDoll through a reference with static type flash.display:DisplayObject

But the weird thing is that this:

trace(movieAssetMaterial.movie);

Is working perfect. Here's the code...

Code: Select allpackage{
///
import flash.display.Sprite;

[code]...

View 1 Replies

Actionscript 3.0 :: Creating PV3D Textures With A Loop

Apr 28, 2010

I'm trying to create multiple objects in Papervision using Flash Builder, each one with it's own texture that I'm getting from an imported SWC.My code works perfectly if I apply one texture to all shapes, but when I try to put it into a loop I can't seem to get it to work. I think this is more of a syntax problem, I'm just not sure how to tell Flex what I want.Here's a chunk of the code that works fine, applying an "img1" texture to everything: [code]Does that make sense? I want each iteration of the loop to add a number to the end of "img" and apply that to the shape.

View 8 Replies

Flash :: Collada Model After Add It To The View 3d?

Mar 25, 2010

I have a Collada (.dae) file that I found on Google's 3d Warehouse. Using Away3d, I'm able to load the file and display it on my view using the following code:

var object3d = Collada.parse(FooXML, { material:"white", x:0, y:0, z:0 });
view.scene.addChild(object3d);

The problem is that it's just floating out in space and no matter how I adjust the position via .x, .y, or .z, it never moves from its spot. I'm using Flash cs4 and the latest stable release from Away3d.

View 1 Replies

ActionScript 3.0 :: Map Face On Collada Object?

Jun 18, 2009

I am trying to map an image(webcam image or dynamic image) on an collada object(head). In fact I have a head, and I would like to put my face on it . Something like that[url]..

How to stretch the dynamic picture so it can fit the mapping ? Match the eyes with the eyes, the nose with the (UV map) nose,... and draw the new bitmap

View 1 Replies

ActionScript 3.0 :: Edit Texture Of Collada?

Jul 15, 2009

I have a problem: i want to let users edit the texture of a collada object(it is a bottle, a cocacola bottle). After loading collada object, is it possible to let user edit texture of it(upload their own image as texture)?

View 1 Replies

ActionScript 3.0 :: Flash Collada Parser?

May 15, 2010

I am attempting to create a custom Collada parser. I Think I'm getting something wrong with the uv's. Attached is the class. Also attached is my model class so you can see the exact methods I am using to render.

View 2 Replies

ActionScript 3.0 :: Adding Video Player To PV3D Cube

Sep 29, 2008

With some great tutorials on the web, I have created an interactive cube in PV3d with a movieAssetMaterial for one the faces. I would like to add a fully functional video player to this face. I have code for an AS3 video player that I placed in the main fla on the movie clip that acts as the material. The video streams in fine, but the interface does not work. I'm wondering if this is a scope issue, a problem with adding events to a movie asset material, or some other problem. The video player code is attached. I have the video player code inside the movieAssetMaterial.

View 1 Replies

Flash :: Port Away3d Scene With Animation Into PV3d?

Jul 25, 2010

How to port Away3d scene with animation into PV3d? Are there any tutorials on how to do that?

View 1 Replies

Actionscript 3.0 :: PV3D - MouseEvent.CLICK On Object Instead Of Face

Feb 10, 2009

I've created 4 cubes, which turn on Rollover and Rollout, and on Click they should move to new x y coordinates.The Rollover and out on the faces (workfront,workback) work fine, but i don't get it right to put the Click on the whole cube.if tried to address it with workcube.addEventListener(MouseEvent.CLICK, workclick); but that doesn't work.if i address it with this or without workcube all my cubes react to the click

Code: Select allvar workcube:Cube = new Cube(new MaterialsList({front:mat2, back:mat3, top:mat0, bottom:mat0, left:mat1, right:mat1}), 60,60,60,10,10,10);
scene.addChild(workcube);

[code]....

View 4 Replies

ActionScript 3.0 :: Width And Height Of Collada / Dae Object

Jan 24, 2009

Im trying to access the width and height of a dae/collada object.myDAE.width does not work. If you have any ideas as to which class this info is contained it would be a massive help!

View 1 Replies

ActionScript 3.0 :: Import 3ds Max Camera Into Papervision Through Collada?

Jun 20, 2009

I see that the Collada file contains Camera information. I was wondering could I import the camera as well.

View 0 Replies

ActionScript 3.0 :: Using Collada DAE 3d File In Away3d Project

Jul 22, 2011

I have a question regarding my implementation of a collada 3d file. This is really my first venture into the realm of 3d and I've read some of the basic tutorials so I'm not 100% clueless, but I am a bit confused by what is appearing with the following class (this is a document root class, loaded by the .fla file): the images I loaded to skin the board with are showing up, but just in specific triangles. I want it to skin across the whole board. Is [code]there something special I need to do to achieve this?Also, my final goal with this project is to skin (texture map) one side of the board with a bitmap (drawn from an MC) and the other side with a different bitmap.

View 0 Replies

Actionscript 3.0 :: Using Collada Files From Cinema 4D For Papervision?

Jan 13, 2009

Anyone using Collada files from Cinema 4D for Papervision?The model loads fine but if there is more than one object in the scene it applies the first material to all of them rather than their respective ones. My output in flash says this:

Code: Select allINFO: BitmapFileMaterial: Loading bitmap from BodySurface_Color.png
INFO: BitmapFileMaterial: Loading bitmap from HeadSurface_Color.png
INFO: BitmapFileMaterial: Loading bitmap from ShaftSurface_Color.png
INFO: BitmapFileMaterial: Loading bitmap from TipSurface_Color.png

[code]....

When I look inside the collada file I see "Material1" used a lot in places where I think there should be proper material names from the 3d program.Ive attached the DAE and the textures if anyone can help, this was all working fine from the same model exported from Maya so I have a feeling its bad exporting from c4d.

View 2 Replies

ActionScript 3.0 :: [PV3D] 'MaterialObject3D: TransformUV() Material.bitmap Not Found!?

Nov 14, 2009

I was recently trying to import some collada models from 3d studio max into flash. verything looks fine, but I have some kind of error which rather shouldn't appear: Quote:'MaterialObject3D: transformUV() material.bitmap not found!'I've found some answers by googling it, but I'm not sur

View 0 Replies

Flash - Anti-alias A Collada Model In Papervision3D?

Sep 3, 2009

How to anti-alias a collada model in papervision3D?I've tried searching everywhere but didn't find any ways to anti-alias models. I've also tried blurring it a little as an anti-alias method but that only f-s it up and makes it look worse.How do I do that properly?

View 1 Replies

Actionscript :: Papervision 3D - Force Dimensions On A Collada File?

Feb 25, 2010

I'm working with Collada files and I need them to be a certain size. When instantiating them in pv3d you set the filename, materials, and scale. Scale works like a percentage, and there's no way to get the width, height, or depth of the DAE once in flash. I want to be able to specify the size of DAE in 3D space relative to other pv3d native geometry.

View 1 Replies

Actionscript 3 :: Control A Collada Model's Animations With Papervision3D?

Sep 11, 2011

How can i control a collada model animations with papervision3D? And why everthing i find for papervision3D is 2008 or 2009 dated? is this library death?

View 1 Replies

ActionScript 2.0 :: Change Geometry To Something Exported From Maya Using Collada

Aug 9, 2009

how to change the geometry to something exported from maya using collada but the problem lies when i rotate the object. the cube rotates just fine but any toher geometry that isnt a perfect square gets all fecked up when you rotate. as you can see from the shape i have currently the top and bottom rotate just fine. im guessing it has to do with the math.cos and math.sin but really not sure.

View 0 Replies

Actionscript 3.0 :: Papervision3D Collada Basics Tutorial Isn't Working?

Apr 11, 2009

I've been trying all day to get the Papervision3D Collada Basics tutorial to work and every time I run the file I end up with an empty black screen. No matter what I've tried i cannot get anything to show up. Finally I had the idea to download the source files from the tutorial and run those 'as is' without changing anything. When I opened the SWF created by Lee, all i saw was the same blank black screen. Has anyone else run into this? All other Flash files seem to be fine,

View 3 Replies

ActionScript 3.0 :: In-visible Sprite With Visible Children?

Sep 28, 2011

My question is: Set parentSprite.visible = false will make all children in parentSprite all invisible, right? And is there any way to just make parentSprite itself invisible without effecting it's children?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved