<Dart> { 1 } in .egg files

Return to Pipeline

<Dart> { 1 } in .egg files

Postby Hoffmann » Sat Feb 26, 2011 10:05 am

When I export my models using 3ds max the generated .egg file has a <Dart> tag that screws up the .find() function on panda code.

Example:

Code: Select all
<Group> character {
  <Dart> { 1 }
  <Group> sphere {
    <VertexPool> sphere.verts {
    ...


I have to manually remove the dart tags If I want to access the inner nodes of my models (for example to change a texture of my character shirt only, but not his face).

Code: Select all
        self.sphere = loader.loadModel("sphere")
        self.sphere.reparentTo(render)
        self.sphere.find('**/character/sphere').setTexture(self.sphere_tex,1)

This doesn't work if the <Dart> tag is present on the .egg


So what is that tag for and how do I export without it so I don't have to manually do it every time?
Last edited by Hoffmann on Sat Feb 26, 2011 11:33 am, edited 1 time in total.
Hoffmann
 
Posts: 43
Joined: Thu Feb 24, 2011 12:05 pm

Postby wezu » Sat Feb 26, 2011 10:45 am

The <Dart> tag is for animated models (used with the Actor class). In the export settings in max you can have your model as "model"(or "static"?), "animation" or "both". Set them to "model". You can also tag geometry with egg-optchar, that should work for Dart (but haven't tried it).
I may be totally wrong, cause I'm a dancin' fool.

NameError: global name 'elf' is not defined
User avatar
wezu
 
Posts: 717
Joined: Tue May 19, 2009 1:03 pm


Return to Pipeline

Who is online

Users browsing this forum: No registered users and 0 guests