Page 1 of 1

how to extract vertex position value?

PostPosted: Sat Nov 11, 2017 1:12 pm
by Eugene Afanasiev
Code: Select all
{
   Tools = ordered() {
      FastNoise1 = FastNoise {
         Inputs = {
            Width = Input { Value = 1000, },
            Height = Input { Value = 1000, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            Detail = Input { Value = 7.09, },
            Contrast = Input { Value = 0.838, },
            XScale = Input { Value = 5.64, },
            SeetheRate = Input { Value = 0.026, },
            Color1Red = Input { Value = 1, },
            Color1Blue = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 181.5 } },
      },
      Displace3D1 = Displace3D {
         CtrlWZoom = false,
         Inputs = {
            SceneInput = Input {
               SourceOp = "Ribbon3D1",
               Source = "Output",
            },
            Channel = Input { Value = 6, },
            Scale = Input { Value = 1, },
            Input = Input {
               SourceOp = "FastNoise1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1155, 412.5 } },
      },
      Ribbon3D1 = Ribbon3D {
         Inputs = {
            NumberOfLines = Input { Value = 1, },
            SubdivisionLevel = Input { Value = 59, },
            ["ObjectID.ObjectID"] = Input { Value = 1, },
            ["MtlStdInputs.Diffuse.Color.Red"] = Input { Value = 0.46, },
            ["MtlStdInputs.Diffuse.Color.Green"] = Input { Value = 0.789533010485076, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 412.5 } },
      }
   }
}

Re: how to extract vertex position value?

PostPosted: Sat Nov 11, 2017 4:02 pm
by michael vorberg
what you want to do with it? where do you need the vertex position?

you could render a WorldCoordinaten pass at the end or you can do something with the vertex position in a CustomVertex3D node

Re: how to extract vertex position value?

PostPosted: Mon Nov 13, 2017 2:07 am
by Bryan Ray
My favorite technique to get access to that kind of data is to use CustomVertex to copy it to the vertex colors. You just have to remember to set them back to white before the Renderer.