6 responses to “Source Code: Particle Based Explosions In iPhone OpenGL ES”

  1. Paul

    Hi thanks for this, its exactly what I needed. I've tried to incoporate the particle emitter into my project and the points are just coming out as squares, its like they are ignoring the texture. All of my other elements are drawing ok, so I'm wondering if its a combination of my view setup and the VBO's (which I've never used before). From my bad description does anything jump out at you at what I could be doing wrong?

    Thanks

  2. maniacdev

    Offhand, I would say it sounds like it cannot find the files.

  3. Paul

    I got it working in the end, think is was my texture settings, but now I get a weird effect that some of the particles appear in the top left of the screen (phone is landscape, button to the right) and very large, I keep thinking that maybe its some data not being cleared down properly as it only happens on the phone and not in the simulator :(

  4. Paul

    Interesting I've tested my app on a 3G and I don't get the problem, but on the 3GS I do.

  5. Paul

    OK, just in case anyone else hits this problem, turns out it was a value I was passing to the emitter, I set the particleSize to 5.0f and the effect occurs.

    Still a great particle emitter though :)

  6. maniacdev

    Thanks Paul, good to know.

Leave a Reply

CommentLuv Enabled