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
i am currently having trouble with my object rotating to face another object.currently it works fine as in this picture, my object at the origin will be able to rotate and move to the object in the 3 quadrants except the quadrant with positive 90degrees to 180 degrees, my object will rotate a few full rotation for some time while moving to the object does anyone know why? the sentence that i use to rotate is rotation += (foodLocationDegrees - (rotation - 90)) * .2; whereby food is calculated using
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!
currently i have a function in which my object fish will move to a food i am having trouble getting it to rotate nicely to the food currently my function is as below.if the food is above the fish my fish rotation is 0 which is facing up, if the food is below my fish i will give it a rotation of 180 which will make it face down , however the rotation is too sudden it does not give a nice and realistic effect of rotating to the food.how can i make it when rotating to move some distance and at the same time rotate? because it cant rotate to the food in the same spot as it would not be realistic.
public function moveToFood():void { var foodTarget:Food = fishArray[fishArray.length - 1];
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
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:
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.
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)?
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:
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.
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...
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.
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.
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?
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.
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?
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.
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,
I was wondering if anyone knew of a place to download stock collada files relatively inexpensively. I am not looking to create anything to sell, just trying to learn and practice using them with PV3d.
I have created a few cool little animations with FLAR toolkit and it all works fine I am super happy with how collada files work in the AR apps that Ive made. I would like to make an animated collada file just simply loop through an animation. I am pretty sure its possible but I don't know whether the examples Ive seen use code or whether the animation is imported.
I am trying to import a DAE file, and it gets put on the stage, but for some reason I cannot control the scale of it. I know you have to pass a 3rd param to the Collada() constructor to be the scale, but no matter what I put there, it doesnt change the scale.Alas, I cannot get the scaleX or scaleY or scaleZ to change anything.Just need to know how to adjust the size/scale of this model.
I'm recently playing with Away3D Library and have a problem in finding Face center in Away3D. Why Away3DLite has a face.center feature while Away3D doesn't have it ? and what is the alternative solution for this ?
I have the project where I need to use papervision3d engine. It's 3d model of building. Each floor is separate .dae model embedded within swf file. Everything is okay regarding performance, but z-sorting of BasicRenderEngine is making me sad. If you take a look over attached image you will see that sometimes wall faces appear above cover and backwise, cover faces appear above wall. Each floor model was made with Swift3d by path extrussion. It has two types of material: one for wall and another for cover. Is there any way I can go through all faces and regading material applied to it assign them ViewportLayer and sort index ?
I tried to use QuadrantRenderEngine, it does correct z-sorting, but is CPU killer.
I have a flash movie i would like to create that will be around 400px x 500px.
I would then like to have a rhino charging towards you (the user) so it would have the effect that the rhino is trying to break the screen to charge at you (face on) but it stumbles because of the glass on the screen.
I am making a simple Flash animation that I would like to put online and let people visiting my site upload a picture of their face so they can be the character, like on Elf Yourself. How do I do that? I'm assuming I make the animation with a square image of a face that I mask out, and the image gets replaced when a new one is uploaded, but I don't know how to set that up dynamically, or if there's a better way.
what is involved to create a Flash file where the user can upload a .jpg of their face, crop it, and then add that picture to an animation? I'm sure you've all seen this...sort of a jib-jab type animation.
I'm trying to accomplish something with flash but I'm having some problems, if not a solution I'm hoping someone can tell me a method and what I should read up on to do this: I want to have an image on the stage that has a gap the shape of a face in the middle of it, I'd then like to put a webcam feed behind it so people can line their face up in the gap and press a button to take a picture. (I've managed to put the webcam on the stage and take the picture but can't work out how to put it behind an image). Then I cant quite work out how I'd put the face onto a character I've drawn.
I got a working code to detect face in flash. It just detects and draws a square mark over the face displayed in flash player. Now I do need when ever a face is detected automatically a photo to be taken. How to implement this? Is there any open source project available for this?