OpenArena Message Boards

OpenArena => General => Topic started by: hyp3rfocus on July 15, 2007, 05:16:00 AM



Title: showtris - see how the map is made
Post by: hyp3rfocus on July 15, 2007, 05:16:00 AM
hi,

useful tip if you are interested in how maps are made. if you start a map in the console with \devmap then you can use the r_showtris command to superimpose a wireframe over what you see. to switch it on use...

\r_showtris 1

...and to turn it off use...

\r_showtris 0


Title: Re: showtris - see how the map is made
Post by: CorteX on July 15, 2007, 06:58:21 AM
Quite nice! Thx for this.. Whats most interesting is seeing when things actually get drawn :D Is there an option to not look through the walls, iow to make the wireframe just draw itself where you would actualy see it?

Edit: it even draws the console wireframed, lol. Hows that :S


Title: Re: showtris - see how the map is made
Post by: hyp3rfocus on July 15, 2007, 03:46:05 PM
Quote
Is there an option to not look through the walls, iow to make the wireframe just draw itself where you would actually see it?

i don't think so, but that's an interesting point. showtris only shows you what the engine is actually rendering, the less unnecessary detail you see, the better the map has been set up.


Title: Re: showtris - see how the map is made
Post by: Taiyo.uk on July 15, 2007, 08:06:52 PM
Edit: it even draws the console wireframed, lol. Hows that :S
They are 3D too. Remember, GL (and the parts of your graphics card that accelerate it) only knows how to draw 3D. 2D elements such as the HUD and text (open the console with triangles on) are simply drawn using triangles that are parallel with the screen plane.


Title: Re: showtris - see how the map is made
Post by: CorteX on July 16, 2007, 01:54:01 AM
Edit: it even draws the console wireframed, lol. Hows that :S
They are 3D too. Remember, GL (and the parts of your graphics card that accelerate it) only knows how to draw 3D. 2D elements such as the HUD and text (open the console with triangles on) are simply drawn using triangles that are parallel with the screen plane.

Hmm interesting, I never tought about it like that tbh. I just had in mind that the console would be some 'overlapping' 2D piece, like a window which comes dropping down. Kewl..


Title: Re: showtris - see how the map is made
Post by: hyp3rfocus on July 16, 2007, 01:08:50 PM
here's a screenshot i took where the game engine had to render what seemed like the entire map at once. which kills the framerate.


(http://img33.picoodle.com/img/img33/9/7/16/f_screenshotm_aae4ed2.png)


Title: Re: showtris - see how the map is made
Post by: w1zrd on July 17, 2007, 09:26:52 AM
Too bad that you need /devmap for it to work, I would have loved playing OA like that...
Kills framerate? That's where I usually end up with my fps counter in ffa :)


Title: Re: showtris - see how the map is made
Post by: hyp3rfocus on July 17, 2007, 11:06:23 AM
Quote
Too bad that you need /devmap for it to work, I would have loved playing OA like that...
interesting idea, you could always open the console again and use the addbot command.