LOL. SPAM.

posted in DruinkJournal
Published August 04, 2006
Advertisement
My forum has been getting more and more spammers recently, so I'm going to do something to the phpbb code this weekend (Well, in theory). I'll put one of those "Please type the letters you see above" validation things on the posting page for guests, and on the register page. I've never written one before, but I doubt it'll be too hard. And there's probably free ones out there I can use or base the code on.

Dev stuff: I discovered that my textures weren't being reused. My resource manager won't load the same texture twice, it'll just return the same one (Unless you explicitly tell it not to). That makes sharing resources transparant. However, the texture manager doesn't. So you load texture A from the resource manager and add it to the texture manager. It adds it to the texture sheet and returns. You then load texture A again and add it to the texture manager. The resource manager returns the stored texture, but the texture manager inserts another copy into the texture sheet.
Anyway, that's fixed now.

Also, ID3DXFont stuff - I'm in the process of writing my own derived ID3DXSprite to do the font rendering. I'll wrap that up into a sprite object in my scene, which should help with batching even more. I don't know if it'll work, it'll be easy enough to test. The main reason is that I can't get ID3DXFont to use the Z buffer. I guess there's a way, but I don't know. Implementing a wrapper around ID3DXSprite would do it (I can manually changethe Z coords), but then so would going the whole hog.

Sprite animation is done too, you can specify several frames for a sprite and change between them. It's all optimized so it won't touch the scene graph unless it really needs to (If the actual texture pointer changes). I could perhaps do with trying to force a sprite to keep all of it's animations on one sheet, but I don't think that's at all important. It's up the game code to actually animate the sprite, which makes sense.

Anyway. Work time...
Previous Entry Untitled
Next Entry Fun with ID3DXFont
0 likes 2 comments

Comments

Ravuya
Writing captchas isn't hard. Maybe you should use KittenAuth.
August 04, 2006 06:55 AM
Evil Steve
LOLOLOLOLOL Hacking about, watching what ID3DXFont does is sexual. I'll submit a journal entry when I get home. I just jumped up from 70FPS to 82FPS by doing my own text rendering through intercepting ID3DXFont draw calls [grin]
August 04, 2006 08:03 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement