Posts Tagged ‘opengl’

Stipple Slip

Tuesday, December 16th, 2008

I read a tutorial the other day on OpenGL and it mentioned line stippling. I didn’t know OpenGL could do that but apparently it can! I’ve since added it to a few places in LevelEd and I love how it looks! Here’s a pic of a selected trigger that uses stippled lines to indicate which entities it is targeted at:

picture-1

Speaking of LevelEd, I think the fallout from the recent code re-factoring has finally started to subside. The editor broke in many and varied ways that I didn’t notice until I actually tried to build something in it. Yargh!

I’m just about ready to get going, in earnest, on PAKEd. I want to get the table of contents displaying in an NSOutlineView over the next few days. Wish me luck!

GlDrawFastAsHell

Tuesday, April 29th, 2008

I took some time off from my remix level to look at the ToeTag source again. The editor was getting a little choppy when the entire level is visible and I wanted to see what I could do to fix that.

The answer, it seems, is glDrawArrays. Holy crap! It takes some massaging of the data each frame to get it into contiguous arrays but, man, once it’s in there you can blast polygons to the video card. I can now work on my level with the whole thing visible. There are lots of places I can leverage glDrawArrays still so it will only get faster in the future.

Once I get as much as I can drawing through arrays, I’ll post a new version of ToeTag.

Very happy!