Musings, ramblings, rantings about technology, games, puzzles, and whatever else catches my attention.
Saturday, July 13, 2013
Fireworks
Just a debug screenshot, but it looks like they're celebrating with fireworks. And I'm celebrating, too, because I got the particle systems working in the shader. Guh, 3d math can be confusing, but I figured out what was going wrong.
No time to explain, but it's important to add your vectors in the correct space, and if you're dividing by w, which is how the perspective transform works, and if you're tinkering with vertex coordinates in screenspace, that means that you have to divide by w before applying your screenspace tinkering, which means you have to do the division by hand. Not a big deal, but I just wasn't seeing it for most of the afternoon.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment