Fun with ID3DXFont

posted in DruinkJournal
Published August 04, 2006
Advertisement
Well, I've been playing with ID3DXFont a bit, and I've found that it really doesn't do anything fancy render-wise at all.

I implemented my own ID3DXSprite to pass to ID3DXFont::DrawText(), because initially I wanted to do Z-sorting. Then I realised that I could just capture all the draw calls, buffer them, and then draw them with my scene graph.
I haven't had a chance to test this properly (I've been trying to set up a wireless router, and failing) but there's no reason why I can't use ID3DXFont::DrawText to essentially do a render to texture, and then use my sprite class to render quads using those textures.

That means that I can now render text as engine-object sprites, and the textures can be managed by the texture manager. And that means that if I'm only rendering sprites in the scene (Which I am, no 3D support just yet), and I'm not using a huge number of textures (Again, for my GUI test with a background I use up less than half of one texture sheet) I can render the entire scene in one DrawPrimitive call, and zero texture and state changes. That should utterly beast my performance through the roof - and indeed on my laptop I got from 70FPS up to 82FPS, which I'm pretty pleased with.

In other news, a thread got me thinking about 64-bit compiling. I have 2 64-bit machines, my main PC which is a dual core AMD64, and my server which is a 64-bit AMD with Windows XP x64. The only reason I haven't done 64-bit development is that you need to screw around with the command line tools, and I can't stand doing that on non-trivial projects. And for trivial projects there's no point in doing 64-bit versions.

Now, the real dillema.

VS2005 Standard is free in the US, and does x64 compiling. In the UK, from Amazon, it costs GBP216.99 ($413.97). There's no way I'm paying that much for some software, let alone something that may well be free in a month or two. However, one of my MVP benifits is access to the Microsoft Company Store, where I can get VS2005 Standard for $60 (GBP31.45). The disadvantage with that is that I can't top up my MS Store account, and I only have $150 to spend each year I'm nominated as an MVP. And I'd really like to get a copy of Vista when it comes out, which should be a fraction of the price from the MS Store.
Also, VS2005 Professional is $120 (GBP62.90) from the MS Store. From Amazon it's an utterly rediculous GBP599.99 ($1,144.40). However, it has absolutely nothing of use to me that the Standard edition doesn't have (Not even slightly).

I really don't see why software is so expensive in the UK. It's half the price on Amazon.com.

Anyway, my options:

  1. Don't buy any version of VS2005. Wait for it to come out free in the rest of the world / Europe

  2. Buy VS2005 Standard and hope that Vista is less than $90 from the MS Store

  3. Just buy VS2005 Standard. Vista won't be out this year anyway.

  4. Go postal and kill everyone in the neighborhood with sharpened MSDN CDs and then blame my rage on rising software prices and the stress and excessive work involved in being in the games industry

  5. Don't use VS2005, use GCC, you Microsoft loving communist hippy shit


What do I do?
Previous Entry LOL. SPAM.
Next Entry Untitled
0 likes 7 comments

Comments

ukdm
Is there an reason you can't stick with Visual C++ .NET 2003? You get it free with a certain book and the optimising compiler is a free download meaning you can get it for less than £30.
August 04, 2006 04:20 PM
Evil Steve
Quote:Original post by ukdm
Is there an reason you can't stick with Visual C++ .NET 2003? You get it free with a certain book and the optimising compiler is a free download meaning you can get it for less than £30.
VC2003 doesn't do 64-bit stuff. Well, not as nicely as I'd like. I've found it is possible, but it's a pain to do. VC2005 Standard would also let me switch between 32 and 64-bit nice and easily.
August 04, 2006 04:37 PM
Elektron
option 4
August 04, 2006 05:35 PM
jollyjeffers
Definitely #4 - go postal [evil]

Although, why aren't you using the MSDN disks? First thing I did when I got my subscription was to install updated versions of VStudio (VS'03 Enterprise Architect at the time). I'm using VS'05 Professional on a regular basis and I was using VSTS'05 for a while.

The whole point of the MSDN subscription is so you can develop software...

Jack
August 05, 2006 08:55 AM
ukdm
The I'd say at least experiment with GCC, if you don't like it all you've lost is a bit of time and gained a bit of knowledge about why you don't like GCC :-)
August 05, 2006 08:57 AM
Evil Steve
Quote:Original post by jollyjeffers
Definitely #4 - go postal [evil]

Although, why aren't you using the MSDN disks? First thing I did when I got my subscription was to install updated versions of VStudio (VS'03 Enterprise Architect at the time). I'm using VS'05 Professional on a regular basis and I was using VSTS'05 for a while.

The whole point of the MSDN subscription is so you can develop software...

Jack
HNNGGGGGG

I always forget about my damn MSDN disks. The only thing I really use from them is the updated SDKs, just to save me downloading them.

I'm installing VS2005 Pro now [grin]
August 05, 2006 09:54 AM
Sonnenblume
Why dont you just buy it off Amazon.com and get it shipped over here? If for some reason you can do it yourself I would do it for you.
August 06, 2006 05:28 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement