Tag-tastic!


Fresh look for your realxtend world

Skybox and lighting tutorial


Tired of that post-apocalyptic look at your world? Set a new skybox and make the lights brighter and you can feel the energy coming from the eternal and virtual sun light!

Change is good. I discovered the world of skyboxes recently and have been stunned since then how much they affect the atmosphere of your virtual world. Also the lighting conditions play an important role of the general feel of your world. 

When you start to make a new world, here are some steps I usually follow. 

samuelandmaxping

1: Get an empty server from realXtend. It is recommended to use the new taiga server (version 0.5), but as I bumped into some problems with it, I am still running the old 0.4 release, which you can download from here. It is possible to transfer the content to 0.5 later, but no guarantees that it works for everything.

2: Log in to your new world (with the new 0.41 viewer) to see the effects of your changes

3: Select a new terrain file from http://www.rexxed.com/category/terrain/   (note that you can find a plenty of free terrains too, just browse through to see which one you like). 

4: Go to your server console window and type "terrain load filename" where you need to replace filename with the full path and filename of the newly downloaded terrain file. Jump to your realXtend viewer to see how it looks like. 

5: Select a new skybox from rexxed, I like this one http://www.rexxed.com/2009/07/mountain-ring-skybox/ and use the bulk upload from the viewer's file menu to upload the 6 skybox images to the server.

6: Take the python script from here http://www.rexxed.com/2009/07/set-skybox-python-script/ and unzip it to your server's python folder, which is <installation dir>/rexserver/ScriptEngines/PythonScript/  

7: Edit the details of maxping_worldinfo.py to suit your needs: 

The light settings. First vector defines the fixed sun position, the example has correct values for the Mountain ring skybox. The second vector defines the color and intensity of the sun light in RGB, and the third vector sets the ambient light in the same manner. 

vAvatar.rexSetAmbientLight(Vector3(0.7,0.2,1), Vector3(0.8,0.8,0.8), Vector3(0.4,0.4,0.4))

The skybox images. right click skybox images on your inventory and copy UUID of each of them, and paste into right places. The trailing three letters define which one is which one. 

vAvatar.rexSetSky(1, "74f1356c-6187-4a0e-a245-01a7a24662be_up d489f92d-3cc8-4316-88d2-f2818d78c96d_fr f1a995f6-d87b-4a1b-ab6b-ba5dfff11ea0_bk 3e8967a6-c794-4cf9-a9c7-7a2ee2568d0b_rt 1143dc2b-f2be-4fcf-9d4e-b9787def4308_lf cc13a96f-8f16-4c87-b93d-b12ecfce6622_dn", 1, 1)

The post processing effect. You can just comment this out by adding # at the front of this line or use any of the postprocessing effects available - the index numbering can be checked from viewer's menu edit->post processing. Number one here is rexBloom, which gives nice bloom to everything, but may distract a bit if someone tries to read something from textures... 

vAvatar.MI.AddPostProcessEffect(1)

The initial location when entering world. Change coordinates to fit your needs. A bit of randomization is included so many avatars entering do not end up exactly at the same spot. 

def TeleportToInitialLocation(self,vAvatar):
locx = 112 - 0.5 + random.random()*0.5
locy = 140 - 0.5 + random.random()*0.5
locz = 129
vAvatar.DoLocalTeleport( Vector3(locx,locy,locz) )

7:  after this step you need to reload the python scripts to memory again, type "python restart" at your server console.

8: Take the scripts into use by editing a prim and from rex->misc tab change the class name to maxping_worldinfo.MaxpingInfo as shown below, and do the step 7 again to see the results without logging off and on again. 

setpythonclass

Article tagged: realxtend 0.4

We recommend that you discuss this article on Think, but if you really want to you can leave a comment right here as well:

0 comment(s) for “Fresh look for your realxtend world”