DAE export 3dsmax. Missing library material files

316 views
Skip to first unread message

M. van Sighem

unread,
Dec 3, 2009, 10:27:45 AM12/3/09
to FLARToolKit userz
Hi,

I'm working with papervision and flartoolkit to create an augmented
reality application.

My 3d design in 3dsmax needs to be exported as DAE. Herefor I
installed Collada exporter. But when its running in flash it doest
show my materials, only colours. Where can I find the materials after
export?

Example images can be viewed here:
http://www.3d-palace.com/forum/3ds-max-forum/21337-dae-export-missing-library-files.html

thnx for helping!

SDaniel

unread,
Dec 3, 2009, 10:43:11 AM12/3/09
to flartool...@googlegroups.com
Do you mark "Relative Paths" in the COLLADA exporter?
--
- ZoiX -
Sergio Daniel Fernández González
www.inkframe.com

jbyrne2007

unread,
Dec 3, 2009, 11:02:35 AM12/3/09
to FLARToolKit userz
3ds max does not export your materials as far as im aware, DAE is an
XML file just open it up in notepad or something and just alter your
paths to your materials.

Metabaron

unread,
Dec 3, 2009, 10:43:22 AM12/3/09
to FLARToolKit userz
Open your DAE file and have a look to where the image should be,
something like "../images" or "images"
Be sure the images are store where they are supposed to.

At the same time, I was unable to have my images stored in "../images"
so moved them in "images" and changed the links
> Example images can be viewed here:http://www.3d-palace.com/forum/3ds-max-forum/21337-dae-export-missing...
>
> thnx for helping!

Pedro Taranto

unread,
Dec 3, 2009, 11:22:28 AM12/3/09
to flartool...@googlegroups.com
you also need to include the path on you code

ex:
    _dae = new DAE();
    _dae.addFileSearchPath("./images");

--
Pedro Taranto

jbyrne2007

unread,
Dec 3, 2009, 11:43:42 AM12/3/09
to FLARToolKit userz
Never had to do that Pedro, what version of papervision are you using.

Metabaron

unread,
Dec 3, 2009, 11:44:31 AM12/3/09
to FLARToolKit userz
Never did that before...

M. van Sighem

unread,
Dec 4, 2009, 5:20:49 AM12/4/09
to FLARToolKit userz
I had already done this and placed the images in the same folder.

<library_images>
<image id="LAKEREM.JPG" name="LAKEREM_JPG">
<init_from>./LAKEREM.JPG</init_from>
</image>
<image id="OPVER.JPG" name="OPVER_JPG">
<init_from>./OPVER.JPG</init_from>
......
</library_images>

So the images come up correctly but not the materials. Beneath it
says:

<library_materials>
<material id="BMW" name="BMW">
<instance_effect url="#BMW-fx"/>
</material>
<material id="int" name="int">
<instance_effect url="#int-fx"/>
</material>
etc...

Isn't there a file somewhere with the materials? Because the instance
effect has got an URL?

Relative paths were marked.

M. van Sighem

unread,
Dec 4, 2009, 12:08:15 PM12/4/09
to FLARToolKit userz
Anyone?

Benson Tan

unread,
Dec 6, 2009, 11:42:40 AM12/6/09
to FLARToolKit userz
Me too.

I am facing the same problem. When I open the dae files, I was able to
see the model, animation and the textures on it. However, when I run
Flarmanager with it. I was unable.

<library_images>
<image id="file3-image" name="file3">
<init_from>CubeHuman1.jpg</init_from>
</image>
</library_images>

--------------------------------------------------------------------------

var model:DAE = new DAE(true, "model", true);
model.load("../resources/assets/CubeHuman1.dae");
model.rotationX = 90;
model.rotationZ = 90;
model.scale = 100;



On Dec 5, 1:08 am, "M. van Sighem" <msig...@gmail.com> wrote:
> Anyone?
>

jbyrne2007

unread,
Dec 8, 2009, 4:52:07 AM12/8/09
to FLARToolKit userz
<library_images>
<image id="LAKEREM.JPG" name="LAKEREM_JPG">
<init_from>./LAKEREM.JPG</init_from>
</image>
<image id="OPVER.JPG" name="OPVER_JPG">
<init_from>./OPVER.JPG</init_from>

CHANGE TO

<library_images>
<image id="LAKEREM.JPG" name="LAKEREM_JPG">
<init_from>LAKEREM.JPG</init_from>
</image>
<image id="OPVER.JPG" name="OPVER_JPG">
<init_from>OPVER.JPG</init_from>

Remove the ./ it really shouldn't matter but never the less its how I
do it, once you have done that make sure you have "copied" the images
into the same location as the dae model and are you sure your images
are saved as .JPG not .JPEG or .jpeg or .jpg. Case sensativey does
count!!!

M. van Sighem

unread,
Dec 8, 2009, 7:42:14 AM12/8/09
to flartool...@googlegroups.com
this aint the problem,

these files do load actually... its the other materials which dont load !

craig

unread,
Dec 8, 2009, 8:55:17 AM12/8/09
to FLARToolKit userz
As @jbyrne2007 mentioned, from your DAE snippet it looks as though
your materials are linked as being in the same file as your DAE file,
so first, make sure they are in that same folder.

Another option that should work is to load your materials in in your
AS file and pass them on to your model.

Something along the lines of:

var materialList = new MaterialsList ();
bitmapFileMaterial = new BitmapFileMaterial ('path to your texture');
materialList.addMaterial(bitmapFileMaterial, "all");


Then pass this material onto your collada model when you load it in,
all should work fine:

var collada = new DAE();
this.collada.load('path to your model', materialList);
this.collada.scale = 150;


This will override any materials that you have exported with your
model, and has the added bonus of if you want to change the material
on your model, you can do so by changing the path to your material
without having touch your DAE file.

On Dec 6, 4:42 pm, Benson Tan <bensontan.1...@gmail.com> wrote:
> Me too.
>
> I am facing the same problem. When I open thedaefiles, I was able to
> see the model, animation and the textures on it. However, when I run
> Flarmanager with it. I was unable.
>
>  <library_images>
>     <image id="file3-image" name="file3">
>       <init_from>CubeHuman1.jpg</init_from>
>     </image>
>   </library_images>
>
> --------------------------------------------------------------------------
>
>                         var model:DAE= newDAE(true, "model", true);

jbyrne2007

unread,
Dec 8, 2009, 9:19:03 AM12/8/09
to FLARToolKit userz
What on earth do you mean "this aint the problem" your orignal
question was

"
Hi,

I'm working with papervision and flartoolkit to create an augmented
reality application.

My 3d design in 3dsmax needs to be exported as DAE. Herefor I
installed Collada exporter. But when its running in flash it doest
show my materials, only colours. Where can I find the materials after
export?

"

If you mean the material EFFECTS from 3DS Max these wont load/work
with papervision as far as im aware.
A material is just something that sticks over the model like wallpaper
to a wall what ever effects you have done and adjusted to the
materials in 3ds max will not be exported. DAE's are practiclty a low
res xml model nothing fancy. You might want to look at .obj
Reply all
Reply to author
Forward
0 new messages