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: 227
Joined: Fri Aug 06, 2010 7:21 am
Location: Planet Earth
Contact:

Different kind of color & drive throught not working

Post by Fox in the Fog » Mon May 30, 2011 6:51 pm

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
Image

User avatar
blast
General
General
Posts: 4607
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Different kind of color & drive throught not working

Post by blast » Mon May 30, 2011 7:51 pm

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

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: 227
Joined: Fri Aug 06, 2010 7:21 am
Location: Planet Earth
Contact:

Re: Different kind of color & drive throught not working

Post by Fox in the Fog » Tue May 31, 2011 3:23 pm

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?
Image

User avatar
ahs3
Private First Class
Private First Class
Posts: 277
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 » Tue May 31, 2011 5:19 pm

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: 227
Joined: Fri Aug 06, 2010 7:21 am
Location: Planet Earth
Contact:

Re: Different kind of color & drive throught not working

Post by Fox in the Fog » Wed Jun 01, 2011 3:28 pm

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 :)
Image

User avatar
Fox in the Fog
Private First Class
Private First Class
Posts: 227
Joined: Fri Aug 06, 2010 7:21 am
Location: Planet Earth
Contact:

Re: Different kind of color & drive throught not working

Post by Fox in the Fog » Wed Jun 01, 2011 4:03 pm

Ok... thanks to all, I have discovered the way to do that... :)
Fox
Image

User avatar
Fox in the Fog
Private First Class
Private First Class
Posts: 227
Joined: Fri Aug 06, 2010 7:21 am
Location: Planet Earth
Contact:

Re: Different kind of color & drive throught not working

Post by Fox in the Fog » Thu Jun 02, 2011 6:09 pm

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 :)
Image

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

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

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: 227
Joined: Fri Aug 06, 2010 7:21 am
Location: Planet Earth
Contact:

Re: Different kind of color & drive throught not working

Post by Fox in the Fog » Fri Jun 03, 2011 12:48 pm

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
Image

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 » Sat Jun 04, 2011 3:52 pm

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: 227
Joined: Fri Aug 06, 2010 7:21 am
Location: Planet Earth
Contact:

Re: Different kind of color & drive throught not working

Post by Fox in the Fog » Sat Jun 04, 2011 4:32 pm

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
Image

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

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: 227
Joined: Fri Aug 06, 2010 7:21 am
Location: Planet Earth
Contact:

Re: Different kind of color & drive throught not working

Post by Fox in the Fog » Mon Jun 20, 2011 7:43 pm

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
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest