from creation to application

Questions and answers about the how and why of making maps.
Post Reply
User avatar
OO7
Private First Class
Private First Class
Posts: 113
Joined: Fri Aug 26, 2005 6:45 pm
Location: <classified>
Contact:

from creation to application

Post by OO7 »

OK, if i have a map with just one box, and i play that map with bzflag,
how does it create the inside of the box that you see with oo?
User avatar
knoxkorner
Private First Class
Private First Class
Posts: 112
Joined: Sat Aug 26, 2006 7:24 pm

Post by knoxkorner »

i do think its automatic



Like in the two wall with 00 you drive and it has these triangles?
User avatar
Zelgadis
Private First Class
Private First Class
Posts: 638
Joined: Sat Jul 02, 2005 2:31 pm
Location: European Union

Post by Zelgadis »

you mean, when you drive inside the box with OO that oyu can look out??

When you meant this, then my answer is: its automatic created :D
Want to improve your skill? Join the http://guleague.org!
User avatar
Da Best
Private First Class
Private First Class
Posts: 110
Joined: Fri Feb 10, 2006 11:44 pm
Location: Inside Your brain

Post by Da Best »

Yes, You don't have to do anything, it's completely auto ; )
User avatar
OO7
Private First Class
Private First Class
Posts: 113
Joined: Fri Aug 26, 2005 6:45 pm
Location: <classified>
Contact:

Post by OO7 »

no, i know it is automatically created.
what im trying to find out is how bzflag creates it that way, so that you could put the same thing in ANY object
User avatar
Da Best
Private First Class
Private First Class
Posts: 110
Joined: Fri Feb 10, 2006 11:44 pm
Location: Inside Your brain

Post by Da Best »

Umm, i don't think we know that, ask the developer?
User avatar
OO7
Private First Class
Private First Class
Posts: 113
Joined: Fri Aug 26, 2005 6:45 pm
Location: <classified>
Contact:

Post by OO7 »

whos that?
User avatar
Da Best
Private First Class
Private First Class
Posts: 110
Joined: Fri Feb 10, 2006 11:44 pm
Location: Inside Your brain

Post by Da Best »

the people who made the game? :roll:
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

OO7 wrote:what im trying to find out is how bzflag creates it that way, so that you could put the same thing in ANY object
BZFlag draws this in OpenGL (as is everything else) - which is hardcoded into the application (along with the tank models, etc). With some fancy mesh work, I'm sure you could reproduce this effect but with different objects.

I wouldn't have the slightest clue how to go about that, though.
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
User avatar
Da Best
Private First Class
Private First Class
Posts: 110
Joined: Fri Feb 10, 2006 11:44 pm
Location: Inside Your brain

Post by Da Best »

there you go ;) A meteorite is smarter than me :shock:
User avatar
OO7
Private First Class
Private First Class
Posts: 113
Joined: Fri Aug 26, 2005 6:45 pm
Location: <classified>
Contact:

Post by OO7 »

when i asked who the developers where, i was looking for names.
A Meteorite wrote
BZFlag draws this in OpenGL (as is everything else) - which is hardcoded into the application (along with the tank models, etc). With some fancy mesh work, I'm sure you could reproduce this effect but with different objects.
im trying to find the process that is hardcoded into bzflag that handles the creating of the insides of the boxes.
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

OO7 wrote:when i asked who the developers where, i was looking for names.
For a start, you can join #bzflag on irc.freenode.net. This is where all the developers hang out. Some people to ask would be JeffM2501, DTRemenak, and brlcad.
OO7 wrote:im trying to find the process that is hardcoded into bzflag that handles the creating of the insides of the boxes.
OpenGL code inside the source would not be able to be ported to a map file.
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
User avatar
LouMan
Chief Sgt. of Cartography
Chief Sgt. of Cartography
Posts: 338
Joined: Mon Jan 31, 2005 3:05 am
Location: Michigan, USA

Post by LouMan »

You can use inside coordinates to define the 'inside' of a mesh object in a map file (.bzw). Just be sure that the point defined is actually inside the object, with no 'holes' - otherwise the entire outside of the object could be considered 'inside' and strange things happen.

Use the 'inside' statement with the mesh definition, more than once if required. For example, here is a simple box with a single inside coordinate defined (since this coordinate is able to 'see' the entire inside of the box, it's all that's required):


mesh
#8 vertices, 12 faces

inside 0 0 0.5
vertex -0.50000000 -0.50000000 1.00000000
vertex -0.50000000 -0.50000000 0
vertex -0.50000000 0.50000000 0
vertex -0.50000000 0.50000000 1.00000000
vertex 0.50000000 -0.50000000 1.00000000
vertex 0.50000000 -0.50000000 0
vertex 0.50000000 0.50000000 0
vertex 0.50000000 0.50000000 1.00000000
normal -0.57735027 -0.57735027 0.57735027
normal -0.66666667 -0.66666667 -0.33333333
normal -0.33333333 0.66666667 -0.66666667
normal -0.66666667 0.33333333 0.66666667
normal 0.33333333 -0.66666667 0.66666667
normal 0.66666667 -0.33333333 -0.66666667
normal 0.57735027 0.57735027 -0.57735027
normal 0.66666667 0.66666667 0.33333333

matref MaterialName
face
vertices 0 3 1
normals 0 3 1
endface
face
vertices 0 4 3
normals 0 4 3
endface
face
vertices 1 3 2
normals 1 3 2
endface
face
vertices 1 4 0
normals 1 4 0
endface
face
vertices 1 5 4
normals 1 5 4
endface
face
vertices 2 5 1
normals 2 5 1
endface
face
vertices 2 6 5
normals 2 6 5
endface
face
vertices 2 7 6
normals 2 7 6
endface
face
vertices 3 7 2
normals 3 7 2
endface
face
vertices 4 7 3
normals 4 7 3
endface
face
vertices 5 7 4
normals 5 7 4
endface
face
vertices 6 7 5
normals 6 7 5
endface
end
User avatar
OO7
Private First Class
Private First Class
Posts: 113
Joined: Fri Aug 26, 2005 6:45 pm
Location: <classified>
Contact:

Post by OO7 »

THANK YOU! that is EXACTLY what i was looking for! :D
almost feels like one of those :doh: moments, it makes sense immediately, and it works.
User avatar
DTRemenak
General
General
Posts: 625
Joined: Thu Jan 16, 2003 4:54 am
Location: U.S.
Contact:

Post by DTRemenak »

OO7 wrote:when i asked who the developers where, i was looking for names.
See the aptly named "developers" group: http://my.bzflag.org/bb/groupcp.php?g=1235
Post Reply