Hi Fabrice,
I have found that it was change of coordinate system that was
causing issues with normal maps. I have managed to generate normal
maps from Prefab now. With DiffusePBMaterial it works correctly. I
have got few issues to ask here though.
You can have a look at demo:
http://www.dnyandeep.com/demos/3d/away-test/complete-clothes-model1/Model.html
1. There are seams visible near neck section of the female model I do
not understand what could be the problem. I had played with your trick
of increasing the texture by 1 pixel in width/height. It does not
work :(.
2. This same model does not render lights correctly when I use
PhongPBMaterial, PhongMultiPassMaterial, DiffuseMultiPassMaterial or
Dot3BitmapMaterialF10. Cold you advise why?
3. This demo loads properly on Core2 Duo/Quad. I tried to load this
demo on my low end machine having Intel 2.8 GHz HT + 1 GB RAM. It is
not able to even start rendering. The browser kind of hangs. I think
something is going mad here, what could I be doing wrong? Is it to do
with textures? I am using different textures for different sections of
clothing. Currently 10 different textures of size 512 X 512 are being
used for rendering different parts of the model. Could this be the
cause that it is not doing correctly? I had tried with textures of
256X256 but it does not look good with that texture size.
4. I need to obtain performance. I saw a feature of BSP in Prefab. Do
you think I need to study what BSP is and apply it here? In first
place, is BSP thing relevant for this case of project? I have read
little bit about BSP and got to know that it is generally used in
games with large scenes. Don't understand beyond this.
Current model has 6061 vertices, 8158 faces. I believe this should run
better than I am observing and should also run on low end machines. I
must be doing something silly, please advise.
Looking forward,
--
Sushant