well first the map was generated before export, and x is inverted and y is rotated 90 degrees thats why color range is slightly different than in Prefab. This would not affect the way it works at all, but the hightlight would not reflect the position of the light. If all your models would be using similar generator.
so may be its rendering thinking the light is underneath... what if you render the map in Prefab (I could see it works in the app) and try your same code with Prefab's outputs? Are you using the right lights? Fabrice On May 14, 2010, at 4:43 PM, flashangel wrote: > Hi Experts, > > I am experimenting with normal maps regarding on of our > requirements. I have the normal map and have done tests for few other > modes of rendering. I am giving the links below. Everything except the > normal map material is working well. I am giving the links below: > > http://www.dnyandeep.com/demos/3d/away-test/head/WhiteShadingBitmapMaterial.html > http://www.dnyandeep.com/demos/3d/away-test/head/ShadingColorMaterial.html > http://www.dnyandeep.com/demos/3d/away-test/head/Dot3BitmapMaterial.html > http://www.dnyandeep.com/demos/3d/away-test/head/Dot3BitmapMaterialF10.html > > I have set > Dot3BitmapMaterialF10(demoMat).showNormals = true; > for the 4th link just to see that the model is there and faces are > getting rendered. > > I am not sure why the normal map demo is not working. I have used the > bitmap from away3d torso demonstration. The normal map can be seen > at: > http://www.dnyandeep.com/demos/3d/away-test/head/assets/normal-map.jpg > > However the normal map is embedded in the demo swf file. > > The relatively high-poly model used to generate the normal map can be > found in the source given at below specified link. > > I have uploaded the entire source at: > http://www.dnyandeep.com/demos/3d/away-test/head/head-src.zip > > Any thoughts on why this is not working would be highly appreciated. > > > 2) Also, I tried nVidia Melody tool to generate normal map. You can > find the source that it generated 2 files > > lp.OSNM.dds - probably object space normal map > lp.TSNM.dds - probably tangent space normal map > > I guess this from shortform they are using, not sure if it is true. > However, I find pretty strange thing that the maps are having dds > extensions which I do not know what is. Secondly, these formats are > associated on my machine with 3D polygon cruncher. When it opens the > files, it show highly divided strange graphic. Though, The RGB > coloured picture gives an indication of itself being a normal map, it > is very weird and different than the one generated using 3DSMax/ > Prefab. Any pointers on this would be great too! > > Sincerely, > > Sushant
