HORIZONS

What is an "horizon"?

It's a virtual box having a landscape inside. It can be used in Croquet to make your space more beatiful.

It doesn't need to be "realistic":

How to use an "horizont" in your space?

We are presenting here, at this lesson, 17 "horizons" created by a famous digital artist from UK, our dear friend "Scented Nectar" (a nick name, of course...). I hope that, in the future, many other artists will create other "horizons" for the use of the "croqueteers".

An "horizon" has 5 .JPG files that you need to download. By example:

lt1 ...... ft1 ......rt1 ......bk1 ......up1

After this you need to create a folder: C:\Croquet\Content\horizon1 - or equivalent for your system - and download this .ASE file in it:

horizon70.ase

You need to create for it a subfolder: Textures, and copy to it the .JPG files downloaded but changing their names to: lt.jpg, ft.jpg, rt.jpg, bk.jpg and up.jpg

Create a new Class: Horizon1, like ever

TGroup subclass: #Horizon1
	instanceVariableNames: 'inControl tframe '
	classVariableNames: ''
	poolDictionaries: ''
	category: 'MyCroquet'.

It needs to have the usual "3 basic methods".

And the "initialize" method, that will be:

initialize

super initialize.
tframe := (TLoad3DSMax new initializeWithFileName: 
	   (FileDirectory pathFrom:
            {FileDirectory default pathName.  'Content'.   'horizon1'. 'horizon70.ase'}) 
	   scale: 0.1  shadeAngle: 90.1 textureMode: GLReplace) frame.
tframe collapse.
tframe boundsDepth: 3.
tframe initBounds.
self addChild: tframe.
tframe objectOwner: self.
inControl := false.

Why is not the name of the folder, the same of that of the file?

Why is not the name of the folder, the same of that of the file?

OK. OK. I will not do it again...

You don't need to use any other method.

The method of the Private Class can be:

initializeDefaultSpace 

| space  base hZ |
"Create a new space"
space := TSpace new.
"Make a light"
self makeLight: space.
 
base:=BasePlate70x3x70 new.
space addChild:base.
 
hZ:=Horizon1 new.
space addChild:hZ.
hZ translationX: 0 y: 0 z: 0.

^space.

In the "real life" you will have some 3D windows and Portals in the space. The access to 3D windows having projects and Portals to other spaces is the reason of Croquet to exist, like you learned at the "Basic Tutorial for Beginners. Croquet is not a game engine...

Here you can see, and download, itens of the "Scented Nectar collection" (Thanks, dear SN! Don't smoke too much...):

lt2 ...... ft2 ......rt2 ......bk2 ......up2

lt3 ...... ft3 ......rt3 ......bk3 ......up3

lt4 ...... ft4 ......rt4 ......bk4 ......up4

lt5 ...... ft5 ......rt5 ......bk5 ......up5

lt6 ...... ft6 ......rt6 ......bk6 ......up6

lt7 ...... ft7 ......rt7 ......bk7 ......up7

lt8 ...... ft8 ......rt8 ......bk8 ......up8

lt9 ...... ft9 ......rt9 ......bk9 ......up9

lt10 ...... ft10 ......rt10 ......bk10 ......up10

lt11 ...... ft11 ......rt11 ......bk11 ......up11

lt12 ...... ft12 ......rt12 ......bk12 ......up12

lt13 ...... ft13 ......rt13 ......bk13 ......up13

lt14 ...... ft14 ......rt14 ......bk14 ......up14

lt15 ...... ft15 ......rt15 ......bk15 ......up15

lt16 ...... ft16 ......rt16 ......bk16 ......up16

lt17 ...... ft17 ......rt17 ......bk17 ......up17

If you like, you can download all the collection ziped (6Mb):

SNHorizons.zip



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.