Hi all I'm trying to make a phenomenon which uses a ramp (struct array) inside it. :
It all loads fine how ever the ramp element doesn't seem to be affecting anything.Code:declare phenomenon "ar_rampShader" ( integer "interpolation", #:enum "0:1:2:3:4" default 1 array struct "colorEntryList" { scalar "position", color "color" }, color "diffuse" default .5 .5 .5, integer "mode", array light "lights" ) shader "diffuse" "ar_diffusePass" ( "diffuse" = interface "diffuse", "opacity" 1. 1. 1. 1., "mode" = interface "mode", "lights" = interface "lights" ) shader "place2dTexture1" "maya_place2dtex" ( "uvCoord" 0. 0. 0., "uvFilterSize" 0. 0. 0., "coverage" 1. 1. 0., "translateFrame" 0. 0. 0., "rotateFrame" 0., "mirrorU" off, "mirrorV" off, "stagger" off, "wrapU" on, "wrapV" on, "repeatUV" 1. 1. 0., "offset" 0. 0. 0., "rotateUV" 0., "noiseUV" 0. 0. 0. ) shader "ramp" "maya_ramp" ( "interpolation" = interface "interpolation", "colorEntryList" = interface "colorEntryList", "uvCoord" = "place2dTexture1.outUV", "uvFilterSize" = "place2dTexture1.outUvFilterSize" ) shader "mix" "mib_color_mix" ( "num" 2, "mode_0" 0, "mode_1" 2, "weight_0" 1., "weight_1" 1., "color_0" = "diffuse", "color_1" = "ramp.outColor", "color_base" 0. 0. 0. 1. ) root= "mix" version 1 apply material #:nodeid 1107711 end declare
Is there anything other connections that need to be made between the interface and the ramp "colorEntryList" attribute, if so what is the syntax for this?
I'm using maya2008 to test the shader out.
Any help much appricated.
-- Ash


Reply With Quote