manowar
29-10-2007 12:21:17
I wrote a simple shader (spherical reflection map) with a parameter controlling the amount of reflection. When I apply it on an object and look at it outside oFusion (using Lexi) for example, everything is fine.
However in oFusion, the uvs calculated for the reflection are wrong (seem to distort depending of the view angle), and also the lighting is wrong too (large parts of the object are becoming pure white on some angles).
Are they any limitation in using custom shaders ? I do not know much about 3DS max, I am a programmer. I have tried to tweak the shader, change the rendersystem in oFusion viewport (opengl or Directx) but I have exactly the same result.

Max File + shaders + models:
http://eric.boissard.free.fr/Downloads/envmap.zip
If anyone could look at it.
Thanks a lot
PS. The actual shader is not optimised at all, I simply first wanted to see how to get the effect I need.
However in oFusion, the uvs calculated for the reflection are wrong (seem to distort depending of the view angle), and also the lighting is wrong too (large parts of the object are becoming pure white on some angles).
Are they any limitation in using custom shaders ? I do not know much about 3DS max, I am a programmer. I have tried to tweak the shader, change the rendersystem in oFusion viewport (opengl or Directx) but I have exactly the same result.
Max File + shaders + models:
http://eric.boissard.free.fr/Downloads/envmap.zip
If anyone could look at it.
Thanks a lot
PS. The actual shader is not optimised at all, I simply first wanted to see how to get the effect I need.