BZFS problem(or at least i think it is a problem)

Questions and answers about the how and why of making maps.
Post Reply
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 809
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

BZFS problem(or at least i think it is a problem)

Post by allejo »

Well anyway i am making a map and when i add color to my map and i have the code correct there are no errors but when i test it out on local host the colors don't show up i dont know if i did something wrong or it is local host or what is wrong please help.
User avatar
tw1sted
Private First Class
Private First Class
Posts: 849
Joined: Tue Feb 21, 2006 10:21 pm

Post by tw1sted »

It would help if your supplied the code you used.
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 809
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Post by allejo »

Well i have the following:
meshbox
name Death2
position -500.000000 500.000000 81.000000
size 10.000000 10.000000 15.000000
rotation 0.000000
color 6 6 6
phydrv landmine
end
User avatar
Abominable
Private First Class
Private First Class
Posts: 141
Joined: Mon Oct 22, 2007 12:31 am

Post by Abominable »

rotation 0.000000
color 6 6 6
phydrv landmine

All this you don't need

what you want is this

material
name death2
color 6.0 6.0 6.0 1.0
end

meshbox
name Death2
position -500.000000 500.000000 81.000000
size 10.000000 10.000000 15.000000
matref death2
end

Make sure to read up on the wiki, there's a lot of good information there.

Also, I always put my material on top of all my code.
The numbers after "Color" 6.0 6.0 6.0 1.0 stand for Red Green Blue Alpha in that order. Alpha being black or a dark transparency.

Now if you have physics, then you need phydrv and then the name that refers to the physics, and make sure you have the physics before the object you want to apply the physics too.
Image
Image
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 809
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Post by allejo »

okidoki thanks blizz
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Post by optic delusion »

I sometimes find it a lot easier to use the color NAMES from this page. http://web.njit.edu/~walsh/rgb.html
That is not a complete list of the ones in bzflag, use the wiki for the complete list.

Try making a mettallic texture that uses both diffuse and specular color.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
User avatar
blast
General
General
Posts: 4934
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast »

Diffuse colors cannot be larger than 1 afaik. I think it's a range between 0 and 1.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
Abominable
Private First Class
Private First Class
Posts: 141
Joined: Mon Oct 22, 2007 12:31 am

Post by Abominable »

Whoops, sorry it's been a long time since I've used basic colors.
Image
Image
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 809
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Post by allejo »

oh ok thanks everyone ill try the names later
Post Reply