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.

Restrict areas where an object could be moved

Home Forums Puzzles Restrict areas where an object could be moved

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #31278
    Avatarmkdub
    Newbie

    Hello dear Verge3D developers,

    Please advice. I need to find a way to restrict fields where the custom uploaded image could be moved, something like
    d
    Any thoughts, please

    #31287
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    you might try using a dedicated material for the jacket part only, so that the image is limited by its UV coordinates.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #31293
    Avatarmkdub
    Newbie

    Thanks for the quick response Yuri,

    But could you please clarify a bit more details about that “dedicated material”?
    Where can I find it or some more documentation information about it? I already got pic moving around by mouse drag but I can’t restrict areas where it could be moved. Also, when users drags, I want pic to be deformed along with the curve formes of the jacket body.

    #31297
    vmtsvmts
    Licensee

    Hi,
    We are also developing an application similar to yours that can customize the position of image texture on the object. With my approach, the image texture will be moved by moving an empty object that was assigned to texture coordinate node. This is our demo Demo

    However, it still had a problem that the image will be duplicated on the opposite side because it passes through to T-shirt. Unexpected Result
    I have not found any solution for this issue. Does anybody have an idea to solve it?

    Take a look at our website
    One stop services Verge3D: 3D Modelling + Coding
    Our sample ECO2 Sales Tools

    #31298
    Yuri KovelenovYuri Kovelenov
    Developer

    hi guys,

    can you elaborate a bit what methods are you using for moving the image on a model?

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #31299
    vmtsvmts
    Licensee

    Hi Yuri,
    I use object mapping to move the image texture. The below picture shows a part of the nodes that were used in material of the object. nodes
    The image “1.png” was mapped to the empty object “controller.001”. When we move the empty object, the image moves too.

    To prevent image from being distorted when moving, we need to snap the empty object to a point that is achieved by raycasting from mouse position to T-shirt (By this way, the normal vector of this point is used for the direction of the empty object). It was this step that caused the problem I mentioned above.

    Is there any way that the image can only be attached to the model once?

    Take a look at our website
    One stop services Verge3D: 3D Modelling + Coding
    Our sample ECO2 Sales Tools

    #31390
    Yuri KovelenovYuri Kovelenov
    Developer

    @vmts
    Can you isolate this issue in a smaller project that you attach here? We’d take a look.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #31407
    vmtsvmts
    Licensee

    Hi Yuri,

    Thanks for your respond, this is my app link: T-Shirt Demo

    You need to click on image to active edit mode after that drag and drop it to other position. Because I separated the T-Shirt into two part: Front and Back, the image can only be modified on the front part.

    Take a look at our website
    One stop services Verge3D: 3D Modelling + Coding
    Our sample ECO2 Sales Tools

    #31412
    abinabin
    Licensee

    Maybe unwrap the other side of the tshirt to one single point and put it to the corner or outside the picture? Not sure, but it look like you unwrap your mesh symmetrical, is it so?

    #31428
    Yuri KovelenovYuri Kovelenov
    Developer

    Because I separated the T-Shirt into two part: Front and Back, the image can only be modified on the front part.

    so this can be a workaround?

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

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