Forum

[SOLVED]How to export the model with Cycles material well

04 June 2017 12:13
The model uses Cycles material, and the result with Cycles render is picture-1, the exported .html file opened in browser is picture-2.
But the picture-2 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?
04 June 2017 14:29
Hi berdon,
Cycles nodes are just starting to be supported experimentally. You can read more about them here:
https://www.blend4web.com/doc/en/node_materials.html#cycles-nodes
Here is a link to the full Node Materials documentation (there are many non-cycles nodes you can use).
https://www.blend4web.com/doc/en/node_materials.html


If you made that model, you probably know more about nodes than I do but if you are looking for a basic tutorial on nodes, here is a video that helped me:
https://youtu.be/Heg89K3ZMDo
So that model won't render over to Blend4Web the way it is but you can definitely get the same effect with the right nodes.
04 June 2017 16:38
Dear Will, thanks. The bender file is attached here, could you check it. I tried to change the cycles node which is not supported but the output result also was different from the .html one.
Thank you very much.
04 June 2017 20:15
On layer 2, there is some fabric simulation mesh. I set them to 'Do Not Export' in the Object panel. To animate the skirt in Blend4Web, I believe you would need to do Vertex animation. See Documentation. There is also a vertex animation example project like this in your SDK.
For the shirt and skirt, I unchecked 'Backface Culling' in the Materials panel (so you can see where the inside shows).
For the Cycles nodes, I skipped them and went straight to the UV textures. I don't know enough about Cycles nodes to be sure if these could work they way they were put together. Changed .blend file attached.


Its the weekend now but maybe later, one of the devs can suggest an example Cycles node project.
05 June 2017 06:15
For the Cycles nodes, I skipped them and went straight to the UV textures. I don't know enough about Cycles nodes to be sure if these could work they way they were put together. Changed .blend file attached.
WOW, dear Will, thank you very much. Now the exported html file is proper. And I look forward to other suggestions.
 
Please register or log in to leave a reply.