Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8993681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:14:45+00:00 2026-06-15T23:14:45+00:00

How change the bevel size of 3d text in x3dom? Now i have code

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:14:46+00:00Added an answer on June 15, 2026 at 11:14 pm

    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.

    • Good intro. slides: http://fhtr.org/BasicsOfThreeJS
    • http://stemkoski.github.com/Three.js/
    • http://mrdoob.github.com/three.js/examples/canvas_geometry_text.html
    • https://github.com/mrdoob/three.js/tree/master/examples

    Also, here are some JSFiddle examples. These will be much easier to read/experiement with.

    • http://jsfiddle.net/theo/VsWb9/
    • http://jsfiddle.net/GKCx6/139/

    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

    // This is where stuff in our game will happen:
    var scene = new THREE.Scene();
    
    // This is what sees the stuff:
    var aspect_ratio = window.innerWidth / window.innerHeight;
    var camera = new THREE.PerspectiveCamera(45, aspect_ratio, 1, 100000);
    camera.position.z = 800;
    camera.position.x = 350;
    
    scene.add(camera);
    
    // This will draw what the camera sees onto the screen:
    var renderer = new THREE.WebGLRenderer();
    
    // var renderer = new THREE.CanvasRenderer();
    renderer.setSize(window.innerWidth, window.innerHeight);
    document.body.appendChild(renderer.domElement);
    
    // ******** START CODING ON THE NEXT LINE ********
    var shape = new THREE.TextGeometry("Game Over", 
                                       {font: 'helvetiker',
                                        bevelThickness: '3',
                                        bevelSize: '3',
                                        bevelSegments: '4',
                                        bevelEnabled: 'true'});
    var wrapper = new THREE.MeshNormalMaterial({color: 0x00ff00});
    var words = new THREE.Mesh(shape, wrapper);
    scene.add(words);
    
    // Now, show what the camera sees on the screen:
    renderer.render(scene, camera);
    

    Additional JS

    <script src="http://gamingJS.com/Three.js"></script>
    <script src="http://gamingJS.com/ChromeFixes.js"></script>
    <script src="http://mrdoob.github.com/three.js/examples/fonts/helvetiker_regular.typeface.js"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How change int value in block, I have this : __block long long size
This change from mootools drives me crazy. HTML <tr class=teamicon> <td style=text-align: center; width=100%
To change the height of listView I have used this : .ui-li .ui-btn-inner a.ui-link-inherit,
edit: change of question if my code is like this: <form name=login action=https://login.extremebb.net/login method=post
To change the language on my website I've been using ressources and this code:
I change some code from c++ MFC to c# and have a few questions:
Change this... www.sample.com/sample.html#commentxxx?stuffhereIdontneed into this... www.sample.com/sample.html I have it in a link so I
i change dropdown list with button click like this: ddl.selectedIndex+=1 my ddl has a
Change all links that have an image in it to: javascript(alert(thehref)); eg. <a href=/galleries/anna-leah-111827/image01.html><img
To change Proxy server I have to go to IE->Internet Options->LAN Settings and click

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.