Hi Leon,
if you model is loaded correctly and displays the maps as you have set
them in your 3d app
You can now declare/change/alter the meshes materials by code as you
wish.
but from your question its not obvious to me where it goes wrong.
I have the strong feeling you do expect that placing a light will do
it...
I do suggest you take a look at these excellent tutorials
http://www.flashmagazine.com/Tutorials/detail/away3d_basics_6_-_materials_and_light_part_1/
http://www.flashmagazine.com/Tutorials/detail/away3d_basics_6_-_bitmap_materials/
Due to legacy, many good reasons and the way the engine and Flash have
evolved: at the moment not all lights
work with every materials. some do not even react to it, or accept
just a certain type of light.
So you need to choose the one that translate the best what you are
trying to achieved
and work from there.
of course if I'm wrong, please, add more details on the way you have
done so far.
Fabrice
On Nov 30, 2009, at 10:11 PM, Leon.nk wrote:
I've got a .obj file made in Maya with a mtl and a jpeg for the
textures. These all import in one go using the obj loader.
However, I cannot work out how to get lighting and shaing on my
textures. I have tried all the light classes and none of them make
any difference. Is lighting supported if importing textures this way?
Or do I need to import them separately from the obj?
Thanks
Leon