Changable rim walls color from console (please test)

For developmental things relating to the graphics of the game.
Post Reply
nux
Round Winner
Posts: 206
Joined: Mon Sep 12, 2011 11:20 pm

Changable rim walls color from console (please test)

Post by nux »

(Note, to avoid creating a new topic, ill edit this one)

This should still work, but before making a merge request, id rather be safe and ask somebody to test. I know it works with no textures, im just not sure how it gets along with them. To change them use RIM_WALL_RED|GREEN|BLUE and any value between 0 and 1.

Branch here: https://code.launchpad.net/~pnoexz/armagetronad/0.4

Default wall colors (white) were changed to avoid this issue:

Image

Preview here:

Image

Original thread:
nux wrote:Ive made a simple change that allows you to change the rim walls color on the go if you dont use textures. But, there are REALs for the floor grid and old rim color, and 0-16 "hex" for players' wall and bike. Is there any standard format for this?
Last edited by nux on Sat May 19, 2012 9:25 pm, edited 2 times in total.
There's a difference between knowing your shit, and knowing you're shit. Grammar does matter.
User avatar
Z-Man
God & Project Admin
Posts: 11585
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Standard for color format on gl items?

Post by Z-Man »

Those two are our standards. We use the 4 bit ones in those cases where the values are to be modified via menus, the other one if it can only be modified via settings. So yeah, in your case, floats with a 0-1 range are the right choice.
nux
Round Winner
Posts: 206
Joined: Mon Sep 12, 2011 11:20 pm

Re: Standard for color format on gl items?

Post by nux »

Oh, awesome, then 0-1 float it is.
There's a difference between knowing your shit, and knowing you're shit. Grammar does matter.
Post Reply