Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Parent an Object to Vertex ID displaced by shader

Discussion in 'Shaders' started by Postjudice, Oct 28, 2014.

  1. Postjudice

    Postjudice

    Joined:
    Jan 24, 2013
    Posts:
    7
    I'm trying to parent a game object to the vertex of a mesh being displaced by a procedural texture (like a boat on the ocean). I used a playmaker state machine to get vertex position and assign an object to the ID, but it doesn't follow the mesh displacement. I'm planning doing this across several subdivided planes each with their own "floating" game object.

    Apparently I need to duplicate the calculation and apply it to the mesh before sending to GPU. Any ideas?

    Kind Regards
     
  2. Postjudice

    Postjudice

    Joined:
    Jan 24, 2013
    Posts:
    7
    Just checking in, this problem is still happening to me. It's the last hurdle for having a truly procedural effect.