Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Materials / HLSL shader doesn't refresh lights?
  RSS 2.0 ATOM  

HLSL shader doesn't refresh lights?
Rate this thread
 
54322
 
Permlink of this thread  
avatar
  • sumo-kun
  • Posted: 11 April 2011 02:44 PM
  • Location: Tokyo
  • Total Posts: 1
  • Joined: 11 April 2011 04:48 AM

I have a HLSL shader I wrote with 3 point lights in it and it works fine.

However, sometimes the lighting seems to use incorrect positions or the view direction (camera matrix?) is wrong as the specular highlights will appear from some weird angles.
Once this happens I can’t seem to revert it back to normal however creating a new scene and using the same shader will work again. Its as if the lights become “unsynced”. I have not found a reliable way to make this happen.

A possibly related problem exists where if you connect a light/locator etc to the shader using the attribute editor UI and then disconnect it, the light will stay at the previous position and not update as the object/camera moves. I would have expected the light to disappear. Reconnecting it will make it update again as usual.

Does anyone know if these are known issues with the maya hlsl support or if I forgot to set something somewhere?

Thanks!



Replies: 0