We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Drag UV texture

Home Forums Puzzles Drag UV texture

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #52302
    NaxosCG
    Customer

    Hi guys !
    I’d like to let the end user to be able to place the texture on some object.
    Now i can do that using arrowKeys, but it would be soooo better to be able to do that with a mouse drage on the object.

    Any help would be really apreciated.
    If possible, in puzzles, as i’m far from coding a guy.

    Attachments:
    You must be logged in to view attached files.

    "1+1=3... for large values of 1"

    #52304
    xeon
    Customer

    May want to try using the “Get Camera Direction from mouse/touch”.
    It will create an array of x,y,z of where the mouse is. You could then use it with a frame or time increment to detect where the mouse is and use the array to adjust the UV position.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #52338
    NaxosCG
    Customer

    Hello,
    Thank you for this idea.
    I could not make it work, but it gave me some other ideas, and i’m close to get something working.

    Attachments:
    You must be logged in to view attached files.

    "1+1=3... for large values of 1"

    #52340
    NaxosCG
    Customer

    So it’s kinda working : the texture is moving, but in absolute mode, i can’t slide texture, up the mouse buton, then continue moving : it restarts from begenning.
    That is understandable as it gets XYZ position of the mouse to move the textures UVs.

    Any idea ?

    "1+1=3... for large values of 1"

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.