?

Log in

No account? Create an account

Previous Entry | Next Entry

opengl texture help???

I'm trying ye olde tetris in opengl, with glut.

I have big plans, but first there are amazingly big obstacles.

I have the basic gameplay fine, but I want to do some "demo" effects in the background (for starters).

So I made a texture (in code), and wrote to it... and that seems fine... and I can even, sometimes, display it... I'm copying some lame "blurring" code that seems to work all right, but it's not working at all when I try to chop it into my own code. At this point, I've been up 30 hours and I'm completely lost. If anyone would be willing to look through my hellcode, I'd really appreciate it.

I don't much even care what effect I get. I just want to be able to see something written to the texture, and _stay_ there for a couple dozen frames. preferably fading out in a really pretty manner, but...

I probably should have stepped through the billion tutorials, but I was doing so well up until here. And I have stepped through a couple of million. Just not hitting the right ones, or. Or or or.

...

code -- http://erif.org/temp/fallingup.c

Comments

( 4 comments — Leave a comment )
tjernobyl
Dec. 22nd, 2003 11:37 pm (UTC)
Try checking into 'flame' code. Blur techniques from there might be different but still applicable...
kaolinfire
Dec. 22nd, 2003 11:42 pm (UTC)
The blur (and whatnot) techniques I have... well enough, at least, to start with.

What I'm really not having is... blitting to an opengl texture... then rendering that isometrically... then updating the texture... repeat.
nibot
Jan. 3rd, 2004 04:54 am (UTC)
something kind-of, sort-of related (but not really) that you might find interesting and might be able to help with hugging numbers problem.
kaolinfire
Jan. 3rd, 2004 02:43 pm (UTC)
I hate you. Just wasted two hours of my life on that, and made very little progress. (longer note, but not much longer, posted in the above journal entry).
( 4 comments — Leave a comment )

Latest Month

February 2016
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
2829     

Tags

Powered by LiveJournal.com
Designed by chasethestars