Jump to content

Click in a object and change texture.


juanpenche
 Share

Recommended Posts

Hi, I´m new to babylon.js and I´d like to know if anyone can tell me if is possible with this framework to view a  obj (exported to .babylon with blender) , define some areas in the obj , detect a click on this area and change the texture of this area.

 

Is there any example about this? 

Thanks!

Link to comment
Share on other sites

This will change the texture of the entire object.

 

If you want to find the spefiic point of the UV (Texture) coordinates to change the texture at this specific point you could also get them from the pickResult object.

I don't remember which user in the forum showed once a wonderful demo of exactly that implementation, but it was great :-)

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...