Adding three-dimensional models to your TCL scripts with Tcl3D


Article from Issue 72/2006

Tcl3D brings the world of 3D effects to TCL scripting. We’ll show you how to get started with building your own 3D scripts.

Today’s PCs have the processing power to handle 3D images that once required expensive Silicon Graphics workstations. The world of 3D programming is therefore open to almost anyone. The OpenGL developers provide a substantial C API, but thanks to Paul Obermeier’s new Tcl3D extension [2], getting started with OpenGL has become even easier. Tcl3D offers access to OpenGL commands in TCL. Brian Paul developed his OpenGL widget Togl shortly after OpenGL was first released. However, Tcl developers had to use C to write any functions they needed for creating or lighting models. Tcl3D removes this need, giving scripts access to the lion’s share of the OpenGL API. Tcl3D even supports extensions such as OpenGL 2.0, the Nvidias CG Shader library, or SDL joystick support [4].

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • 3D with Three.js

    HTML5 brings 3D support to browsers. Thanks to WebGL, Firefox, Chrome, and company, you can render three-dimensional worlds without special plugins or viewers, and the Three.js JavaScript library makes programming easy.

  • OpenGL 4.3 Specification Released

    Khronos Group releases a new version of the OpenGL specification for cross-language, multiplatform graphics development.


    Red Hat’s head of X development describes the evolution of AIGLX.

  • SDL 2.0

    After several years of development work, version 2.0 of the SDL library was released in August 2013. Despite its many innovations, migrating to and getting started with SDL 2.0 is amazingly easy.

  • Blender 3D Modeling

    Although Walt Disney’s masterpieces are not forgotten, legacy cartoon techniques are a thing of the past. As long ago as 1995, the movie “Toy Story” proved that computers are more than up to the task of animating pictures. We’ll help you get started with building your own animations.

comments powered by Disqus

Direct Download

Read full article as PDF:

3D_Tcl_Skripts_with_Tcl3D.pdf (733.95 kB)