How change the bevel size of 3d text in x3dom?
Now i have code like this
<x3d width="392px" height="392px">
<scene>
<viewpoint position='0 0 11'></viewpoint>
<background skyColor='0.5 0.5 0.5'></background>
<shape>
<appearance>
<material ambientIntensity='0.0933' diffuseColor='0.32 0.54 0.26' shininess='0.51' specularColor='0.46 0.46 0.46'></material>
</appearance>
<text string='Mono bolditalic 32px' solid='false'>
<fontstyle family="TYPEWRITER" style="BOLDITALIC" size="0.8"></fontstyle>
</text>
</shape>
<transform translation='0 0 -2'>
<shape>
<appearance>
<material diffuseColor="1 0 0" specularColor="0.5 0.5 0.5"></material>
</appearance>
<box></box>
</shape>
</transform>
</scene>
</x3d>
Is there any sample code available for this?
It looks like there aren’t any outright examples of beveling text with X3Dom alone. three.js seems to be the only webgl solution, I see, where you can easily change the bevel of 3D text. You seem to have found this based on your latest questions.
Here are some other good resources/examples for three.js.
Also, here are some JSFiddle examples. These will be much easier to read/experiement with.
I was having issues getting a JSFiddle setup. A fellow programmer was having a similar issue but with his help I setup a useful example. This will allow you a chance to experiment with the bevel capability.
Bevel Example: http://jsfiddle.net/VsWb9/674/
JavaScript
Additional JS