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! / Sprite Entities

Author
Message
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 6th Mar 2007 04:38 Edited at: 28th Mar 2011 04:54
Sprite Entities

The following pics represent a new feature in PB, Sprite Entities. What are they you ask ? Their a type of sprite that contains a mesh. Each mesh has it's own set of vertex and face definitions. This allows sprites to be built into more complex shapes / structures than a traditional quad allows.

Bellow each sprite is set up with it's standard frame plus 10 each faces attached + offset from it. So each sprite entity is basically the equivalent (in terms of drawing) of 11 old sprites. You can have as many faces in the sprite as you like.

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 6th Mar 2007 04:40 Edited at: 28th Mar 2011 04:56
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 6th Mar 2007 04:41 Edited at: 28th Mar 2011 04:56
This effect is made from 100 entity sprites, each with 250 faces (32*32 in size) (100*250*2 =50k triangles). The faces are 2 pixels apart, so that they overlap each over, creating a laser effect when drawn using the spark particle image + alpha addition.

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 7th Mar 2007 19:03 Edited at: 28th Mar 2011 04:56
Sprite Entity Work Continues

Entities allow you to take the sprite and build more complex meshes from it. In this tiny example, we're taking single frame sprite and adding a bunch of frames to form a ring of sprites out of 1 sprite . These can then be rotated, scale, moved, and ultimately even collided with !






Login to post a reply

Server time is: 2026-07-05 18:13:57
Your offset time is: 2026-07-05 18:13:57