Forum

Matcap node (or nodeless) set up

10 December 2014 14:58 #710
Hi Guys,

What is the simplest way to add matcaps to a Blend4Web scene object.
I am struggling a bit.

I can normally figure most things out on my own but this has got me.
I thought I had cracked it this morning but the object appeared pink in the html output.

Many thanks in advance.
10 December 2014 15:12 #711
Hi Marc,

Nice to meet you on our forum! You'll be answered shortly
Development Lead | Twitter
10 December 2014 15:40 #713
Thank you Yuri.
I look forward to it.

This will improve my output massively.
10 December 2014 16:20 #715
Hello

Here is blend and HTML

When you use normal geom output you need to add special node group VECTOR_VIEW

html

.blend
3D Generalist, contests administrator,
Blend4Web team.
art blog: http://contret-art.tumblr.com/
11 December 2014 13:24 #733
Hi Pavel,

Thank you so much. That did the trick!

Is it the same method for environment maps?

Kind Regards,

Marc
11 December 2014 15:52 #734
You need to bake a cubemap first: look here how, it's very easy :) And then - simple material node setup

Sadly blender viewport doesn't support this type and shows only black

.blend

html
3D Generalist, contests administrator,
Blend4Web team.
art blog: http://contret-art.tumblr.com/
11 December 2014 17:27 #736
Excellent!
It looks pretty straight forward now.
Thanks so much for the node examples.

I just tried throwing a texture and a normal map in the mix though and it broke it.
My dreaded pink friend returned!

I hooked a texture map up from the UV output on geometry, added a Mix node, hooked your set-up into color 1 and the texture into color 2 then into the Material. It shows up in editor but turns pink when exported to html. How do you add a normal map and texture map into the mix without breaking things?

Thank again,

Marc
11 December 2014 17:40 #737
Hi Marc,

could you please attach here an example blend file?
Development Lead | Twitter
12 December 2014 13:25 #743
Hi Yuri,

Here it is. Not pretty but it does illustrate the issue.

Thank you.
12 December 2014 14:43 #744
When something like this occurs, press f12 and see console - your problem may be shown here :)

It says that you need to choose UV name in geometry node
3D Generalist, contests administrator,
Blend4Web team.
art blog: http://contret-art.tumblr.com/
 
Please register or log in to leave a reply.