Different kind of color & drive throught not working

Questions and answers about the how and why of making maps.
Post Reply
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Different kind of color & drive throught not working

Post by fox in the fog »

I have set, using the diffuse line options, a colored pyramid a little bit translucent also "drivethrought". When the pyramid was only "drivethrought" this worked. When I added the diffuse line that worked (I mean the color a little bit translucent), but the pyramid isn't "drivethrought".... Why? If not clean I'll post the code.
(How to get the typical textures of a pyramid, with all the streaks, but not blue (default color) but green, red, purple ect...??)
thank you so much for all the replays :)
Fox
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Different kind of color & drive throught not working

Post by blast »

My guess it that you only included three values on the diffuse, not four. The diffuse option takes four values, so if you leave one off, it might be putting "drivethrough" in for the fourth value even if it's on another line.

However, feel free to post the relevant code so we can check for sure.
"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
ahs3
Private First Class
Private First Class
Posts: 327
Joined: Sun Mar 04, 2007 8:33 pm
Location: Press '/' to search
Contact:

Re: Different kind of color & drive throught not working

Post by ahs3 »

there is also a problem with pyramids and boxes with material references and drivethrough, simply change it to "meshpyr" and it should work fine.

ahs3
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Different kind of color & drive throught not working

Post by fox in the fog »

ahs3, your advice was very useful, now the pyramid are colored and drive through.... Thank you.
But, what about my parentheses?
(How to get the typical textures of a pyramid, with all the streaks, but not blue (default color) but green, red, purple ect...??)
Thank you :)
P.S.
How get the pyramid with the normal texture (blue with streaks ecc..), but a little bit translucent?
User avatar
ahs3
Private First Class
Private First Class
Posts: 327
Joined: Sun Mar 04, 2007 8:33 pm
Location: Press '/' to search
Contact:

Re: Different kind of color & drive throught not working

Post by ahs3 »

Fox in the Fog wrote:ahs3, your advice was very useful, now the pyramid are colored and drive through.... Thank you.
But, what about my parentheses?
(How to get the typical textures of a pyramid, with all the streaks, but not blue (default color) but green, red, purple ect...??)
Thank you :)
P.S.
How get the pyramid with the normal texture (blue with streaks ecc..), but a little bit translucent?

Code: Select all

material
name pyrdiff
texture pyrwall
diffuse 1 1 1 .5  #This would be 50% translucent
end

material
name pyrgreen
texture pyrwall
diffuse green  #this would be diffused green
end



All this info is located here ---> http://my.bzflag.org/w/Material

ahs3
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Different kind of color & drive throught not working

Post by fox in the fog »

thank you ahs3, I was able to do it without your help, but in another way, worst... so thank you :D
I should grouping many objects (this colored and translucent object I made) with the name of one, to copy or move them all together and not one by one ... how do it?
Thnk you all :)
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Different kind of color & drive throught not working

Post by fox in the fog »

Ok... thanks to all, I have discovered the way to do that... :)
Fox
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Different kind of color & drive throught not working

Post by fox in the fog »

All is written here --> http://my.bzflag.org/w/Editing_by_Hand

:) But the "colored trans lucid pyramid" isn't write there... So thanks for the help :)
User avatar
Mopar Madness
Private First Class
Private First Class
Posts: 169
Joined: Mon Jul 03, 2006 3:31 am

Re: Different kind of color & drive throught not working

Post by Mopar Madness »

ahs3 wrote:there is also a problem with pyramids and boxes with material references and drivethrough, simply change it to "meshpyr" and it should work fine.

ahs3
Yuck meshpyrs and meshboxes are horrible, the textures always get messed up on them and require all sorts of work and texture matrixes and junk to fix, not to mention the problem of driving from a meshbox to a box (cant remember if boxes with matrefs on them have same problem or not) BTW, will that be fixed in 2.3?
User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

Re: Different kind of color & drive throught not working

Post by hutty »

however you are forgetting that textured boxes have a horrible spawn bug that will periodically spawn a player inside the box.

Meshboxes do not have this problem

boxes should only ever be used for -vs 1.0 computability - if you are keeping them the same brick and concrete textures.

ps... I would like to see meshboxes fixed in 2.3
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Different kind of color & drive throught not working

Post by fox in the fog »

What do you mean for textured boxes?

Code: Select all

material
 name bluebasebox
 diffuse blue
 addtexture boxwall
  notexalpha
end

box
 position 0 0 0
 size 20 20 10
 matref bluebasebox
end
this?
:P
User avatar
Calzaath
Private First Class
Private First Class
Posts: 39
Joined: Sun Feb 20, 2011 1:18 pm

Re: Different kind of color & drive throught not working

Post by Calzaath »

and also you spelled drivethrough as drivethrought? not sure if that was any HELP but you never know
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Different kind of color & drive throught not working

Post by fox in the fog »

Hm... Ok but "textured boxes" mean this?

Code: Select all

material
 name bluebasebox
 diffuse blue
 addtexture boxwall
  notexalpha
end

box
 position 0 0 0
 size 20 20 10
 matref bluebasebox
end
User avatar
Calzaath
Private First Class
Private First Class
Posts: 39
Joined: Sun Feb 20, 2011 1:18 pm

Re: Different kind of color & drive throught not working

Post by Calzaath »

Fox in the Fog wrote:Hm... Ok but "textured boxes" mean this?

Code: Select all

material
 name bluebasebox
 diffuse blue
 addtexture boxwall
  notexalpha
end

box
 position 0 0 0
 size 20 20 10
 matref bluebasebox
end

diffuse blue? i think its diffuse 0 0 1 0
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Different kind of color & drive throught not working

Post by fox in the fog »

it's the same thing... it work as well as 0 0 1 0... :) you can put diffuse "purple" or "red" or "blue" or "green" :P try
Post Reply