Jump to content

[SOLVED] How to fit decal to transformed mesh?


ozRocker
 Share

Recommended Posts

With this cat, if I add the decal then it works fine, but if I rotate the cat then add the decal it will not show.  How can I transform the decal so it would fit on the rotated cat?

http://www.babylonjs-playground.com/#1BAPRM#100

In general, if I rotate and translate a mesh, what do I need to do to the decal position and normal to fit the rotated/translated mesh?  I'm using decals on specific areas, like on a person's heart or bellybutton and I want to be able to apply that decal anytime after the mesh has moved.

Link to comment
Share on other sites

Just to clarify, what I needed was a pattern on a person's t-shirt which can be changed to any image you want.  That image was a decal on top of the person.  I thought you had to remove the decal then create a new one in order to change the image but turns out you can keep the decal there and just change the diffuse texture.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...