Page 1 of 1

Transparant walls

Posted: Thu Nov 29, 2007 8:03 pm
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?

Posted: Thu Nov 29, 2007 8:16 pm
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.

Posted: Fri Nov 30, 2007 10:37 pm
by Easy Target
the there is a list of colors and their values on wiki, that will help a lot... check it out.

Posted: Sat Dec 01, 2007 10:14 am
by Apple
ok thanks guys

Posted: Sun Dec 02, 2007 1:26 am
by soccermiles
How can you make see-through, drive-through structures?

Posted: Sun Dec 02, 2007 2:16 am
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.

Posted: Mon Dec 03, 2007 12:29 am
by soccermiles
I tried that. it only let me part-way through the object!

Posted: Mon Dec 10, 2007 8:04 am
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?

Posted: Mon Dec 10, 2007 12:30 pm
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

Posted: Mon Dec 10, 2007 1:38 pm
by Spazzy McGee
As of 2.0.10, BZFS will accept a material applied to a box as well as the meshbox.

Posted: Mon Dec 10, 2007 2:20 pm
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.

Posted: Tue Dec 11, 2007 3:14 am
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.