May 7, 2003

Printing

The new printing architecture is working, but we have scaling problems due to nsIDeviceContext doing some wacky stuff. Most pages print fine, but a few of them just have hugeass font sizes. It also looks as though pages that go off the edge of the viewport are having some shrinkage problems (part of the page is horizontally clipped on cnn.com for example).

Posted by jkeiser at 3:27 AM | Comments (12)

OpenGL Again

Progress made. Lighting is all on, and I figured out the problem that was bringing my frame rate down so drastically (not sure *why* yet though): lighting. If you set the light position before you set the camera, that's bad anyway because the position is messed up, but not only that, it must be recalculating its position for every vertex or something. Still got a few white lines (which go away when you remove specular light) but the problem is not as noticeable as it was before. This took a lot of dang debugging time and a lot of reading to figure out. On the plus side, during that reading I learned a lot about vertex and pixel shading programming, which is pretty cool shit.

New things include full camera control with flythrough and an untested smooth camera follow; a lighting model minus spotlights. Metal highlights are working. I have no idea what I'm going to do with terrain yet, but it's time to tackle that along with terrain collision detection. Then a skybox and (shudder) shadows.

I wonder if moving the light around like the sun will cause the same performance problems.

Posted by jkeiser at 3:22 AM | Comments (10)