  | | | Quick question on GUIDs | Quick question on GUIDs 2004-12-22 - By Daniel Rind
Back Keep the guid of the output parameter. There are several predefined guids for that, depending on the type of parameter you are returning (color, scalar, vector, etc...).
You input parameters will all need unique guid's (and it seems they all have unique guids already). The "BEGIN ..." is also a fixed GUID. With the "commands" statement you specify the small button to the right of the parameter, the guid that is in your SPDL will display the small plug image where you can directly link to other shaders. (Haven't really seen anything different in that place so far).
Basically, I'd say that at least the GUID part of that shader spdl should work.
I think the SPDL documentation in the docs is pretty good, btw.
Ciao, Daniel!
-- -- Original Message -- -- From: "lpiasecki76" <lpiasecki76@(protected)> To: <XSI@(protected)> Sent: Thursday, December 23, 2004 3:52 AM Subject: Quick question on GUIDs
> Below is the file generated by shader wizard. Please not that GUIDs in the > same blocks such as Defaults or input parameters are the same. Should I > make > EACH one of them different (even though the wizard makes some of them the > same) ? > > BTW, that shader wizard is a piece of crap, sorry :-). I wonder if it was > ever tested before it was released, hehee. > > The question is should I have 9 different GUIDs when I fix this spdl or > should I keep the ones that were the same - the same ? > > > > Thank you. > > > > The generated SPDL is: > > > > > > > > SPDL > > Version = "2.0.0.0"; > > Reference = "{D9F46D74-548C-11D9-A000-2:00FDD17880}"; > > PropertySet "wireframeShader_params" > > { > > Parameter "out" output > > { > > title = "wireframeShader output parameter"; > > guid = "{4C6879FF-7EC8-11D0-8E3B-00A0C90640EC}"; > > type = color; > > flags = 0; > > } > > Parameter "wire_colour" input > > { > > title = "The colour of wireframe"; > > guid = "{D9F46D74-548C-11D9-A001-2:00FDD17880}"; > > type = color; > > flags = 0; > > texturable = on; > > value = 1.0 1.0 1.0 1.0; > > writable = on; > > animatable = on; > > persistable = on; > > readable = on; > > inspectable = on; > > } > > Parameter "object_color" input > > { > > title = "Color of the object"; > > guid = "{D9F46D74-548C-11D9-A002-2:00FDD17880}"; > > type = color; > > flags = 0; > > texturable = on; > > value = 0.0 0.0 0.0 1.0; > > writable = on; > > animatable = on; > > persistable = on; > > readable = on; > > inspectable = on; > > } > > Parameter "wire_width" input > > { > > title = "Width of the wire on the wireframe"; > > guid = "{D9F46D74-548C-11D9-A003-2:00FDD17880}"; > > type = scalar; > > flags = 0; > > texturable = on; > > value = 0.1; > > value minimum = 0.0; > > value maximum = 1.0; > > writable = on; > > animatable = on; > > persistable = on; > > readable = on; > > inspectable = on; > > } > > } > > phenomenon "wireframeShader_declare" > > { > > Name = "wireframeShader"; > > Version = 1; > > Use = material; > > } > > BEGIN "{24810490-56FF-11d2-BF23-00A0C982CE5D}" > > Defaults > > { > > wire_colour > > { > > Name = "wire_colour"; > > Description = "The colour of wireframe"; > > Commands = > "{F5C75F11-2F05-11d3-AA95-00AA0068D2C0}"; > > UIType = "rgba",4; > > } > > object_color > > { > > Name = "object_color"; > > Description = "Color of the object"; > > Commands = > "{F5C75F11-2F05-11d3-AA95-00AA0068D2C0}"; > > UIType = "rgba",4; > > } > > wire_width > > { > > Name = "wire_width"; > > Description = "Width of the wire on the wireframe"; > > Commands = > "{F5C75F11-2F05-11d3-AA95-00AA0068D2C0}"; > > } > > } > > Layout "Default" > > { > > wire_colour; > > object_color; > > wire_width; > > } > > Logic > > { > > } > > END > >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |