[fpc-pascal] GLM library alternative?

Anthony Walter sysrpl at gmail.com
Tue May 30 13:07:05 CEST 2017


Marco,

Regarding 2D animation, what I've far far more effective than an
orthographic projection is to draw 2D billboard sprite at a distance and
size to align exactly with your screen's resolution. That is each width and
height of "1" gl world equals "1" screen pixel, and coordinate (0, 0)
equals the top left corner of your screen.

This type of 2D setup in OpenGL allows for allows you to freely mix in both
2D and 3D effects. Here's are two examples of how 2D in a 3D world can work:

Card Games: https://www.youtube.com/watch?v=lOUB4pqRLjY
Animation of vector graphics: https://www.youtube.com/watch?v=P1cd-kWBz0E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170530/54a5c343/attachment.html>


More information about the fpc-pascal mailing list