OK so the howto goes like this:
First create a box and add a cheapo texture. I made this one:

use whatever exporter you wish to use to export it to CS as a library file. the library file it spits out should be similar to this (the world file is in the zip file the exporter creates).
http://rafb.net/paste/results/DWsrs625.nln.htmlWhat I did was plunk the zip in a directory and extract it - then delete the main zip file. This library file is going to need some hand editing. In order for the library to appear in a terrain like the example terrain \"terrain\" in crystalspace, it needs to have some nice stl shaders attached to it. This has something do do with the renderloop it employs - I\'m not sure why though.
First place the shader in the shader section of the library file like this:
/shader/std_lighting.xml
Then apply that texture to each material in the file by adding this before the
std_lighting
so the library file should look something like this:
http://rafb.net/paste/results/B5rj5a53.nln.htmldon\'t know if that nopaste will stay up very long...
Next take the texture out of the \"textures\" folder which is in the folder you extracted the zip into. Place this texture in the textures folder of the terrain world. (Just in case it can\'t be found - I\'ve had this issue - if anyone can point me to a different solution taht would be cool.) the terrain example doesn\'t have a textures directory so you\'ll have to make one.
Now that that is all done, zip up your box into box.zip and place it in the data directory of CS.
Now open vfs.cfg and add a line like this
VFS.Mount.lib/box = $@data$/box.zip
you\'ll see where it goes.
Now that thats all done, lets open up the terrain world file.
add the stl shader to the shaders section of this file as well:
/shader/std_lighting.xmlNext - we need to import the library file - do it like this:
I put this above the first meshfact in the terrain world file.
/lib/box/worldNOw that we have done that, we have to add a meshobj for every meshfact in the world file - my only meshfact in the box is a meshfact named \"cube\"
add it in the meshobj section like this:
thing
object
Cube
meshobj name isn\'t important - it can be anything but the factory entry is key - it must be the same as the meshfact on the library file. some of the other stuff probabily isn\'t necessary but I was having some troubles getting it to show up lol.
after this is all good and done, go ahead and save it all and now run from the cs dir
walktest /data/test -relight
(test is what I named the copy of \"terrain\")
when you are in walktest hit Ctrl -C to get your coordinates - go back to the world file and input your starting coordinates for the
stuff - this way its easy to find. If you can\'t get your box to show up try disabling the custom render loop by commenting it out wiht