Project

General

Profile

Download (9.92 KB) Statistics
| Branch: | Revision:

library / src / main / java / org / distorted / library / main / DistortedScreen.java @ 8c57d77b

# Date Author Comment
8c57d77b 03/31/2023 05:24 PM Leszek Koltunski

Decouple (to a large degree) the OpenGL Library from Android.

2e569ff6 07/15/2022 01:42 AM Leszek Koltunski

license

a889148a 12/17/2021 03:02 AM Leszek Koltunski

Minor.

b48a9939 12/17/2021 12:36 AM Leszek Koltunski

Switch off the OpenGL error debug.

b0ac5b29 12/17/2021 12:34 AM Leszek Koltunski

Important bugfix for the 'cube disappears when its mesh gets changed from nice to simple'.

The reason why recreating an InternalBuffer from within the 'create()' function doesn't work but doing the same from 'createImmediately' does work is not fully understood. Nevertheless the fix is correct in the sense that it...

fca614bf 12/12/2021 12:26 AM Leszek Koltunski

Add a glGetError() call to the main render loop.

b6947445 12/10/2021 11:19 PM Leszek Koltunski

Minor.

c840136b 12/08/2021 01:22 AM Leszek Koltunski

Add info about FPS.

835b197e 05/07/2021 12:06 AM Leszek Koltunski

Move the information when was a EffectQueue last time evaluated from the EffectQueues all the way up to the Node which contains them.
The point: we need to reset this time back to 0 every time we attach the Node (and thus start evaluating the Queues inside)

9ec374e8 11/16/2020 12:04 PM Leszek Koltunski

More support for using the library from more than one activity

aa6e92f2 07/28/2020 10:46 PM Leszek Koltunski

Improve debugging in DistortedScreen

5f35f1cb 06/16/2020 12:19 PM Leszek Koltunski

Only insert the 'Mali r12' FBO queue fix if we actually are running on a Mali GPU with driver version <22. (then FBOQueue=4 - unless we manually overide this down to 1 - else, always 1)

b8f8ef5c 06/09/2020 07:18 PM Leszek Koltunski

New option to display current frame number in the upper-left corner of a DistortedScreen.

b7074bc6 04/13/2020 10:31 AM Leszek Koltunski

Lower requirements - now only OpenGL ES 3.0 is required; if running on such platform, OIT part of the API ( which is the only one which actually requires 3.1) is switched off.

1b059065 03/03/2020 10:03 AM Leszek Koltunski

Correct the Rubik app for the recent changes to the library's Node.

9ecac8cd 03/02/2020 11:12 PM Leszek Koltunski

Size of the FBO internal to Nodes is now NO MORE taken from the Mesh's stretch values.
Instead, the size is copied from child's FBO size (if there is one) or if the child is a leaf with texture in it (which is sizeless) then we get the default 100x100 ( which means we probably have to explicitly call Node.resizeFBO() )

c0f5af7b 02/29/2020 04:00 PM Leszek Koltunski

Fixes for the merge.

044b5494 02/26/2020 10:23 PM Leszek Koltunski

Move the Effects.setStretch to Meshbase.setStretch

c90aca24 02/26/2020 03:52 PM Leszek Koltunski

Move the 'pre-multiply mesh before applying any effects' thing from [(Xsize of texture, Ysize of texture) x Mesh's zFactor] to Effects.setStretch(sx,sy,sz)

ece89b28 02/15/2020 01:02 AM Leszek Koltunski

Adjustment to Static's API.

46b572b5 05/03/2019 10:46 PM Leszek Koltunski

Correct the Legal notice.

7602a827 05/02/2019 10:41 PM Leszek Koltunski

Rename all the classes that are not exported to application to 'Internal'

bfe45b4a 05/02/2019 01:22 PM Leszek Koltunski

Move all Program-related stuff to Distorted. Now the DistortedEffects class is very simple.

6bce98fc 05/01/2019 02:34 PM Leszek Koltunski

Minor.

7bebb196 01/04/2019 11:07 PM Leszek Koltunski

Massive: make the coordinate system agree with that of OpenGL (i.e. invert the Y axis).

4aa38649 12/30/2018 01:37 AM Leszek Koltunski

Redefine the Vertex Region from (x,y,r,unused) to (x,y,z,r). This takes into account the 'Z', which makes it possible to warp only one side of a 3D Mesh like Sphere.

Also corresponding changes in applications.

e1e94682 12/17/2018 12:01 AM Leszek Koltunski

New MeshQuad class.

715e7726 11/21/2018 11:00 AM Leszek Koltunski

Rename MeshObject to MeshBase.

6c00149d 11/20/2018 10:49 PM Leszek Koltunski

Fully move the Meshes to their own package.

a13dde77 07/25/2018 08:43 PM Leszek Koltunski

Progress with a more generic 'preprocess' stage of Postprocessing Effects.

9b94626c 06/28/2018 11:54 PM Leszek Koltunski

Port some obvious stuff from OIT branch.

2301cb2f 06/27/2018 11:08 AM Leszek Koltunski

I am pretty sure this time the flashing issues on Mali T880 r12 driver are finally fixed.

The fix: a queue of FBOs render to, just like before, but this time in DistortedScreen we blit not the current FBO, but the one computed several frames ago.

This of course introduces a delay and uses more memory, but it appears to work and does not seem to have any effects on speed.

f4d6114c 06/23/2018 11:18 PM Leszek Koltunski

I spoke too soon, the ARM Mali flashing is of course not fixed yet. The previous commit fixed Triblur, but the bug is still reproducible elsewhere (only in the 'postprocessed' apps though).

This commit introduces a circular queue in case of the postprocessing FBOs - with little success though.

9d845904 06/22/2018 10:38 PM Leszek Koltunski

Finally properly fix the flashing on ARM Mali T880 GPU.

The flashing is caused by a 'full pipeline flush' (see DarkPhoton, https://www.opengl.org/discussion_boards/showthread.php/200754-Flashes-on-ARM-Mali?p=1291679&viewfull=1#post1291679 ). In order to combat it, first introduce the possibility that a single DistortedOutputSurface is backed up by more than one FBO. Then make DistortedScreen be derived from DistortedFramebuffer (which itself is derived from DistortedOutputSurface) and make it contain 3 FBOs, render to them in a circular queue fashion, and blit from a given FBO to the system FBO. The 'more than 1 intermediate FBO' queue prevents the pipeline flush....

01b9a241 06/19/2018 11:09 PM Leszek Koltunski

Minor.

040cd18c 06/19/2018 11:04 PM Leszek Koltunski

Port all the 'non-controversial' changes from order-independent-transparency branch.

341151fc 04/27/2018 04:53 PM Leszek Koltunski

Fixes ported from the 'OIT' branch:

- remove counting of transparent pixels
- various fixes for the Mali GPU

2ab60f72 03/28/2018 01:58 PM Leszek Koltunski

SSBO: something is working already, although we still get the 4 bytes back from the shader in reverse order ( so '17'=0x00000011 written by the shader becomes '285212672 = 0x11000000' )

12f45260 03/27/2018 07:56 PM Leszek Koltunski

First try at the SSBO (doesn't work - reads in the application don't pick up changes in the shader; crashes.

e6519ac8 03/27/2018 12:51 PM Leszek Koltunski

Up library requirements to OpenGL ES 3.1 (needed for the upcoming GL_SHADER_STORAGE_BUFFER)

a2d56cfd 06/16/2017 02:33 PM Leszek Koltunski

Change of API: move setting the EGL context back to the APP.

26a4e5f6 06/15/2017 12:14 AM Leszek Koltunski

Reorganize the way we add and remove all Effects (do it through DistortedMaster and is POSTPROCES - adjust Bucket and SORT Nodes).

Buggy: removing effects does not work.

81b1577b 06/08/2017 04:12 PM Leszek Koltunski

Progress with support for Effect classes. Last error in the library before it compiles!

fe82a979 06/07/2017 05:18 PM Leszek Koltunski

Progress with support for Effect classes.