31 Jul 17:15
Importing ase file
From: <dlw1 <at> williams.edu>
Subject: Importing ase file
Newsgroups: gmane.comp.lang.smalltalk.croquet.devel
Date: 2008-07-31 15:15:27 GMT
Expires: This article expires on 2008-08-14
Subject: Importing ase file
Newsgroups: gmane.comp.lang.smalltalk.croquet.devel
Date: 2008-07-31 15:15:27 GMT
Expires: This article expires on 2008-08-14
Hi, Sorry to be posting so many questions recently, but we're trying to get a lot done quickly and so far you all have been really helpful. Thanks for answering. Our most recent issue is with trying to turn a .ase file into its own TObject, or at least a convenient mesh that we can code into a world. Ideally we could make this a subclass of TFrame that we can manipulate as any other object. In order to get to this step, we first tried to follow the outline of the boat mesh included with Croquet. I added the following three methods to a world: createRabbitMeshGroup | rabbitMeshGroup rabbit | rabbitMeshGroup := TGroup new. rabbit := TLoad3DSMax new initializeWithFileName: (FileDirectory pathFromURI: 'Content/Meshes/rabbit.ASE'). rabbit translationX: 0 y: 0 z: 0. rabbit collapse. rabbit boundsDepth: 2. rabbit objectName: 'Rabbit'. rabbit scale: 0.05. rabbit initBounds. rabbitMeshGroup addChild: rabbit. ^ rabbitMeshGroup createRabbit: space | rabbitMeshGroup vehicle| rabbitMeshGroup := self createRabbitMeshGroup.(Continue reading)
RSS Feed