Yet Another Blender Egg Exporter (YABEE)

I can’t figure out how to do normal maps. It exports the textures perfectly, but when I followed the Bump Mapping tutorial with my model, the normal map didn’t show up. Do you set it as a texture, or should it be built into the model somehow?

Could someone help me? :frowning:

2 haramanai: yes it’s a bug. Try to download last fix from YABEE Mercurial repository code.google.com/p/yabee/source/checkout

2 bhorton:
Is visible whether this meshes in pview? Is there some modifiers on the original model?
Are you writing an animation in the same file with the model, or it’s a separate file?

2 Bamboo_Pandamonium:
If you use “Simple” mode, then you should set “Normal” checker from Textures -> Influence -> Geometry
In “Bake” case you should set “Normal” checker in the exporter settings.

Thanks.
I tried it out and it works great.

The meshes are visible in pview and I can see their contours if I toggle textures off and lighting on. The model I’m using is “Low Poly Female Model” at:
e2-productions.com/repository/mo … d=1&lid=12
I used a separate animation file and tried several settings for TBS and Tex. proces; it works best with TBS generat: Panda and Tex proces:Simple, but the hair and skirt still don’t render. Something to do with alpha channels maybe?

But do you see the meshes when you disable textures during animation?

base.textureOff()

Again, try

setFinal=True

in the Actor constructor.

Ah, sorry - the same bug with textures exporting as in the post above. Try to use files from repository.
As for an animation - that model split into three parts and they are exporting as three separate actors. You need to join them into one mesh or use something like this:

pico = loader.loadModel('pico')
pico.reparentTo(render)
pico_parts = []
for part in pico.findAllMatches('**/+Character'):
    actor = Actor(part, {'startWalk': 'pico-startWalk', 'walk': 'pico-walk', 'stopWalk': 'pico-stopWalk'})
    actor.reparentTo(render)
    actor.loop('walk')
    pico_parts.append(actor)
    part.removeNode()

I tried Simple mode, and that didn’t work at all. The function get_used_textures() in texture_processor.py is coughing up an error: “‘NoneType’ object has no attribute ‘source.’”

It doesn’t seem to be working. The normal map is still colored in Panda and doesn’t show any bumpiness.

I know I’m doing something wrong. :frowning:

Can you upload a test model?

Sorry I don’t understand; where do you want me to insert the code lines? The figure is fully rendered and animated when viewed in Blender, and after export to a .egg, most of it is textured when viewed in pview while the hair and skirt are visible but not textured. Also pview reports No Animation although YABEE has created a separate animation file.
Brian

Here:
normal_example5.blend

All I did was bake a high-poly plane to a low-poly plane and apply the normal map to the low-poly plane. Only the low-poly plane had a UV map.

Does that sound right?

2 bhorton are you read my previous post? panda3d.org/forums/viewtopic … 9699#79699

2 Bamboo_Pandamonium: you use the single texture as the gloss (specular) and the normal map simultaneously - it’s strange and not used normally. So script do not process this situation and texture exported only as the gloss. You should disable “Specular” checker, also for normal mapping you should enable TBS generation in the export options.
And you did not include “normal_untitled.png” into the .blend file - I can’t see your normal map.

Oh, sorry about the normal map. But I followed your advice and it worked! Thank you so much!

I’ve had a look but can’t see anything that looks like my problem.
Maybe you could try downloading the model I use from here:
docs.google.com/viewer?a=v&pid= … i&hl=en_US
then export it and view it in pview?
Brian

Sorry, I was inattentive. The problem is that this model uses a separate texture for an alpha. I hope to fix it in nearest time.

Thanks, so that’s why the hair and skirt don’t render. How about the animation export file?
Brian

I have not had any problems with the animation export.
I exported the animation with the following parameters:
start frame: 1
end frame: 60
fps: 24

and then play it with pview

pview fleurbh.egg fleurbh-Anim0.egg

Have you problem only in the Panda, or you can’t play animation in the pview too?

You’re quite right, sorry – the animation does work. I hadn’t noticed the end frame defaults to 2 – Doh!!
Thanks for your help and for the useful script.
Brian

Install the whole “io_scene_egg” folder into the addons folder??
or just the files in the “io_scene_egg” folder?

the whole “io_scene_egg” folder

I could get the blend file but could not download the textures for some strange reason