
Before to talk about transparency, please, download these two "pieces", our old friend "legoic" in two versions (one, seated):
Like ever, for all the DMU-like pieces, you can change the textures and to create many different habitants for your spaces.
To create a piece in 3ds max, having transparency in Croquet, the modeler needs not to use any "material" in the piece - if you are not a 3dsmax user this is not important for you.
Download this other piece that doesn't have texture :
In the initialize method of the Class TransparentWallRound12x7x4 you can use the method transparency:
initialize
super initialize.
tframe := (TLoad3DSMax new initializeWithFileName:
(FileDirectory pathFrom:
{FileDirectory default pathName. 'Content'. 'transparentWallRound12x7x4'. 'transparentWallRound12x7x4.ase'})
scale: 0.1 shadeAngle: 90.1 textureMode: GLReplace) frame.
tframe collapse.
tframe boundsDepth: 3.
tframe initBounds.
self addChild: tframe.
tframe objectOwner: self.
tframe transparency:0.50.
inControl := false.
Look the efect of some values of the parameter of the method.
PREVIOUS LESSON NEXT LESSON T. CONTENTS HOMEPAGE
