Announcement

Collapse
No announcement yet.

Texture moves on moveable object.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Texture moves on moveable object.

    The texture is behaving as if it is locked to world, so it looks like it moves. But is not locked static to the object. How do I fix this?
    Last edited by Basic-AF; 12-06-2018, 11:47 AM.

    #2
    You fix it by not using the World Aligned Texture. It forces the texture to map its coordinates in World Space instead of Local, Object or Tangent. So because it's coordinates are mapped in world space it's not going to move when your object does.

    Comment


      #3
      Yeah, I had a hunch on that, but what should I be using?

      Comment


        #4
        A world aligned texture doesn't use UV coordinates, instead it uses 3-dimensional coordinates. Those default to the world position of the fragment's pixels. You can change the world coordinates to ones in the local frame of the object:
        Attached Files
        Developing realtime biomolecular illustrative simulations in Unreal: Twitter - Youtube - GitHub

        Comment


          #5
          I've figured it out. texture is now locked to the movable object. Now the remaining is scaling object without the texture stretching.
          Attached Files

          Comment

          Working...
          X