1
$\begingroup$

Just downloaded and installed blend4web. Very nice tool.

Have a nicely textured model in Cycles, but when I export to .html it is all black. No materials, no lighting.

Couldn't find beginner tutorial how to apply materials. Could someone please describe what we need to do?

I hope it does not involve baking the textures. Would like a simpler way. Thanks

enter image description here

$\endgroup$
  • 2
    $\begingroup$ From blend4web faq: Why are materials for Cycles not supported? What should I do if I have a lot of such objects? The Cycles renderer is not designed for work in real-time as it uses ray-tracing algorithms. Nevertheless, you can bake your Cycles materials into textures in order to use them in ordinary materials. On the other hand, Blend4Web supports shader nodes (aka node materials) which are fast enough in performance for real-time applications and at the same time make it possible to achieve a photo-realistic feel. $\endgroup$ – cgslav Aug 31 '16 at 4:51
  • 1
    $\begingroup$ Thanks @LukeD. I'm sorry I don't fully understand yet. Does it mean I have to bake every object in the scene, and re-apply the materials in the blender4web render engine? What exactly should I do to get my blend4web output looking the same (close as possible) to my Cycles renders? Thanks $\endgroup$ – sliver Aug 31 '16 at 5:28
1
$\begingroup$

In Blender there is the Cycles render engine (non-real-time) and the GLSL viewport (real-time). Both has its own set of material nodes. Blend4Web is a real-time engine and thus leverages the viewport's nodes.

$\endgroup$
  • 1
    $\begingroup$ Thanks @Blend4Web. Sounds like the answer is to learn Blender Internal materials and Blend4Web materials, in order to create real time renderable models for the internet. $\endgroup$ – sliver Sep 6 '16 at 0:25
1
$\begingroup$

In Blend4web mode (not Cycles), make sure in the node editor window 'Use nodes' is not checked.

Create a new material, switch to the texture panel, click the checkered "Show other data textures" button and choose your image below.

$\endgroup$
  • $\begingroup$ Good news for Cycles users! Blend4Web is going to support some Cycles nodes in the upcoming release. Yay! $\endgroup$ – Blend4Web Nov 11 '16 at 14:04
  • $\begingroup$ That's awesome news! Keep up the great work! $\endgroup$ – leo Nov 11 '16 at 14:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.