Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
  RSS 2.0 ATOM  

cgFX Shader
Rate this thread
 
32342
 
Permlink of this thread  
avatar
  • Kheng
  • Posted: 22 July 2009 05:13 AM
  • Total Posts: 21
  • Joined: 22 August 2006 10:59 AM

Hi,

Has anyone used a cgFX shader inside of Mobu? I have this simple shader that has diffuse, normal, spec but when I turn on textures + shaders the mesh is black. This shader works great in Maya. I also try adding the Dynamic Lighting shader to the mesh but that didn’t do anything.

Can any one help?

Here’s a video.



Attachment Attachment
Replies: 0
avatar
  • Kheng
  • Posted: 27 July 2009 04:08 PM

I see no one can help, Does anyone at autodesk have an example of a cgFX shader I can look at that has a normal and spec map in it?

Thanks,

Keo



Replies: 0
avatar
  • qhliao
  • Posted: 29 July 2009 09:54 AM

Kheng 22 July 2009 12:13 PM

Hi,
I also try adding the Dynamic Lighting shader to the mesh but that didn’t do anything.

If you can’t get Mb’s built-in Dynamical Lighting Shader work in your computer, maybe you want to verify your Video Card’s capability. Could you tell which card you are using?




Replies: 1
/img/forum/dark/default_avatar.png

I can get the Dynamical Lighting Shader to work, it’s getting a cgFX shader to work is the problem.

Author: Kheng

Replied: 29 July 2009 01:19 PM  
avatar

Hi Kheng,

Not all shader examples will work- it is dependant on the shader version you are using. Check the documentation for the release of MotionBuilder you are using to see which version of CgFX shaders are supported.

Also, as MotionBuilder is an OpenGl application, DirectX shaders are not supported.
The support is also dependant on the card you are using, so if you are using CgFX shaders that are coded specifically to implement features in Nvidia hardware they will not work correctly on other hardware.

There is also some feedback below that I received a while ago on the specific CgFX shader profiles that are supported in MotionBuilder-

vp20, vp30, vp40: OpenGL NV_vertex_program
fp30, fp40: OpenGL NV_fragment_program
arbvp1: OpenGL ARB_vertex_program
fp20: NV_register_combiners and NV_texture_shader

if you need further support with coding the shaders you should probably contact Nvidia support directly at:-

Nvidia Support-
http://www.nvidia.com/page/support.html

The Nvidia developer Forums may also be worth checking to see if there are others discussing CgFX and MotionBuilder.

Nvidia Developer Forums-
http://developer.nvidia.com/forums/index.php

Regards,

Lee



Replies: 0