Arc and box, same Z axis height, same parameters size height

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: 237
Joined: Fri Aug 06, 2010 7:21 am

Arc and box, same Z axis height, same parameters size height

Post by fox in the fog »

[I'm talking about the file attached] Why if the arc and the box-shaped bridge (long and narrow) have the same height in the Z axis and the same height in the parameters size, I can not drive from the box to the arc? When I arrive in front of the arc, the tank stops and does not pass above the arc... Why? What's wrong?
I have posted a bzw file of a very very sample example of what I mean... try :)
Thanks to all Fox
Attachments
Bridge.bzw
(108 Bytes) Downloaded 152 times
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Arc and box, same Z axis height, same parameters size he

Post by blast »

Because BZFlag is buggy. Try using a meshbox instead.
"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
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Arc and box, same Z axis height, same parameters size he

Post by fox in the fog »

meshbox... So what should I do? Just call these 2 object (in the example map file) instead of box and arc, meshbox and mesharc?
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Arc and box, same Z axis height, same parameters size he

Post by blast »

Arc is already a mesh object. And a meshbox is actually based on an arc, if I recall correctly.
"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
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Arc and box, same Z axis height, same parameters size he

Post by fox in the fog »

so just:

arc
position 0 0 10
size 10 10 1
ratio 1
end

meshbox
position 0 0 10
size 5 100 1
rotation 0
end

?
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Arc and box, same Z axis height, same parameters size he

Post by fox in the fog »

yes blast.... that worked but isn't the best thing to see... but :) thank you!
Maybe I could post my map so you can see what's the effect and if there is a better way to do that :D
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Arc and box, same Z axis height, same parameters size he

Post by fox in the fog »

I have said that isn't the best thing to see because: It has a strange effect ... You can see in jerky a bit of the surface of the arc and a little bit of the surface of the box. Like a frame shooting
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Arc and box, same Z axis height, same parameters size he

Post by blast »

Are the objects overlapping?
"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
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Arc and box, same Z axis height, same parameters size he

Post by fox in the fog »

I don't know what is that... Sorry :)
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Arc and box, same Z axis height, same parameters size he

Post by fox in the fog »

Sorry blast, I didn't understand... yes are overlapping.
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Arc and box, same Z axis height, same parameters size he

Post by blast »

Make them so they are not overlapping and that issue will go away.
"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
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Arc and box, same Z axis height, same parameters size he

Post by fox in the fog »

But... it's impossible... it's going to change all the map. Ah, I've got an idea :)
Thank you :)
User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

Re: Arc and box, same Z axis height, same parameters size he

Post by hutty »

In almost all 3d games overlapping objects cause a flicker effect.... its not just bz
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1052
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

ONCE AGAIN, the floating point bug.

Post by optic delusion »

This is just one more time I see what I call "the floating point bug". Pi is used in the calculation of an arc, this is what causes the bug.
To make it worse.... sometimes the bug does not appear when the mapper is testing, it only appears when others use the map. One CPU may calculate Pi differently than another.
The only reliable solution is to re-make one object or the other, probably turn the arc into a mesh.
I have heard that if you get out the calculator, and make your arc with perfect math, it will work. However, I would not bet on that.
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
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Arc and box, same Z axis height, same parameters size he

Post by fox in the fog »

Hm.... Ok Optic, i think is going to be a little bit complicated and I'll bear this bug
Thank you for the great information
anomaly
Private First Class
Private First Class
Posts: 220
Joined: Tue Jul 26, 2005 10:32 pm
Location: Gainesville Florida

Re: Arc and box, same Z axis height, same parameters size he

Post by anomaly »

It's called 'z fighting' when two overlapped textures at the same height flicker like that. With each frame one or the other may appear to be on top. I"m not sure better calculations will correct that issue. Usually pi is not calculated by the machine, but rather defined as a specific value by the math library. Although you can calculate it if you wish.
4.0 * arctan(1.0) works fairly well.
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Re: Arc and box, same Z axis height, same parameters size he

Post by trepan »

From the 2.0.14 Changelog:
* Add Options -> Display -> AntiFlicker option - trepan

Only affects boxes and pyramids, iirc. The trick used is to
make coplaner faces use the same texture coordinate space.
The 2.99.x code makes it possible to use a similar setup on
any mesh face is well.
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Arc and box, same Z axis height, same parameters size he

Post by fox in the fog »

But the AntiFlicker options on my bzflag is on...
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Re: Arc and box, same Z axis height, same parameters size he

Post by trepan »

Reread my message, as many times as is necessary.
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Arc and box, same Z axis height, same parameters size he

Post by fox in the fog »

I Have reread your message, and I have understand what you meant. Now the problems is... how do that?
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: Arc and box, same Z axis height, same parameters size he

Post by JeffM »

trepan wrote:Only affects boxes and pyramids,
No.. you didn't read it.
ImageJeffM
User avatar
fox in the fog
Private First Class
Private First Class
Posts: 237
Joined: Fri Aug 06, 2010 7:21 am

Re: Arc and box, same Z axis height, same parameters size he

Post by fox in the fog »

Ah... sorry, but i'm not an English man, i reread this message many times, but i didn't understand exactly the literally meaning. Thought another thing :( But now is ok :)
Post Reply