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
    mkdub
    Participant

    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

    Hi,

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

    Chief 3D Verger | LinkedIn | Twitter

    #31293
    mkdub
    Participant

    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
    vmts
    Customer

    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
    Audi

    #31298

    hi guys,

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

    Chief 3D Verger | LinkedIn | Twitter

    #31299
    vmts
    Customer

    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
    Audi

    #31390

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

    Chief 3D Verger | LinkedIn | Twitter

    #31407
    vmts
    Customer

    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
    Audi

    #31412
    abin
    Customer

    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

    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?

    Chief 3D Verger | LinkedIn | Twitter

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