Transparant walls

Questions and answers about the how and why of making maps.
Post Reply
Apple
Private
Private
Posts: 4
Joined: Tue Oct 23, 2007 2:58 pm

Transparant walls

Post by Apple »

Hi, i'm a beginer in map making (a big newb).
i want to know how you can make transparant walls, but still able to see them.

Any help?
F687/s
Private First Class
Private First Class
Posts: 369
Joined: Sun Dec 31, 2006 8:30 pm

Post by F687/s »

Code: Select all

material
 name invisible
 color 0.5 0.5 0.5 0.5
end

meshbox
 position 0 0 0
 size 10 10 10
 matref invisible
end
That makes walls a semitransparent gray. See here for how to make invisible walls, and check the wiki for Material, and how to apply it to a Meshbox.
User avatar
Easy Target
Private First Class
Private First Class
Posts: 191
Joined: Sat Sep 29, 2007 7:58 pm
Location: In a cardboard box, how I own a computer, I don't know.

Post by Easy Target »

the there is a list of colors and their values on wiki, that will help a lot... check it out.
Humor helps us to think out of the box. The average child laughs about 400 times per day, the average adult laughs only 15 times per day. What happened to the other 385 laughs?
Apple
Private
Private
Posts: 4
Joined: Tue Oct 23, 2007 2:58 pm

Post by Apple »

ok thanks guys
User avatar
soccermiles
Private First Class
Private First Class
Posts: 42
Joined: Fri Nov 09, 2007 5:24 am
Location: 2440 Greenbriar, Boulder CO 80305 USA

Post by soccermiles »

How can you make see-through, drive-through structures?
User avatar
Jefenry
Private First Class
Private First Class
Posts: 154
Joined: Thu Sep 14, 2006 3:56 pm
Location: TextEdit
Contact:

Post by Jefenry »

soccermiles wrote:How can you make see-through, drive-through structures?

Code: Select all

material
 name invisible
 color 0 0 0 0
end 

meshbox
  pos 0 0 0
  size 10 1 10
  matref invisible
  drivethrough
end

Change drivethrough to shootthrough to let bullets through, but not tanks, or passable for both tanks and bullets.
User avatar
soccermiles
Private First Class
Private First Class
Posts: 42
Joined: Fri Nov 09, 2007 5:24 am
Location: 2440 Greenbriar, Boulder CO 80305 USA

Post by soccermiles »

I tried that. it only let me part-way through the object!
pacman87
Private First Class
Private First Class
Posts: 23
Joined: Sat Jul 01, 2006 3:35 pm

Post by pacman87 »

i'm "running into" the same problem - if i remove the matref, i can drive through, but no transparency. if i include the matref, i can see through it, but get stuck driving through. Any thoughts?
User avatar
ahs3
Private First Class
Private First Class
Posts: 327
Joined: Sun Mar 04, 2007 8:33 pm
Location: Press '/' to search
Contact:

Post by ahs3 »

soccermiles wrote:I tried that. it only let me part-way through the object!
Did you use meshbox or box.

I have had the same problem with box.

But meshbox does fine.


--ahs3
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Post by Spazzy McGee »

As of 2.0.10, BZFS will accept a material applied to a box as well as the meshbox.
"Life is what happens to you while you're busy making other plans." - John Lennon
User avatar
ahs3
Private First Class
Private First Class
Posts: 327
Joined: Sun Mar 04, 2007 8:33 pm
Location: Press '/' to search
Contact:

Post by ahs3 »

Spazzy Mcgee wrote:As of 2.0.10, BZFS will accept a material applied to a box as well as the meshbox.

yes, but for some reason when you apply a material to a box, drivethrough will not allow for complete passage.
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast »

ahs3 wrote:
Spazzy Mcgee wrote:As of 2.0.10, BZFS will accept a material applied to a box as well as the meshbox.

yes, but for some reason when you apply a material to a box, drivethrough will not allow for complete passage.
File a bug report at SourceForge with an example map file that exhibits the behavior.
"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
Post Reply