Search Unity

Tips to make a texture placement for a customization system

Discussion in 'General Graphics' started by gabrimo, Aug 27, 2019.

  1. gabrimo

    gabrimo

    Joined:
    May 2, 2015
    Posts:
    92
    Hi there, couldn't find a tutorial about a texture placement system with scale and rotation features. I would like to build something similar to the decal system found on Need For Speed games.

    Something like this (from 5:15 to 5:30):



    Not sure if I'm typing the wrong words at google or if there isn't any good materials on this subject.
     
  2. gabrimo

    gabrimo

    Joined:
    May 2, 2015
    Posts:
    92
    Bump, anyone?
     
  3. gabrimo

    gabrimo

    Joined:
    May 2, 2015
    Posts:
    92
    So I end up find an answer in another forum.

    Firstly a guy from that forum made a shader that has 2 texture slots for me, one for the base texture and other for the decal. After that I made a basic UI to insert the decal in the decal slot and some basic commands to move and scale the decal. This is my result so far:



    My next challenge is to apply the decal in the base texture and clear the decal slot to make the placement of more decals possible. Probably this has something to deal with the GetPixels() method from what I heard of...