big post + act finished + more 3D materials

January 3, 2009


I haven’t posted in forever!  This is because of the following:

  • One of my best friends is in a rather nasty jam, and I am helping him.
  • I’ve been a bit more depressed than usual.
  • I’ve been studying for the ACT.
  • I’ve been working hardcore on an elusive problem with getting text to work in Direct3D.  It is a pixel data problem.  More on that later.
  • I’ve been spending time with *sigh* family on the holidays.
  • Reading Isaac Asimov’s Foundation and Empire.  VERY GOOD SCI-FI YOU MUST READ.
  • Sleep disorders are worse than ever.

But hey, you know, life’s still good!  I keep telling myself that anyway.  So really.

I just took the ACT.  It was pretty non-descript, mostly because I didn’t have enough caffiene in my system.  I hope I was still well off enough to do a good job.  My initial response to that was “meh…I’ll pass.”  I don’t really care, as long as it gets me in to college where the real learning begins.

In RAVEN, I’ve gotten a few more material/lighting things working, and I fixed the lighting inconsistencies, at least I believe so.  Per vertex alpha and material alpha both work, depending on whether the UseVertexColor flag is on.  Textures are great.  Here’s a problem for you though, text doesn’t work in Direct3D.  I’ve narrowed it down to the part where I copy the pixel data to the Direct3D textures.  The texture mapping works fine, the textures are valid, and I’ve done some printouts / diagnostics to check to see if the data is actually there when I copy it to the textures, and the answer is yes, it is there.  So everything works… but the copy.  It’s even D3DFMT_A8, just like the text data I copy to it.  One byte per pixel, that byte is an alpha value, am I mistaken?  Lock…memcpy…Release…Index…Render…FAIL!  Just blank quads.  T_T  I don’t know what the problem is, but I do need to slaughter right now!

And yes, I can’t sleep!  This is pissing me off!  I’m an insomniac, but I’ve barely slept at all this past week, and it can’t have helped my performance on the ACT today.  Ah well… life goes on.

Umm… that’s just about it.  Anyway.  I’m resuming normal posting now.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: