September 26, 2020

Smalltalk 3D Graphics Engine

The 3d world is programmed all in Smalltalk code. The open source three.js library is used transparently in the frontend client Smalltalk Environment. All the JavaScript libraries are available within Smalltalk because the language structure is very similar  Javascript is like the assembler of the Web.  


   "Create a standard Scene"	
   scene := Three scene.   
   camera := Three perspeciveCamera angle: 75
                                    aspect: (window innerWidth) / (window innerHeight). 
   renderer := Three webGLRenderer.   
   renderer setSizeX: (window innerWindow) setY: (window innerHeight).   
   document body appendChild: (renderer domElement)! !


This post is also available in: Deutsch 简体中文