Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to place non-repeating image on 3d model

Discussion in 'Editor & General Support' started by sina22, Mar 7, 2015.

  1. sina22

    sina22

    Joined:
    Mar 7, 2015
    Posts:
    3
    Hi,

    I have a model of a cup. On it I have to place an image and have controls to resize the image and move it on the cup but I'm stuck on the first step.
    Importing the model is no problem but I can't get the image on it propertly.
    What I did:
    - created material and applied it to cup model
    - set image wrap mode to clamp and applied it to the material
    - fiddled with tiling numbers

    What is the right way to do this?

    Thank you.

     
  2. DarrikM7

    DarrikM7

    Joined:
    Mar 6, 2015
    Posts:
    10
    With 3D modeling, you can unwrap models for textures like this so they appear as you want. I wonder if the unwrap for this has overlapping sections. I think that if you used a standard color material that you wouldn't notice anything, but with an image, the unrwrap (which looks like was never created) is going to look messy and you will get issues like this. Here is a link that might help:

    http://en.wikipedia.org/wiki/UV_mapping

    So if you made that cup in a 3D modeling software, try unwrapping the model, then apply your texture as needed and see what it looks like. Here is an example of an unwrap:



    This is what it will look like if you do not unwapr (very messy):

     
  3. sina22

    sina22

    Joined:
    Mar 7, 2015
    Posts:
    3
    I didn't make the model, just downloaded it for testing purposes.
    Unfortunately I don't really know how to model 3d object or have software for that purpose.
    But if that's the only problem and my process of applying the image to the model is correct I'll find out how to unwrap the model.

    Is there any other way to put image on the model?

    Thank you very much for your help.
     
  4. DarrikM7

    DarrikM7

    Joined:
    Mar 6, 2015
    Posts:
    10
    On a model such as this I dont think it is going to be possible (unless you get really luck and it positions well with the offset. A primitive shape (like a plane of box) may work with this method, but I do not think it will work with a cup like this (again unless you get lucky). Learning to unwrap is actually a pretty good skill to have and for this object would not be too difficult so you may want to try it just for the experience alone.
     
  5. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,033
    A custom shader or substance could do this. I made a substance in Substance Designer for my own particular purposes (team colours), with a decal that could be moved about. It just used existing shaders and input, with the addition of an image to show on top of the other textures.
     
  6. sina22

    sina22

    Joined:
    Mar 7, 2015
    Posts:
    3
    Thanks, I will try unwraping the model. I actually only need one cup in the beginning and will hire 3d modeler if it can be done.
    The end goal of this is to put it on a web page so visitor can upload an image and see how it would look on a cup.

    Ok, I'll research how to do this, thanks.