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?
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.
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?
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.
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
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.
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
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