Users shaders and oFusion

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.

Lioric

29-10-2007 16:02:14

I have tested your scene and it is displayed correctly (i have used a different envmap image as it was not provided in your files)

After loading the scene, the spheremap effect is correct

I have tested this with the Pro version


Click for a bigger image



I will test with the CE version later

manowar

29-10-2007 17:58:28

Thanks for the quick reply. We have the pro-version installed on one machine, I will try it when it will be available. I used the latest CE version to do the tests.