4

I'm making an animation of origami.

enter image description here

animation test

It's not easy to understand overlapping portions.

I wanna set different colors to each side of paper.

iKlsR
  • 43,379
  • 12
  • 156
  • 189
Momoko
  • 331
  • 5
  • 14
  • I suggest you ask two individual questions instead of one. Although blender can render with double-sided material and wire material, I don't think they can be output and used in other render engine. It may depend on how WebGL renders it. So what do you really want to output, video or mesh/mat data? – Leon Cheung Feb 10 '14 at 08:18
  • Should be possible with GLSL. – pink vertex Feb 10 '14 at 09:39
  • WebGL can read JSON data of mesh made by Blender, so Blender has a addon to export the data. But I can't understand the structure of the data. – Momoko Feb 10 '14 at 11:11
  • Possible duplicate of http://blender.stackexchange.com/q/2082/599? – gandalf3 Feb 14 '14 at 11:14
  • Double sided materials as well as Node Editor are perfectly supported in Blend4Web –  May 17 '14 at 15:39

1 Answers1

8

I think you can do it by making it "physically" double-sided, which means:

  1. In Edit mode, Select all faces, then ShiftDEnter to duplicate it, then CtrlN (or CtrlShiftN) to flip normals for all faces.
  2. Add a new material and assign to the selection.
  3. Make sure to toggle Normals when exporting.

enter image description here

It would work if WebGL can do single-sided render (I bet it can), which is normal-based, like GLSL. Or you can make two separate objects that overlap each other, and have their face normals completetly flipped.


If you just want to render it in Blender, here is the solution for BI:

enter image description here

And for Cycles:

enter image description here

Leon Cheung
  • 27,718
  • 11
  • 89
  • 161
  • Thank you for your advice!! I'm sorry late for reply. I understood your advice, but I couldn't success to display just a skeletal animation by WebGL on browser, so I couldn't try your advice. I will ask how to display a skeletal animation, and then I will try your advice!! – Momoko Feb 13 '14 at 09:24