Results 1 to 2 of 2

Thread: Too many values for arg "Cs"

  1. #1
    Join Date
    Jul 2012
    Location
    St. Thomas, Ontario
    Posts
    22

    Default Too many values for arg "Cs"

    I am running this MetaSL code but get this error message:

    too many values for arg "Cs" (more than 3)

    If I change the type Color3 to float3, the error goes away but the interface no longer show color inputs.

    Some hints on how to solve this is appreciated.

    Thanks.

    Code:
    shader DB_Constant_color2 {
    	input:
    		Color3 Cs(1.0,1.0,1.0)
    		{
    			display_name("Surface Color");
    			description("The Color of the Surface");
    			soft_range(Color3(0.0,0.0,0.0),Color3(1.0,1.0,1.0));
    		};
    		float Os(1.0)
    		{
    			display_name("Surface Opacity");
    			description("The Opacity of the Surface");
    			soft_range(0.0,1.0);
    		};
    	output:
    		Color result;
    	member:
    		void main()
    		{
    			result.rgb = Cs;
    			result.a = Os;
    		}
    };

  2. #2
    Join Date
    Jul 2012
    Location
    St. Thomas, Ontario
    Posts
    22

    Default

    OK, I thing I have a possible answer for this although I will need confirmation. I am using Specification 1.2.2 to code the MetaSL but I think the interpreter is build around the old Specification 1.1.6 (I am coding the MetaSL shader in Mental Mill 1.2 which is fine at that end but the error is generated by Softimage 2013 interpreter)

    Color3 type did not exist in the old specification. What I failed to comprehend is why the Softimage interpreter does not generate an error on the Color3 type declaration. Some help or advise is appreciated.

    Edit:

    Confirmed, my version of Softimage interpreter is on specification 1.1.6. Too bad. I am missing functions like transform_from_local as well.
    Last edited by Daniel Brassard; March 26th, 2013 at 19:55.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •