Yet Another Blender Egg Exporter (YABEE)

[quote=“Shaba1”]

[quote=…
I could get the blend file but could not download the textures for some strange reason[/quote]

ninth, could you download the textures from my Google link?
Brian

Hi ninth
I’ve uploaded a different .blend file here:
docs.google.com/open?id=0BwUZfR … NiY2M2NDM3
Are you able to download and open in Blender 2.60a then export it to a .egg with YABEE? I can’t get it to produce files I can display.
Brian

Yes, i could downloaded the previous model from google - i downloaded whole a mesh and textures in the .zip file with the button in the right top corner.

In the last model i can’t find the textures.

[/quote]

Sorry ninth, here are the textures:
docs.google.com/viewer?a=v&pid= … y&hl=en_US
Brian

Seems that the script is crushed when exported an empty texture image. I’ll check it.

Buddies

I have some problems with animations (Blender 2.6a). I have a rotate cube. I export it, i set the animation begin and end, the animation name and whem export i´ve no animation file.

The cube is exported without problems, but miss animation file :frowning:

thanx

i would bet that animations still need to be done via armatures. did you use armatures/bones or did you rotate by actualy rotating the cube-model in blender?

Yes, yes … everything it´s all right now … thanks Thomas.
And thanks to developers by the beaty work with this exporter :smiley:

News: Blender 2.61 has been released. ninth, you should probably switch to it and continue the development on it.

Hi, I think I found a bug when exporting custom properties as panda3d tags.
I’m using Blender 2.61 and Yabee 11. When I set a custom property for the default cube (or any other model), it doesn’t get exported at all. There aren’t any errors or warnings, the custom properties are simply ignored. I hope you can fix this sometimes. Thanks!

Edit:
I tracked this bug down and fixed it. Apparently the Blender API for accessing custom properties was changed in 2.61. Here is the fix I came up with:

In yabee_libs/egg_writer.py replace the method Group#get_tags_egg_str (should be at line 64) with the following:

def get_tags_egg_str(self, level = 0):
    """ Create and return <Tag> string from Blender's object 
    Game logic properties. Special property "_RNA_UI" is ommited.
    
    @param level: indent level.
        
    @return: the EGG tags string.
    """
    egg_str = ''        
    if self.object:        
        for prop in self.object.items():
            if prop[0] == "_RNA_UI":
                continue
            
            egg_str += '%s<Tag> %s { %s }\n' % ('  ' * level, 
                                                eggSafeName(prop[0]),
                                                eggSafeName(prop[1]))
                                                
    return egg_str

I hope this helped somebody…

Bug: Crashes if there is no material
Blender 2.61 and Yabee 11
To reproduce: unlink the material on default cube, then export it.

Potential bug: duplicates all vertexes for each face
Blender 2.61 and Yabee 11
To reproduce: quads to tris, smooth shader and remove duplicate vertexes on the default cube. Export to egg.

Blender reports 8 vertexes, an obj export produces 8 vertexes, the egg gets 35. The face count looks fine, just every vertex is duplicated by the number of faces that use it. The vertexes are identical in the egg file (same locations and normals, with no other properties).

I’m not a real blender user, so this may be my mistake on the blender end, but it looks wrong to me.

Hey dudes

My gloss maps are useless. I´m on blender 2.61 and the last Yabee … when i export my gloss map it´s baked like a white texture. Some ideas?

Thanx

Hmmm for me , when I do >File>Export the .egg line dosen’t appear.
Strange , because I think the folder is putted correctly.

Styla

Do you enable yabee in user preferences>addons?

Woa , very quick answer thanks :smiley:

That’s the problem , I don’t found any .egg or any Yabee in the addons but I’m sure the folder is in the right place.

In what folder yabee is?
Did you have more than one blender installed in your machine?

I’m using Blender 2.61.0 and this is how I installed it:

  1. Download the latest Yabee for your Blender version, save it, and remember where you put it. You don’t have to unzip the file because Blender can open the archive for you.
  2. Open Blender, left click on File -> User Preferences -> Addons.
  3. At the bottom of the panel, left click on the “Install Addon” button.
  4. Navigate to where you put the Yabee file you downloaded.
  5. Left click on the .zip file to highlight it.
  6. Now left click on the “Install Addon…” button in the upper right hand side of the panel.
  7. The file should load and you’ll be taken back to the previous Addons panel.
  8. Look down the list on the right hand side for Import-Export: Panda3D EGG format.
  9. Left click the little check box on the right hand side so it has a check mark in it.
  10. Left click on the “Save As Default” button on the lower left hand corner.

That should do it. Now, when you want to export your file, left click on File, mouse over Export and you should see Panda3D (.egg) in the drop down list.

Cheers.

Wonderful , thanks you two for your help.
The problems was that the file that I put was the folder “unarchived”. :unamused:

And about the gloss map baked as white texture? Someone had this problem?

I am here again )
Thanks to all for the testing.
The last two weeks there was no time to work on the script. I’ll try to make fixes in the near future.

As for the baked gloss/glow - i can’t find the way to make transparency background in the baked textures, so i used small hack - i took the same texture and used it as the alpha-file. Try to update the script from the repository.