TRANSPARENCY

Before to talk about transparency, please, download these two "pieces", our old friend "legoic" in two versions (one, seated):

legoicM.ase - in the folder legoicM

arms.jpg - in the subfolder Textures

body.jpg - in the subfolder Textures

chest.jpg - in the subfolder Textures

hair.jpg - in the subfolder Textures

theFace.jpg - in the subfolder Textures

legoicMS.ase - in the folder legoicMS

arms.jpg - in the subfolder Textures

body.jpg - in the subfolder Textures

chest.jpg - in the subfolder Textures

hair.jpg - in the subfolder Textures

theFace.jpg - in the subfolder Textures

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 :

transparentWallRound12x7x4.ase - in the folder transparentWallRounded2x7x4

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

DISCLAIMER: This material can be translated for any language, and reproduced total or partially by anybody using any type of media. But, please, don't put your name like author. And let me know if it was useful (americo@dmu.com).The use of any code, 3D model or technique published is free and doesn't need to have any reference about this source.The author is not responsible for any damage that the material can cause to your professional or sexual life.