On Sun, Jan 4, 2009 at 11:09 AM, Casey Duncan <
casey....@gmail.com> wrote:
> On Sun, Jan 4, 2009 at 5:32 AM, Ozan Sener <
them...@gmail.com> wrote:
> [..]
>> It worked, thanks. But didn't work as I expected, looked ugly. Isn't
>> there an easy way to use 2d particles in pyglet, like in pygame example?
>
> I imagine it looked ugly because there was no perspective anymore,
> those examples were tweaked quite a bit to look good in 3D, I expect
> that different tweaks will be required for 2D.
>
> To answer your question: yes, but not knowing exactly what you want it
> to look like I can't say exactly how difficult it will be. It will not
> be easy to replicate the 3D effects exactly in 2D, it might be easier
> to draw your sprites in a 2D projection and draw the particles in 3D
> -- this type of mixing of projection is fairly common. But then again
> it should be possible to create nice looking explosions and whatnot in
> 2D, though probably not quite as good as the 3D versions.
Attached is a 2d version of splode, which I think looks pretty good.
Major differences include:
- Use the default pyglet 2D projection
- Made all particles larger, spark sizes are now from a fixed set to
avoid distortion
- Increased velocity deviations quite a bit
- Added a growth controller to the fire to compensate for lack of perspective
- Made the fire particles rotate a bit faster
I CC'd the mailing list for posterity in case anyone one else is
interested. I'll probably add this to the "official" examples as well.
-Casey