Is it possible to enable lighting and shadows in a scene of objects that don’t use materials but uses bitmap textures?
Thanks
Is it possible to enable lighting and shadows in a scene of objects that don’t use materials but uses bitmap textures?
Thanks
what is the difference between bitmap textures and materials? As I said before, Materials in Xith are something different than materials in 3dsmax.
In Xith you have textures and materials more or less independent of each other.
By materials, I mean the settings of how an object reflect lights (ambient, diffuse, specular, …). By bitmap textures, I mean an image loaded from disk and mapped as a texture on the object.
The model in 3DSMax responds to lights and has shadows because of the materials defined on the different object of the model. It also has textures.
When I load the model from a ASE file, it’s has the textures on but it’s flat because it doesn’t repond to lights. Which is normal because the ASE loader doesn’t import the materials from 3DSMax.
Now my question would be, is there a loader that can load those material (be it from a 3DS file, OBJ file or whatever)?
My other question is, if we don’t put materials on an objet but just a texture, can it still respond to lights and have shadows?
Thanks
I don’t know
Simply create a material in your code. (If you only get a Node, simply iterate through all it’s children and add Materials to all Shape3D’s - It works for me)
Arne