dlanier
November 7th, 2005, 21:22
Hi,
In a custom Mental Ray shader, I'd like to know if someone has succeeded in knowing which lights are excluded when we sample the lights for a given object ?
There seems to have a specific custom data (seen when exporting the scene in .mi format)
declare data
"max_NodeData" (
color "WireColor",
integer "NodeID",
integer "NodeRenderID",
array light "illuminators",
array light "shadowmakers",
boolean "useGlobalLights",
array integer "materialRequirements"
)
version 2
end declare
So I have parsed the string found in the user data usin g:
miQuery(miQ_DATA_DECL,...
miQuery(miQ_DECL_PARAM,...
Then I am able to retrieve the values but how can I get the content of the Array as the interesting parameter is a Light Array. How is it coded inits binary format ? A length followed by the miTags of the lights ?
Well, any hint on this would be welcome :)
Thank you.
Regards,
In a custom Mental Ray shader, I'd like to know if someone has succeeded in knowing which lights are excluded when we sample the lights for a given object ?
There seems to have a specific custom data (seen when exporting the scene in .mi format)
declare data
"max_NodeData" (
color "WireColor",
integer "NodeID",
integer "NodeRenderID",
array light "illuminators",
array light "shadowmakers",
boolean "useGlobalLights",
array integer "materialRequirements"
)
version 2
end declare
So I have parsed the string found in the user data usin g:
miQuery(miQ_DATA_DECL,...
miQuery(miQ_DECL_PARAM,...
Then I am able to retrieve the values but how can I get the content of the Array as the interesting parameter is a Light Array. How is it coded inits binary format ? A length followed by the miTags of the lights ?
Well, any hint on this would be welcome :)
Thank you.
Regards,