Announcement

Collapse
No announcement yet.

worldpositionoffest rotation

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

    worldpositionoffest rotation

    So Im trying to make a material that I can apply to a basic card mesh that will make the mesh rotate around always facing the camera. The card has a small plant texture that Im using as part of my foliage so it basically just needs to always face the player camera.

    I think this is done using worldpositionoffset and Ive found the rotateaboutaxis instruction. Is there a tutorial on this or has anyone tried to do it? If there is a better way to accomplish the desired effect like in the mesh somewhere that will work too.

    #2
    so no thoughts on this?

    Comment


      #3
      Why not just use particle sprites? you could create a clump of them even and use a UV offset to show different plants/foliage.

      Comment


        #4
        ...or lens flare

        Comment


          #5
          all of those suggestions would work but then I wouldnt be able to use them with a foliage system. Is there anywhere (possibly another forum) that might be better explain the worldpositionoffset and the rotateaboutaxis instruction in greater detail? The UDN didnt really help very much

          Comment


            #6
            I toyed with this idea for a while, i think it may be possible. At least I got the foliage to rotate when the player rotated just never got it to sync properly.

            I used unreal script to change the foliages materials variables, try looking at my vertex shader to get a better idea how to modify the variables.
            http://forums.epicgames.com/showthread.php?t=718347

            Comment

            Working...
            X