View Full Version : Finding diffuse material in dx9 shader?

11 November 2005, 10:38 AM
is it possible to find the diffuse channel in a dx9 shader.
Also how do i detect/use the 'DirectX_9_Shader' constructor?


11 November 2005, 12:11 PM

Basically im using a rendermap for standard materials, but it doesnt work with dx9 shaders, i need to find a way to access the material so i can create a randermap.


11 November 2005, 03:30 PM
There isn't really a concept of a 'diffuse channel' in shaders. There are what's called texture samplers. An easy way to find bitmaps in a DX9 shader in Max is to do something like this:

mat = $.material

for p in (getPropNames mat.delegate) do (prop = getProperty mat.delegate p
if classof prop == Bitmap do (-- Do something here

11 November 2005, 10:46 PM
ok cool, ill check this out :)

CGTalk Moderation
11 November 2005, 10:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.