Forum

Matcap node (or nodeless) set up

10 December 2014 14:58
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
Hi Marc,

Nice to meet you on our forum! You'll be answered shortly
The Founder | Twitter | Facebook | Linkedin
10 December 2014 15:40
Thank you Yuri.
I look forward to it.

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

Here is blend and HTML

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

html

.blend
11 December 2014 13:24
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
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
11 December 2014 17:27
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
Hi Marc,

could you please attach here an example blend file?
The Founder | Twitter | Facebook | Linkedin
12 December 2014 13:25
Hi Yuri,

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

Thank you.
12 December 2014 14:43
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
 
Please register or log in to leave a reply.