Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Particle Sprites

Author
Message
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 28th Mar 2007 23:16 Edited at: 22nd Aug 2010 23:31
Particle Sprites

In these shots you can see that particle->mesh creation has been implemented in PlayBasic. Shot one has a single 1000 particle sprite, where shot #2 has 10 of them on screen.

Each particle has it's own local speed & force modifiers. But you'll also be able to set the size / UV mapping + rotation of each particle (2D&3D).

With rotation,the particle fragments can spin locally. This will make for some very interesting results. The down side of lots of contols is that Initializing a particle becomes a little more complex, plus there's more overhead per particle. But it'll certainly be worth the effort.





Note: This is sample code written for the current PB1.68h alpha, it's highly unlikely to the work in the future editions.

Note: Old Download removed (2010) visit www.PlayBasic.com

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 28th Mar 2007 23:17 Edited at: 22nd Aug 2010 23:31
Shadow heart
19
Years of Service
User Offline
Joined: 2nd Dec 2006
Location: US
Posted: 29th Mar 2007 03:29
there nice, this was used during playbasic eh.



reclaim your innocence not your pride
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 29th Mar 2007 16:36 Edited at: 22nd Aug 2010 23:32
Yeah, this is one of the new additions that can be found in the next PlayBasicFX updates (V1.70 and above). Which should be available very soon now.



Note: Old Download removed (2010) visit www.PlayBasic.com

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 29th Mar 2007 17:44 Edited at: 22nd Aug 2010 23:32
Particle Sprites Cont #4

This new shot shows that particles can be locally coloured, locally rotated (3D XYZ) and scaled. Since they have scaling, then we don't really need modifiers for the size. You'll have to init the scale/size of the particle though (otherwise you won't see it!). Particle size doesn't necessarily have to correspondent with the image dimensions however.


Note: Old Download removed (2010) visit www.PlayBasic.com

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 29th Mar 2007 18:23 Edited at: 22nd Aug 2010 23:33
In the previous example the faces rotate on the Z axis only, in this one we can see the 3 axis rotation.

Note: Old Download removed (2010) visit www.PlayBasic.com

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 29th Mar 2007 20:53 Edited at: 22nd Aug 2010 23:34
Here's another pic, this time I'm messing around with Scale + Rotation + Speed + Force modifiers.

Note: Old Download removed (2010) visit www.PlayBasic.com

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 30th Mar 2007 00:08 Edited at: 22nd Aug 2010 23:34
Particles in 3D

These shots view the particle sprite in 3D space. The first shot is taken from deep inside the volume and the second is from far outside of it.



Note: Old Download removed (2010) visit www.PlayBasic.com

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 30th Mar 2007 00:08 Edited at: 22nd Aug 2010 23:35
pic #2


Note: Old Download removed (2010) visit www.PlayBasic.com

Shadow heart
19
Years of Service
User Offline
Joined: 2nd Dec 2006
Location: US
Posted: 30th Mar 2007 01:45
very nice i really liked the "particles in 3d"




Your signature has been erased by a mod because it was way too big.
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 30th Mar 2007 22:38 Edited at: 22nd Aug 2010 23:35
Particle Sprites Cont - UV Mapping

In this shot you can see that each individual particle can be UV mapped. You could use this to store various textures on the same surface, or when exploding an image. In this example it's just randomly assigning each face some UV coords.


Note: Old Download removed (2010) visit www.PlayBasic.com

Login to post a reply

Server time is: 2026-07-05 00:49:04
Your offset time is: 2026-07-05 00:49:04