Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: ninogenio on April 09, 2007

Title: Particles
Post by: ninogenio on April 09, 2007
Heres a preview of the particle engine im going to use in my new game its takin quite a while to code this ive had to read a fair few tuts but its going quite well ive put programable emmiters in the engine that are quite flexable also theres preprogramed emmiters for basic effects such as explosions and sparks.

ive not put the source up just yet as im still working on the game but the source will come soon.
Title: Re: Particles
Post by: docgen on April 09, 2007

Very promisingly work. The sharing of the source will be great! Thx in advance! :)

Greetings
stef
Title: Re: Particles
Post by: Shockwave on April 09, 2007
Looks very nice indeed, needs to be used in a demo and not just a game though ;)
Title: Re: Particles
Post by: rdc on April 09, 2007
Looks good.
Title: Re: Particles
Post by: benny! on April 09, 2007
Looks groovy!
Title: Re: Particles
Post by: .:] Druid [:. on April 09, 2007
Really interresting, keep it up!

ANd i second shockie:  Why only in games? :)
Title: Re: Particles
Post by: ninogenio on April 10, 2007
heres where its at now im still working on it but its almost there so source coming soon

i do plan on making some gl demos but im too into making this game right now.

some techy info this demo uses three emmiters each one producing 1000 particles.
Title: Re: Particles
Post by: ninogenio on April 10, 2007
well i think im just about done so heres the source it also includes the engine for my game so disregard that all the particle stuff is in the .bas file feel free to use any of this stuff for your own purposes btw.

have a tinker with the values some of the stuff its possible to create is cool.


Title: Re: Particles
Post by: Shockwave on April 10, 2007
It is really impressive Nino. Very kind of you to share it too so have some K+ , not for writing a game though, anyone can do that! You should be using this engine to make some demo for a party.
Title: Re: Particles
Post by: ninogenio on April 10, 2007
cheers shockwave :)

i definately love creating demos and ive loads and loads of ideas going on im planing on dual releasing these demos between visual c++ and the psp.

but for now i must get this game off my back ive been working on it for months lol.
Title: Re: Particles
Post by: docgen on April 10, 2007
Hi!

Works fine! Thx again!

Posted by: Shockwave
Quote
It is really impressive Nino. Very kind of you to share it too so have some K+ , not for writing a game though, anyone can do that! You should be using this engine to make some demo for a party.

Great! :)
Title: Re: Particles
Post by: mike_g on April 10, 2007
Nice particles nino :)
Title: Re: Particles
Post by: Jim on April 10, 2007
It's very impressive.  For some reason on my work PC, it runs at 0.01fps, but it's fine here at home.

Jim
Title: Re: Particles
Post by: ninogenio on April 11, 2007
cheer for the comments guys!

@jim thats strange, it could be the way ive coded it and the card on you works comp doesnt like it. actually there are some things like the call to glbegin(gl_quads) glend and glpush/popmatrix that are inside the for loops that might be causeing some slowdown also i should really be using trianglestrips or vertex arrays.
Title: Re: Particles
Post by: ninogenio on April 11, 2007
actually could someone mabey hav a little look through my code and see if theres anything glaringly obvious that might make some gfx cards grumble.

i just tested this on my dads pc and its way faster than on my laptop but my laptop seems heaps faster at playing games and rendering stuff in dx?.

on the laptop when you bring the particles anywhere near 0 on the z position it grinds almost to a halt but again on the test pc it runs just as happy.

test pc 128m geforce 4 ti4600
laptop 129m intel 900 gma integrated graphics.
Title: Re: Particles
Post by: Jim on April 11, 2007
If I can find the time, I'll see if I can work out what's going on.

Jim
Title: Re: Particles
Post by: ninogenio on April 11, 2007
cheers jim :)