Project

General

Profile

Statistics
| Branch: | Revision:

library @ 3e292b84

# Date Author Comment
3e292b84 03/20/2019 12:40 PM Leszek Koltunski

Fix several more apps for the 'center-of-matrix-effects-in-screen-center' change.

e091f21c 03/19/2019 02:28 PM Leszek Koltunski

Merge branch 'master' into empty-matrix-effects-in-the-center

dd89c7f4 03/19/2019 01:56 PM Leszek Koltunski

Bugfix: default, MAX region cannot be of Float.MAX_VALUE radius - then in the shader we can have an overflow. Make it 1000000 in radius.

fec1442f 03/18/2019 04:39 PM Leszek Koltunski

Move the defualt state of an Object to be in the center of the screen (rather than the bottom-left like before)

91cfe462 03/14/2019 03:25 PM Leszek Koltunski

1) new 'Rubik' app (skeleton)
2) MeshCubes: add support for custom texture mappings on each side (Rubik needs that!)

1d25180f 01/24/2019 10:22 PM Leszek Koltunski

Some improvements to the Wind app - still does not look very realistic though :(

50be8733 01/12/2019 04:24 PM Leszek Koltunski

Correct Distort.

353f7580 01/11/2019 11:15 PM Leszek Koltunski

Make Distort truly 3D.

5dadaecd 01/11/2019 02:18 PM Leszek Koltunski

Fixes for some stuff discovered while making the Distort effect fully 3D:

- make MeshSphere's normal lengths be 1 (used to be 0.5)
- make the Effect3D app display precise values of the Center and Region vars.

1418a5eb 01/06/2019 11:15 PM Leszek Koltunski

Relax requirements on when we can call DistortedEffects.setMax().

Before this change one had to call it before creation of shaders and before any of the DistortedEffects classes got created.
This commit removes the second requirement so now with setMax it's just like with enabling effects: it's best done in onSurfaceCreated.

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).

5e96393c 01/04/2019 12:35 AM Leszek Koltunski

Make the Sink effect fully 3D.

2fef9669 01/03/2019 09:09 PM Leszek Koltunski

Correct the z-axis of the center of fragment effects (it was inverted)

cbca11a3 01/03/2019 01:32 AM Leszek Koltunski

Progress with the Earth app.

b82a9ac9 01/03/2019 12:49 AM Leszek Koltunski

Progress with the Earth app.

b24e4719 01/02/2019 03:57 PM Leszek Koltunski

Make the Fragment effects truly 3D: change their 4D 'region' into a 3D 'center' (a point in 3D) and 3D 'region' (which is now a set of 3 radii defining an ellipsoid around the center)

Also corresponding changes to the applications.

1f2cb152 12/30/2018 10:49 PM Leszek Koltunski

Further fixes for the new fully 3D vertex region.

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.

ebe0476f 12/19/2018 10:53 PM Leszek Koltunski

Simplify MeshSphere by deriving it not from a regular icosahedron (which has a problem of a wiggly seam line at the 'change of date' in the back of the sphere) but something that at the back has a straight vertical border between triangles: a diamond-like 16-faced solid.

efaeb2a1 12/18/2018 11:29 PM Leszek Koltunski

Make Matrix effects Rotate and Quaternion actually correct when it comes to the Z-axis. Also corresponding adjustments in apps.

085d4e11 12/18/2018 08:11 PM Leszek Koltunski

Sphere: map the texture a bit better around the seam and the poles.

b72b8a3b 12/18/2018 04:42 PM Leszek Koltunski

Fix (hopefully the last!) probelm with texturing the Sphere: the seam in the back.

d8295106 12/17/2018 10:30 PM Leszek Koltunski

One more improvement with texturing the Sphere.

Still one problem with texturing remains.

bbc58eff 12/17/2018 09:36 PM Leszek Koltunski

Further fix for the Sphere. Now hopefully only the texture mapping is wrong.

041f83a3 12/17/2018 07:57 PM Leszek Koltunski

Some fixes for Sphere; still not completely ok though.

89b93576 12/17/2018 03:45 PM Leszek Koltunski

Add support for MeshSphere (add ability to display it in the 'Effects3D' and 'Inflate' apps).
Still a bit buggy!

ec0feaba 12/17/2018 12:07 AM Leszek Koltunski

Minor.

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

New MeshQuad class.

e5ba319d 12/14/2018 04:50 PM Leszek Koltunski

- new icon for the GLOW app
- rename the BitmapTree app to ObjectTree

977756d7 12/14/2018 01:18 PM Leszek Koltunski

Fix the bug where the postprocessed GLOW halo of a Cube would be of different colors depending on the order of rendring of the cube sides. (one needed to switch off BLENDing while preprocessing )

8b7b2398 12/13/2018 10:35 PM Leszek Koltunski

Fix the bug where the postprocessed halo would not work for the first few frames of each quality level (before this commit the bug was visible in the 'GLOW' app).

973e99d7 12/13/2018 04:25 PM Leszek Koltunski

Minor.

143095f7 12/12/2018 12:11 AM Leszek Koltunski

Minor cleanups.

2f1f7570 12/11/2018 06:03 PM Leszek Koltunski

Properly clean up static varaibles in the Effect classes!

e71dd7fb 12/11/2018 01:04 PM Leszek Koltunski

Improve computation of the thickness of the postprocessing halo - should be independent of the size of underlying object now.
Still it is not completely ok, it appears to depend on the ModelView matrix (use the Effects3D app to rotate the object around Z-axis to see this)

15ed35e6 12/10/2018 10:33 PM Leszek Koltunski

MeshCubes: Correct texturing of side walls. Everything should be correct now.

2d203318 12/10/2018 03:42 PM Leszek Koltunski

MeshCubes: Correct texturing of side walls. (still not everything is right there)

a16bf106 12/10/2018 01:39 PM Leszek Koltunski

Make the Effects3D app a bit more user-friendly.

554ce72b 12/10/2018 02:05 AM Leszek Koltunski

Bugfix: make the Inflate distances equal in all 3 dimensions regardless of dimensions of the Mesh. (still MeshFlat's Z dim needs to be corrected)

e49b26ba 12/08/2018 12:16 AM Leszek Koltunski

Bugfix for the situation when we would be BLURring an object, then we remove the BLUR and apply a GLOW, then remove the GLOW and apply BLUR again - the second BLUR would assume the color of the GLOW.

20156af7 12/08/2018 12:03 AM Leszek Koltunski

Important bugfix in MeshCubes for the Inflate vectors.

8e88389e 12/07/2018 11:56 AM Leszek Koltunski

Translate the size of the Halo around postprocessed objects from 'number pixels around the object' (as held in the Effects themselves) to a float suitable for Inflating the underlying Mesh with the per-vertex Inflate vectors.

9d0df4c6 12/02/2018 01:13 AM Leszek Koltunski

Progress with the Inflate vector in MeshCubes.

Pretty much works now - what remains is calibration.

15290f35 12/01/2018 12:14 AM Leszek Koltunski

Progress with the Inflate vector in MeshCubes.

7a5e538a 11/30/2018 02:28 PM Leszek Koltunski

Progress with Inflate (building block of postprocessing effects: the proper way of marking a halo around a Mesh)
'Inflate' app testing the machanism. MeshFlat appears to be working, now we only need to fill up the per-vertex Inflate vector in the MeshCubes.

227b9bca 11/27/2018 12:34 AM Leszek Koltunski

Minor simplifications in Mesh.

6f2d931d 11/26/2018 10:31 PM Leszek Koltunski

Added a new attribute to vertices of a MeshBase object: the vec3 'inflate' vector.
This vector describes the direction where the vertex needs to be moved when we 'inflate' the whole mesh.
If the mesh is locally smooth, this is simply the normal vector; otherwise (for example in the corners of the MeshCubes) - not....

da681e7e 11/26/2018 09:21 PM Leszek Koltunski

Some simplifications in Meshes. Hide stuff inside MeshBase.

9a3607b3 11/26/2018 03:59 PM Leszek Koltunski

Fix the preprocess shader. This makes the 'Postprocess Tree' app look good again.

13981586 11/21/2018 11:46 AM Leszek Koltunski

Small things.

e92785ba 11/21/2018 11:26 AM Leszek Koltunski

Small things.

ed06301f 11/21/2018 11:09 AM Leszek Koltunski

Move EffectMessageSender to the 'message' package (duh!)

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.

466450b5 11/20/2018 10:00 PM Leszek Koltunski

Beginnings of a separate package only with Meshes.

e6904678 08/06/2018 01:26 PM Leszek Koltunski

Progress with Effects3D app - merge Matrix effects

b1058021 07/31/2018 02:10 PM Leszek Koltunski

Postprocessing: adjust the Projection of the postprocessing buffers to match the Projection of the surface we are supposed to be rendering to.

99730f26 07/31/2018 01:43 PM Leszek Koltunski

Correct the way we display Normals (didn't work in case rendering was of OIT type)

1b840bc4 07/30/2018 02:49 PM Leszek Koltunski

More progress with Effects3D app.

9e771d06 07/26/2018 02:32 PM Leszek Koltunski

Progress with thr Glow effect - moving glow app looks ok now.

247d8225 07/25/2018 11:54 PM Leszek Koltunski

More progress with a more generic 'preprocess' stage of Postprocessing Effects.

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

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

2386a081 07/25/2018 12:54 PM Leszek Koltunski

1. Hide internalQuality inside Postprocess effects.
2. First step to turn markStencilAndDepth into a more generic Postprocessing 'preprocess'.

5f7e4f2c 07/24/2018 03:00 PM Leszek Koltunski

Hide the FBO_QUEUE thing inside the library. The queue is running internally now, without public setAsOutputFBO() thing (simplifies writing postprocess effects)

031fbe7a 07/17/2018 01:14 PM Leszek Koltunski

Partially 'fix' Glow effect for the case when FBO_QUEUE_SIZE > 1 (come back to pre-FBO_QUEUE_SIZE level of functionality).
Still, Glow needs to actually get implemented correctly.

ca4521e3 07/05/2018 10:33 PM Leszek Koltunski

Simplify Main OIT shader.

12f9e4bb 07/05/2018 12:39 PM Leszek Koltunski

a mix of two changes:

1) remove the DistortedInputSurface interface (now every Surface is Input)
2) make the OIT SSBO self-adjustable in size

acb44099 07/04/2018 10:30 PM Leszek Koltunski

Make the OIT SSBO size independent of screen size.

d5e053a5 07/04/2018 01:02 PM Leszek Koltunski

Remove the redundant DistortedNode.onPause()

6544040f 07/03/2018 12:47 PM Leszek Koltunski

Fix the fact that back-facing surfaces were invisible.

001fb991 07/03/2018 12:06 PM Leszek Koltunski

Largely fix the non-postprocessed OIT. Still, one problem remains: back-facing surfaces seem to disappear (visible in 'Cubes')

86c352e0 07/02/2018 03:02 PM Leszek Koltunski

Some progress with not-postprocessed OIT.

c1a38ba3 07/01/2018 11:21 PM Leszek Koltunski

Progress with non-postprocessed OIT.

Status: compiles, but fails to work on both Adreno and Mali. Crashes the app (Adreno) or the whole system (Mali)

5e331bc8 07/01/2018 10:07 PM Leszek Koltunski

Update the 'main' shaders for OIT.

edea9cf3 06/29/2018 02:51 PM Leszek Koltunski

In Distorted.onCreate(), catch and re-throw exceptions, so that even is some Program fails to compile, others will still compile.

c25273e0 06/29/2018 02:03 PM Leszek Koltunski

Standarize GLSL version across the whole library.

a895b883 06/29/2018 01:36 PM Leszek Koltunski

Merge branch 'order-independent-transparency'

df5f8dd9 06/29/2018 01:31 PM Leszek Koltunski

Correct a recently introduced bug.

406e2f6b 06/29/2018 12:22 PM Leszek Koltunski

Give users API to render OutputSerfaces and attached Nodes in either the 'normal' way of OIT way.

a07e0204 06/29/2018 11:55 AM Leszek Koltunski

Start merging master and OIT.

9e999930 06/29/2018 11:48 AM Leszek Koltunski

Start merging master and OIT.

97020807 06/29/2018 11:25 AM Leszek Koltunski

Start merging master and OIT.

61ce8e90 06/29/2018 11:07 AM Leszek Koltunski

Minor.

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

Port some obvious stuff from OIT branch.

9ea800c6 06/28/2018 11:30 PM Leszek Koltunski

Minor.

8ac0ed3e 06/28/2018 11:21 PM Leszek Koltunski

Correct the way we delay FBOs in DistortedScreen.

b3d1b670 06/27/2018 11:52 PM Leszek Koltunski

Minor.

1f19fba8 06/27/2018 11:51 PM Leszek Koltunski

Port the Mali flash fix to the OIT branch.

6672d895 06/27/2018 01:31 PM 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.

586b5fa1 06/27/2018 01:30 PM Leszek Koltunski

Port another commit from master.

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.

8ebbc730 06/27/2018 01:16 PM Leszek Koltunski

Port a commit from the master branch.

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....

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.

baa3989b 06/24/2018 12:07 AM Leszek Koltunski

Revert last changes to the postprocessing FBO.

This reverts commit 2dbed690bdbee80d9bfb22c800073855eb5d0946.

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.

85bfeb7a 06/13/2018 09:33 PM Leszek Koltunski

Try and avoid re-sorting the children by buckets (if we can!). This makes change in rendering order in the 'Transparency' app actually work.

2dbed690 06/08/2018 02:03 PM Leszek Koltunski

In an attempt to contain the flashes on Mali GPU, re-structure the post-processing FBOs from 1 FBO with 2 color attachments + combined depth-stencil to 2 separate FBOs sharing a depth-stencil texture.

Result: this appears to make the flashes slightly worse.

82890e13 06/07/2018 11:47 AM Leszek Koltunski

Minor