PDA

View Full Version : DAE file not showing up online


akalah
07-19-2009, 07:15 PM
Hello, I have an interesting dilemma. I am using Papervision2 great white. I am also using imported 3D objects from maya exported as collada files. Now working in flash everything shows up fine and dandy, no problems. However when I upload it (every file actually, I never move anything just in case) the avatar im using, a van, doesnt show up at all. The other DAE files do because they arent using any textures. The van has a UV texture applied to it, so I'm assuming that's what screwing it up. I've tred searching around but either the answers are pretty confusing or no help to me at all. Does anyone know any solution (preferably easy) that will help me out here, or know a link to a similar problem? Any help is greatly appreciated!

I am working inside flash. I'm not using any external AS files.

var daeFile: DAE;
daeFile=new DAE;
daeFile.load("van2.dae");

var universe: DisplayObject3D;
universe=new DisplayObject3D;
universe.addChild(daeFile);
default_scene.addChild(universe);

Thanks!

josesenra
07-19-2009, 09:53 PM
hi akalah

are you uploading the texture file as well?? you must , if it's a jpg or any other format.

maybe you should try replacing it before adding it to the scene, just to make sure

try replaceMaterialByName()... something like this

daeFile.replaceMaterialByName(material, "materialName");

tell me if it works ;)

akalah
07-20-2009, 12:18 AM
well I tried moving a couple more files over but I uploaded absolutely everything without changing the directories and that didnt work. As for replaceMaterialByName what does the first part of the parameters refer to? I brought the UV texture jpg into flash but I think it should be included when I exported the origional collada file from maya. Im confused as to if it will wrap the texture properly around the dae file.