Jump to content

Texture Blending On Models


gamecreator
 Share

Recommended Posts

I am interested in blending two textures on a triangle in my modeling application (a lot like how the terrain editor does it) and then importing that into Leadwerks. Is this possible and if so, how is this best done? I assume this has something to do with using two or three texture slots and/or a shader but I'm not sure if it's possible.

 

post-368-0-32847200-1490816088_thumb.jpg

Link to comment
Share on other sites

Well it depends on how you are planning to do the blending inside your modeling app - by a fixed amount or via a mask/map. Based on the pics you posted, I would assume you will have some sort of mask/map that determines what texture is visible? If so, its a fairly straight forward shader where you draw the two textures based on the color of the mask texture.

 

EDIT -- if doing a mask map, here is a quick version of a model shader that blends two diffuse textures based on the mask map's alpha: blend.zip

 

post-14-0-23080500-1490831635_thumb.jpg

  • Upvote 4

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

I think this may be exactly what I'm looking for! I'm going to try it tonight. Thank you macklebee!

 

I haven't done it in a while but the link I posted in the original post shows Max's blend material (half way down under Interface section), which I intend to use to visualize this in the software before exporting.

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.

 Share

×
×
  • Create New...