2d sprites

68 views
Skip to first unread message

Mop Krayz

unread,
Nov 19, 2015, 2:55:33 AM11/19/15
to fplbaselib
Any plans of implementing a 2d sprite system?

or is fplbase only 3d?

Stewart Miles

unread,
Nov 19, 2015, 3:00:50 AM11/19/15
to Mop Krayz, fplbaselib
If you can render 3d, 2d is a breeze.  For example, FlatUI sets up an orthographic projection matrix for 2D rendering using fplbase.  Already interested in giving it a try?

Cheers,
Stewart

On Wed, Nov 18, 2015 at 11:55 PM, Mop Krayz <mopk...@gmail.com> wrote:
Any plans of implementing a 2d sprite system?

or is fplbase only 3d?

--
You received this message because you are subscribed to the Google Groups "fplbaselib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fplbaselib+...@googlegroups.com.
To post to this group, send email to fplba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fplbaselib/1e255e76-662a-477f-9c8a-224adc7f2b10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mop Krayz

unread,
Nov 19, 2015, 3:44:30 AM11/19/15
to fplbaselib
i was already looking at sdl as a cross platform possibility
so this fplbase really comes as a welcome surprise at the right time

the only thing that was a ? in sdl was the 2d sprite support

i would like to see if fplbase gains enough interest from devs, that someone builds a 2d sprite system on top

Gerry Fan

unread,
Nov 19, 2015, 1:30:35 PM11/19/15
to Mop Krayz, fplbaselib
seems you are asking some sort of sprite lib or 2D lib on top of the fplbaselib to attract more developers?

--
You received this message because you are subscribed to the Google Groups "fplbaselib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fplbaselib+...@googlegroups.com.
To post to this group, send email to fplba...@googlegroups.com.

Mop Krayz

unread,
Nov 19, 2015, 1:44:10 PM11/19/15
to fplbaselib

Many devs go to SFML as it has a 2d sprite lib, whilst SDL does not.

So if FPLbase can change that, then I bet a lot of devs will find interest in FPLbase as SDL is more solid when it comes to multiplatform

Let's wait and see if this will gain any traction

Wouter van Oortmerssen

unread,
Nov 20, 2015, 2:29:55 PM11/20/15
to fplbaselib
Right now, rendering sprites is relatively easy (see documentation for more detail):

  • Set up an ortho matrix
  • Append matrices that represent 2d rotation/translation/scaling if necessary.
  • Set shaders & textures as usual.
  • Use e.g. the convenient Mesh::RenderAAQuadAlongX to render a quad.
I agree that's not quite convenient enough though, and besides wrapping the above in more convenient functions, some batching (using instancing) to make it efficient for large numbers of sprites would be great.

It's a common enough use case that it be nice to have as part of FPLBase.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages