Page 1 of 1

Different kind of color & drive throught not working

Posted: Mon May 30, 2011 6:51 pm
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

Re: Different kind of color & drive throught not working

Posted: Mon May 30, 2011 7:51 pm
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.

Re: Different kind of color & drive throught not working

Posted: Mon May 30, 2011 9:04 pm
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

Re: Different kind of color & drive throught not working

Posted: Tue May 31, 2011 3:23 pm
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?

Re: Different kind of color & drive throught not working

Posted: Tue May 31, 2011 5:19 pm
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

Re: Different kind of color & drive throught not working

Posted: Wed Jun 01, 2011 3:28 pm
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 :)

Re: Different kind of color & drive throught not working

Posted: Wed Jun 01, 2011 4:03 pm
by fox in the fog
Ok... thanks to all, I have discovered the way to do that... :)
Fox

Re: Different kind of color & drive throught not working

Posted: Thu Jun 02, 2011 6:09 pm
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 :)

Re: Different kind of color & drive throught not working

Posted: Thu Jun 02, 2011 10:37 pm
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?

Re: Different kind of color & drive throught not working

Posted: Fri Jun 03, 2011 12:16 pm
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

Re: Different kind of color & drive throught not working

Posted: Fri Jun 03, 2011 12:48 pm
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

Re: Different kind of color & drive throught not working

Posted: Sat Jun 04, 2011 3:52 pm
by Calzaath
and also you spelled drivethrough as drivethrought? not sure if that was any HELP but you never know

Re: Different kind of color & drive throught not working

Posted: Sat Jun 04, 2011 4:32 pm
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

Re: Different kind of color & drive throught not working

Posted: Mon Jun 20, 2011 7:17 pm
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

Re: Different kind of color & drive throught not working

Posted: Mon Jun 20, 2011 7:43 pm
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