Results 1 to 3 of 3

Thread: SPDL shader and parameter of type texture

  1. #1
    Join Date
    Sep 2005
    Location
    France
    Posts
    498

    Default SPDL shader and parameter of type texture

    Hi,

    In a shader SPDL file, I set a parameter of type texture like this :

    Code:
    PropertySet "Example_pset"
    {
    Parameter "OcclusionTexture" input
    	{
    		title = "Ambient occlusion";
    		guid = "{91F405C0-213D-4241-AB75-8ACE3A4668CD}";
    		type = texture;
    		flags = 0;
    		texturable = on;
    		writable = on;
    		animatable = on;
    		persistable = on;
    		readable = on;
    		inspectable = on;
    	}
    ...
    }
    BEGIN "{24810490-56FF-11d2-BF23-00A0C982CE5D}"
    Defaults
    {
    
           OcclusionTexture
    	{
    		Description = "Ambient occlusion";
    		Commands = "{F5C75F11-2F05-11d3-AA95-00AA0068D2C0}";
    		UIType = "ImageBrowserItem.ImageBrowserItem.1";
    		Items
    		{
    		}
    	}
    ...
    }
    And when creating the shader, I get the "NoIcon_Pic" but it is considered and used as a texture by my shader. I would like to have nothing set in the texture parameter as default and not a bitmap which represent a no icon.
    Is that possible ?
    Thank you.
    Regards,
    David Lanier
    R&D, plugins & shaders development company
    http://www.dl3d.com

  2. #2
    Join Date
    Oct 2006
    Posts
    26

    Default Re: SPDL shader and parameter of type texture

    Quote Originally Posted by dlanier
    Hi,
    I would like to have nothing set in the texture parameter as default and not a bitmap which represent a no icon.
    Is that possible ?
    Thank you.
    Regards,
    I'm pretty sure XSI won't allow dangling texture connections --- you'll always get the NOICON unless you attach something else in the render tree.

    j

  3. #3
    Join Date
    Sep 2005
    Location
    France
    Posts
    498

    Default

    Thanks, that is what I was told...
    That's too bad as my shader recognizes this no_icon texture as a real texture and uses it...

    Regards,
    David Lanier
    R&D, plugins & shaders development company
    http://www.dl3d.com

Posting Permissions

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