Submitted by , posted on 25 July 2001



Image Description, by


i submited the pic to show u a blockout game i'm trying to make...since a couple of months...

i'm using dx for input (and maybe sound in the future) and have a very lame render function... my first try was to compose the level of solid cubes, but now every time a block is dropped i'm building a list of quads to be drawn to create a solid shape of the current level....

it still get's slow when u look at it from downstairs (due to the high occlusion and the fact that everything depends on gl's depth test), but with the new algo the fps stays above 30

this is my first object oriented program, my first c++ program and my first ogl program... i've learned a lot in those months and many times when i read bout "the right approach" to sth it was often to late becouse i've already implemented a stupid (but my own ;))) solution...

(if u care to look at the source u'll rotfl of the "stos" class (in obroty.h) wich hold's every rotation the block has been through to prevent a gymbal lock)

exe: www.astercity.net/~gzesio/blok.zip
(use the arrow keys, space and q,w,e to move and rotate, 1,2 to change levels and hold x to change the view)
src: www.astercity.net/~gzesio/bloksrc.zip

big thanks to all of u and nehe (the vc workspace is still called lesson2)

pozdroofki



[prev]
Image of the Day Gallery
www.flipcode.com

[next]


 


Copyright 1999-2008 (C) FLIPCODE.COM and/or the original content author(s). All rights reserved.
Please read our Terms, Conditions, and Privacy information.