koyi
July 11th, 2010, 16:41
Hi,
I am trying to use phenomenon created with Mental mill in RealityServer's mi scene.
I did get almost everything to work now by specifying phenomenon's name in shader declaration like this:
shader "shader_name" "phenomenon_name" (
"diffuse_color" 0.312 0.256 0.184 1,
"diffuse_weight" 3,
"glossiness" 0.193878,
"reflectivity" 0.52551,
"ior" 3.16327
)
material "material_name"
= "shader_name"
end material
instance "inst_name" "obj_name"
light "exclusive" []
material ["material_name"]
caustic on
caustic 3
globillum on
globillum 3
end instance
However, I do not know how to get the environment shader specified in the .xmsl file to work. I have tried using environment definition in the camera instance but that did not work.
Is there a way to do that?
Also, if I want to use an instance of the phenomenon class (which is defined as a node in the xmsl file), which already contains the correct settings, what can I do? Currently I am copying over each parameter's value manually, which is quite troublesome.
<node name="phenomenon_name_1" class="phenomenon_name">
Thank you.
I am trying to use phenomenon created with Mental mill in RealityServer's mi scene.
I did get almost everything to work now by specifying phenomenon's name in shader declaration like this:
shader "shader_name" "phenomenon_name" (
"diffuse_color" 0.312 0.256 0.184 1,
"diffuse_weight" 3,
"glossiness" 0.193878,
"reflectivity" 0.52551,
"ior" 3.16327
)
material "material_name"
= "shader_name"
end material
instance "inst_name" "obj_name"
light "exclusive" []
material ["material_name"]
caustic on
caustic 3
globillum on
globillum 3
end instance
However, I do not know how to get the environment shader specified in the .xmsl file to work. I have tried using environment definition in the camera instance but that did not work.
Is there a way to do that?
Also, if I want to use an instance of the phenomenon class (which is defined as a node in the xmsl file), which already contains the correct settings, what can I do? Currently I am copying over each parameter's value manually, which is quite troublesome.
<node name="phenomenon_name_1" class="phenomenon_name">
Thank you.