How do you make a textured object drive through?

Questions and answers about the how and why of making maps.
Post Reply
User avatar
Propane Tank
Private First Class
Private First Class
Posts: 99
Joined: Mon Aug 17, 2009 12:44 pm

How do you make a textured object drive through?

Post by Propane Tank » Mon Nov 23, 2009 11:14 pm

How do you make the texture drive through? I have the box drive through, but what you land on it, you get stuck and can't turn, jump, move, or anything. I am trying to make a swimming pool on my new rabit hunt map, but I can't get the water drive through. And is it possible to make the texture transparent?
-Propane Tank

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

Re: How do you make a textured object drive through?

Post by blast » Mon Nov 23, 2009 11:44 pm

You don't make a "texture" drive through. You make the object drive through, and apply the material to that object. Isolate the object you are trying to make drive through in a new map file along with the material and anything else directly related to it. If that works, then something else in your map is wrong.

As for making a texture transparent, there are a couple ways to do that. First, if you only want certain parts of a texture to be transparent, you should use the alpha channel in your image editing program. If you want the entire object/side to be partially transparent, you should adjust the material. A little searching can go a long way...

How to make an object partially transparent:
http://my.bzflag.org/bb/viewtopic.php?f ... nt#p142174
"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: 315
Joined: Sun Mar 04, 2007 8:33 pm
Location: Press '/' to search
Contact:

Re: How do you make a textured object drive through?

Post by ahs3 » Tue Nov 24, 2009 4:07 am

Propane Tank wrote:How do you make the texture drive through? I have the box drive through, but what you land on it, you get stuck and can't turn, jump, move, or anything. I am trying to make a swimming pool on my new rabit hunt map, but I can't get the water drive through. And is it possible to make the texture transparent?

is it a textured box or meshbox?

I have submitted a bug to sf.

when a box is textured its not really drivethrough, use a meshbox. it should clear that up.

User avatar
Propane Tank
Private First Class
Private First Class
Posts: 99
Joined: Mon Aug 17, 2009 12:44 pm

Re: How do you make a textured object drive through?

Post by Propane Tank » Tue Nov 24, 2009 4:59 pm

ahs3 wrote: is it a textured box or meshbox?

I have submitted a bug to sf.

when a box is textured its not really drivethrough, use a meshbox. it should clear that up.
I am not very good with meshes, and they seem really hard to build.

This may be a little off topic, but is it possible to take out team flags in CTF. I want only a green flag to show up and the red and blue flags to not show up.
Here is what I have in my config:
-f B* -f R*
-Propane Tank

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

Re: How do you make a textured object drive through?

Post by blast » Tue Nov 24, 2009 7:18 pm

The -f only prevents random flags (ones specified with -s and +s) from spawning. It does not prevent mandatory flags (such as team flags, or those added with +f) from spawning. You'd probably have to modify the bzfs code to prevent a team flag from spawning. The other option would be to place the other team flag in a flag spawn zone on an object far out of reach of the players.
"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
optic delusion
Special Forces
Special Forces
Posts: 1011
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: How do you make a textured object drive through?

Post by optic delusion » Wed Nov 25, 2009 4:55 am

Sounds like the hold-the-flag HTF, plugin... maybe steal the bacon. I don't know. Hiding the unwanted flags way up high will be easiest, use the zoneflag option in your zone.
zone
position x y z
zoneflag B* R*
end

Meshes are easy if you use a 3-d editor.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

User avatar
Propane Tank
Private First Class
Private First Class
Posts: 99
Joined: Mon Aug 17, 2009 12:44 pm

Re: How do you make a textured object drive through?

Post by Propane Tank » Wed Nov 25, 2009 7:15 pm

Thanks for that. Now the flags are outa play. Is it possible to make a green flag appear is a green tank isn't there? My guess is no, but if it is possible, I would like to know how to do it. What is a good 3-d editor? Will BZ Work Bench work. I think that might do meshes. I'll look and see. I have it on my laptop.
-Propane Tank

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

Re: How do you make a textured object drive through?

Post by blast » Wed Nov 25, 2009 7:28 pm

Propane Tank wrote:Is it possible to make a green flag appear is a green tank isn't there? My guess is no, but if it is possible, I would like to know how to do it.
Same kind of thing as what you asked before... you would need to modify BZFS.
Propane Tank wrote:What is a good 3-d editor? Will BZ Work Bench work. I think that might do meshes. I'll look and see. I have it on my laptop.
I do not think that BZWorkBench has any way of editing meshes once they are in, except maybe by changing the code by hand. You want a 3D Modeler such as Wings3D or Blender.
"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
Propane Tank
Private First Class
Private First Class
Posts: 99
Joined: Mon Aug 17, 2009 12:44 pm

Re: How do you make a textured object drive through?

Post by Propane Tank » Wed Nov 25, 2009 8:46 pm

I do not think that BZWorkBench has any way of editing meshes once they are in, except maybe by changing the code by hand. You want a 3D Modeler such as Wings3D or Blender.
Can't you make a mesh in BZ Workbench? I don't have meshes in the map, but I was advised to make a mesh for the water on my Rabbit Chase map.
-Propane Tank

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

Re: How do you make a textured object drive through?

Post by blast » Thu Nov 26, 2009 7:31 am

No, you cannot. It is not a 3D Modeler.
"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
Propane Tank
Private First Class
Private First Class
Posts: 99
Joined: Mon Aug 17, 2009 12:44 pm

Re: How do you make a textured object drive through?

Post by Propane Tank » Thu Nov 26, 2009 2:29 pm

You can make mesh pyramids and mesh boxes. I just looked before posting this. Isn't this your app Blast? You should know what you implemented into your own app.
-Propane Tank

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

Re: How do you make a textured object drive through?

Post by Spazzy McGee » Thu Nov 26, 2009 3:57 pm

Propane Tank wrote:You can make mesh pyramids and mesh boxes. I just looked before posting this. Isn't this your app Blast? You should know what you implemented into your own app.
BZWorkbench is not Blast's. It was mainly coded by jude as part of GSoC, and is still in ongoing development by whomever wants to work on it.
"Life is what happens to you while you're busy making other plans." - John Lennon

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

Re: How do you make a textured object drive through?

Post by blast » Thu Nov 26, 2009 5:30 pm

Mesh pyramids and mesh boxes are not the same as a "mesh". :roll:

And yes, jude worked on it first, and then Will07c5 (William Hahne) did more on it.
"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
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Re: How do you make a textured object drive through?

Post by JeffM » Thu Nov 26, 2009 6:35 pm

BZWorkbench has never been specked to be a full 3d modeler, at most it will let you import a mesh and place it in the world. It will not let you make them from scratch. There are better apps out there to do that.
ImageJeffM

User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: How do you make a textured object drive through?

Post by joevano » Thu Nov 26, 2009 9:36 pm

Propane Tank wrote:You can make mesh pyramids and mesh boxes. I just looked before posting this. Isn't this your app Blast? You should know what you implemented into your own app.
A mesh box and mesh pyramid are relatively simple meshes that mimic what regular boxes and pyramids do, with some added 'mesh' features. At MOST they have 8 points that are easily calculated, that is way different than a full fledged mesh editor...
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln

Post Reply