Forum

Swap texture image?

13 October 2015 06:40 #4359
Hi there,

quick question.

Is there anyway using blend4web to swap one texture to another when a user clicks a button?

The reason why I dont want it to be geometry swapping is because the object that has the texture map is already fairly high poly (I'm doing a area of land that needs to show different geological markings on it)

Thanks in advance.
13 October 2015 11:20 #4365
Yep, you can code it using Canvas textures, you can animate node materials (Mix factor between two textures) and you can use material inheritance as shown in this demo using our logic nodes You can find this file in SDK: blender/interacivity/inherit_material.blend
3D Generalist, contests administrator,
Blend4Web team.
art blog: http://contret-art.tumblr.com/
14 October 2015 03:32 #4383
Hmm ok I gave it a go, but nothing happens :(

Here's my files http://we.tl/xAAEQyBULS
14 October 2015 11:11 #4388
Yeah, we found a little bug, it'll be fixed in the next release. For now, turn this option ON for every RGB plane:

3D Generalist, contests administrator,
Blend4Web team.
art blog: http://contret-art.tumblr.com/
15 October 2015 04:13 #4397
Ok thanks Pavel.

That worked!
 
Please register or log in to leave a reply.