Q: SPDL phenomena connections
| Date : Sun, 21 May 2006 23:25:54 +1000 |
| To : XSI(at)Softimage.COM |
| From : "jason bright" <jaybright(at)gmail.com> |
| Subject : Q: SPDL phenomena connections |
A couple of questions for SDK people out there:
1) Is it possible in a phenomenon declaration (SPDL file), to connect two shaders *directly*, not output->input. i.e. i want the tag of the other shader, not it's result.
e.g. (in .mi syntax).
declare shader "MyShader" (
shader "input"
)
shader "phong" "mib_illum_phong" ()
In the export I want:
shader "test" "MyShader" (
"input" "phong"
)
What i *don't* want is:
shader "test" "MyShader" (
"input" = "phong"
)
Using the "Connection" syntax in SPDL i always get the version with the equals in it. I've tried:
Connection "test::input" = "phong" (get the equal version in the .mi export)
Connection "test::input" = value "phong" (get nothing output in the .mi file)
Connection "test::input" "phong" (SPDL syntax error).
Am i missing something in the syntax? I guess i can play dirty and get the miTag of the connected shader through miState->shader->ghost_offs, but thats a last resort.
2) Can you specify an array of values within phenomena in SPDL? You can connect array->array as named parameters. I want to be able to specify an array of values to an array parameter. e.g.
delcare shader "myShader" (
array scalar "scalars"
)
Node "temp" guid = "theguidforMyShader";
Connection "temp::scalars" = value 6.0,4.4 ,1.0,200.0
I think this is no as well, but wanted to double check.
Cheers -- thanks for the help -- j
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: [ANN] Particles Article...
- Next by Date: [ANN] Particles Article...
- Previous by Thread: [ANN] Particles Article...
- Next by Thread: [ANN] Particles Article...
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |