Maps
- ashleypogi13
- Private First Class
- Posts: 13
- Joined: Tue Mar 27, 2007 8:51 pm
- Contact:
Maps
uhmm im making a map and i wanna put some colors on some pyramids, boxes. how do i put colors on my map?
Re: Maps
Please refer to the BZW manpage and the BZFlag wiki.ashleypogi13 wrote:uhmm im making a map and i wanna put some colors on some pyramids, boxes. how do i put colors on my map?
Also note that if you are using the majority of the graphical map building tools that you will not be able to use advanced map features such as colors/textures/materials, physics drivers, and the newer objects (mesh, arc, sphere, etc). BZEdit, for example, can only do very basic tasks.
The map format is human readable/writable, so you may end up using a text editor to do some of the building process. The BZW man page will give examples of the actual map objects.
Last edited by blast on Sun Jan 06, 2008 8:05 pm, edited 1 time in total.
You want to research the "material" property... which you can then apply to a object, like a mesh, a meshbox, etc...
To apply it to a meshbox, do this:
Code: Select all
material
name CoolColor
color 1 1 1 1 # In order: Red, Green, Blue, Alpha
end
Code: Select all
meshbox
name SomeMeshbox
size 10 10 10
position 0 0 0
rotation 0
matref CoolColor
end
And just to expand on Winny's post: If you are using a recent version of the BZFlag server (2.0.9 or 2.0.10) then you can even use the 'matref' on objects like the 'box' and 'pyramid'. More info can be found here: http://my.bzflag.org/w/Box
- ashleypogi13
- Private First Class
- Posts: 13
- Joined: Tue Mar 27, 2007 8:51 pm
- Contact:
- captainmack
- Private First Class
- Posts: 41
- Joined: Sat Dec 01, 2007 7:08 pm
- Location: ohio
- Contact:
Yes. The server converts them to a mesh automatically. It is actually easier to texture the 'box' and 'pyramid' objects because you can specify an exact side to apply the texture to. For example, I was able to easily create cardboard boxes with a set of textures.captainmack wrote:if your server is the latest version, but players clients arent, will they still be able to see the textures on the pyramids and boxes?
http://static.bzexcess.com/boxes01.png
http://static.bzexcess.com/boxes03.png
However, there might be collision detection issues with "meshified" boxes. I haven't yet done much testing in that regard.