Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
shader array parameters - spdl example

shader array parameters - spdl example

2004-12-17       - By Haarm-Pieter Duiker

 Back
Reply:     1     2     3     4  

Hello,

I'm trying to put together an spdl file for an shader that has two array
parameters, one string and the other color array. The Defaults section of the
declaration seems to override the fact that the parameters are arrays but it's
not clear to me how this case is supposed to be handled.

Can anyone point me at an example of an spdl file that defines the interface to
an array parameter that isn't a light list?

Thanks in advance for your help,
Haarm-Pieter Duiker

PS. This is what I have thus far :
#XSI-Wizard
SPDL
Version = "2.0.0.0";
#Reference = "{1AC592BC-DEA4-11d5-92BD-009027219F81}";
Reference = "{faf30d36-5057-11d9-b85e-000c766f0ed7}";
PropertySet "testColor"
{
Parameter "out" output
{
 title = "testColor output parameter";
 guid = "{4C6879FF-7EC8-11D0-8E3B-00A0C90640EC}";
 type = color;
 flags = 0;
 texturable = off;
}
Parameter "nameList" input
{
 title = "";
 guid = "{b5b6c25f-5063-11d9-b85f-000c766f0ed7}";
 type = array
 {
  Parameter "name1" input
  {
   title = "Name1";
   guid = "{b5b6c260-5063-11d9-b85f-000c766f0ed7}";
   type = string;
   flags = 0;
   texturable = off;
   value = "";
  }
 };
}
Parameter "valueList" input
{
 title = "";
 guid = "{b5b6c261-5063-11d9-b85f-000c766f0ed7}";
 type = array
 {
  Parameter "value1" input
  {
   title = "Value1";
   guid = "{b5b6c262-5063-11d9-b85f-000c766f0ed7}";
   type = color;
   flags = 0;
   texturable = on;
   value = 0.0 0.0 0.0 0.0;
  }
 };
}
}

MetaShader "testColor_declare"
{
Name = "testColor";
Type = material, texture;
Renderer "mental ray"
{
 Name = "testColor";
 Options
 {
  "version" = 1;
 }
}
}

# NOTE: You must use this same GUID when you make your own shader spdls.
BEGIN "{24810490-56FF-11d2-BF23-00A0C982CE5D}"
Defaults
{
nameList
{
 Name = "nameList";
 Description = "";
 UIType = "String";
}
valueList
{
 Name = "valueList";
 Description = "";
 UIType = "rgba",4;
}
}
Layout "Default"
{
nameList;
valueList;
}

# This optional section allows you to use a different DLL
# name than the name of the spdl file.
Plugin = Shader
{
Filename = "testShaders1.0.dll";
}
END


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">


<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New"
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New"
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New" size=2>I'm trying
to put together an spdl file for an shader that has two array parameters, one
string and the other color array. The Defaults section of the declaration seems
to override the fact that the parameters are arrays but it's not clear to me
how
this case is supposed to be handled.</FONT></SPAN></DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New"
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New" size=2>Can anyone
point me at an example of an spdl file that defines the interface to an array
parameter that isn't a light list?</FONT></SPAN></DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New"
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New" size=2>Thanks in
advance for your help,</FONT></SPAN></DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New" size=2>Haarm
-Pieter
Duiker</FONT></SPAN></DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New"
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New" size=2>PS. This is
what I have thus far :</FONT></SPAN></DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New"
size=2>#XSI-Wizard<BR>SPDL<BR>Version = "2.0.0.0";<BR>#Reference =
"{1AC592BC-DEA4-11d5-92BD-009027219F81}";<BR>Reference =
"{faf30d36-5057-11d9-b85e-000c766f0ed7}";<BR>PropertySet
"testColor"<BR>{<BR>&nbsp;Parameter "out" output<BR>&nbsp;{<BR>&nbsp;&nbsp
;title
= "testColor output parameter";<BR>&nbsp;&nbsp;guid =
"{4C6879FF-7EC8-11D0-8E3B-00A0C90640EC}";<BR>&nbsp;&nbsp;type =
color;<BR>&nbsp;&nbsp;flags = 0;<BR>&nbsp;&nbsp;texturable =
off;<BR>&nbsp;}<BR>&nbsp;Parameter "nameList"
input<BR>&nbsp;{<BR>&nbsp;&nbsp;title = "";<BR>&nbsp;&nbsp;guid =
"{b5b6c25f-5063-11d9-b85f-000c766f0ed7}";<BR>&nbsp;&nbsp;type =
array<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;Parameter "name1"
input<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;title =
"Name1";<BR>&nbsp;&nbsp;&nbsp;&nbsp;guid =
"{b5b6c260-5063-11d9-b85f-000c766f0ed7}";<BR>&nbsp;&nbsp;&nbsp;&nbsp;type =
string;<BR>&nbsp;&nbsp;&nbsp;&nbsp;flags =
0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;texturable = off;<BR>&nbsp;&nbsp;&nbsp;&nbsp
;value
= "";<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;};<BR>&nbsp;}<BR>&nbsp;Parameter
"valueList" input<BR>&nbsp;{<BR>&nbsp;&nbsp;title = "";<BR>&nbsp;&nbsp;guid =
"{b5b6c261-5063-11d9-b85f-000c766f0ed7}";<BR>&nbsp;&nbsp;type =
array<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;Parameter "value1"
input<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;title =
"Value1";<BR>&nbsp;&nbsp;&nbsp;&nbsp;guid =
"{b5b6c262-5063-11d9-b85f-000c766f0ed7}";<BR>&nbsp;&nbsp;&nbsp;&nbsp;type =
color;<BR>&nbsp;&nbsp;&nbsp;&nbsp;flags =
0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;texturable = on;<BR>&nbsp;&nbsp;&nbsp;&nbsp;value
= 0.0 0.0 0.0
0.0;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;};<BR>&nbsp;}<BR>}</FONT></SPAN><
/DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New" size=2>MetaShader
"testColor_declare"<BR>{<BR>&nbsp;Name = "testColor";<BR>&nbsp;Type = material,
texture;<BR>&nbsp;Renderer "mental ray"<BR>&nbsp;{<BR>&nbsp;&nbsp;Name =
"testColor";<BR>&nbsp;&nbsp;Options<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;
"version"
= 1;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>}</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New" size=2># NOTE: You
must use this same GUID when you make your own shader spdls.<BR>BEGIN
"{24810490-56FF-11d2-BF23-00A0C982CE5D}"<BR>Defaults<BR>{<BR>&nbsp;nameList<BR>
&nbsp;{<BR>&nbsp;&nbsp;Name
= "nameList";<BR>&nbsp;&nbsp;Description = "";<BR>&nbsp;&nbsp;UIType =
"String";<BR>&nbsp;}<BR>&nbsp;valueList<BR>&nbsp;{<BR>&nbsp;&nbsp;Name =
"valueList";<BR>&nbsp;&nbsp;Description = "";<BR>&nbsp;&nbsp;UIType =
"rgba",4;<BR>&nbsp;}<BR>}<BR>Layout
"Default"<BR>{<BR>&nbsp;nameList;<BR>&nbsp;valueList;<BR>}</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=157372520-17122004><FONT face="Courier New" size=2># This
optional section allows you to use a different DLL <BR># name than the name of
the spdl file.<BR>Plugin = Shader<BR>{<BR>&nbsp;Filename =
"testShaders1.0.dll";<BR>}<BR>END<BR></FONT></SPAN></DIV></BODY></HTML>