Project

General

Profile

Statistics
| Branch: | Revision:

library / src / main @ e4577791

# Date Author Comment
e4577791 01/09/2023 01:41 PM Leszek Koltunski

fix detection of not used attributes.

e5f796bc 01/08/2023 03:36 AM Leszek Koltunski

Major change in JSOn file format:

replace the old (corners,centers) system with a list of VertexEffects which are applied to each cubit variant.

ae71f169 12/22/2022 12:57 AM Leszek Koltunski

Finally fix the reason foor 'incorrect vertex attribute' message spamming the Log of the Emulator.

d23592bb 12/21/2022 09:56 PM Leszek Koltunski

Minor.

40f0cea6 12/21/2022 02:02 PM Leszek Koltunski

Debugging the Node piraminds - print the whole piramind along with all the Effects attached to each Node.

c226920c 12/08/2022 01:28 AM Leszek Koltunski

Improve the Sink effect so that at extreme strengths (close to 0 and infinity) it inflates and deflates more.
Reason: previous version failed to fully inflate the Masterball to a nice sphere.

9daf0165 11/23/2022 02:22 PM Leszek Koltunski

Reinstall the latest Android Studio, latest gradle; reconfigure all project to match and compile.

178983f4 10/26/2022 02:31 AM Leszek Koltunski

Remove the requirement that not-postprocessed children in the render scene must be in the first bucket.
Seriously simplify renderChildren().

f7c72bd1 10/24/2022 01:31 PM Leszek Koltunski

Minor

7f1735dc 07/15/2022 01:52 AM Leszek Koltunski

license

12c2cfcf 07/15/2022 01:49 AM Leszek Koltunski

license

2c8310b1 07/15/2022 01:48 AM Leszek Koltunski

license

3a54358a 07/15/2022 01:45 AM Leszek Koltunski

license

c4d06f90 07/15/2022 01:44 AM Leszek Koltunski

license

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

license

dbdf8a73 07/15/2022 01:39 AM Leszek Koltunski

license

cc62b34a 07/15/2022 01:37 AM Leszek Koltunski

license

51b92d1c 07/02/2022 01:41 PM Leszek Koltunski

fix for a crasher.

35c5f53b 06/18/2022 11:59 PM Leszek Koltunski

A few code improvements.

0e3b06d1 05/11/2022 11:24 PM Leszek Koltunski

Minor

f85f2943 04/19/2022 02:47 PM Leszek Koltunski

FactorySticker: further improvements.

d2dc25ad 04/10/2022 12:03 PM Leszek Koltunski

Properly detect which drivers are slow with compilation of TF programs.

81433569 04/09/2022 12:59 PM Leszek Koltunski

Fix for an invalid enum.

4ba0d1df 04/09/2022 01:31 AM Leszek Koltunski

New debug to print a whole component of a mesh.

cbb1de9d 03/30/2022 01:23 AM Leszek Koltunski

Create the bandaged 3x3 icon: something works, the shape is drawn, but it's entirely black. Investigate.

96381044 03/24/2022 10:02 PM Leszek Koltunski

Further progress with Bandaged 3x3.
This requires a new API in DistortedNode to change the Mesh there.

728562ae 03/24/2022 04:07 PM Leszek Koltunski

Very important bugfix in the Library: MatrixEffectQuaternion cannot share the tmp static buffers!

97460908 02/14/2022 12:42 PM Leszek Koltunski

new API to enable/disable face culling

c2032d8c 02/13/2022 03:43 PM Leszek Koltunski

Preparation for drawing only the FRONT side of the cubit walls.

0e1d3d2e 01/02/2022 11:06 PM Leszek Koltunski

Extra API for QuatHelper.

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

73bcf555 12/16/2021 11:38 PM Leszek Koltunski

Correct the glBufferData's usage argument: in UBO and VBO cases, it should be GL_STATIC_DRAW.

b11171e8 12/16/2021 10:44 PM Leszek Koltunski

Add DistortedProgram.stopUsingProgram()

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.

07d9e55f 12/05/2021 10:19 PM Leszek Koltunski

Progress replacing the enum ObjetType with the class RubikObjectList.

f0c98ff5 11/15/2021 10:28 PM Leszek Koltunski

Adjust ShapeChanging so that it can handle concave cubit faces.
Now it is working also in case of the Ivy corner cubits.

4c568a67 11/11/2021 04:22 PM Leszek Koltunski

Float vertices - scratchbook

ee238898 11/02/2021 07:44 PM Leszek Koltunski

Bugfix.

fa640198 10/28/2021 04:48 PM Leszek Koltunski

Add to MeshPolygon a special modee to create a 2-band polygon with dense corners (needed to reduce number of vertices in side faces of the TwisttyPuzzle cubits)

f4a2d97e 10/28/2021 01:06 PM Leszek Koltunski

Add testing of MeshPolygon to the MeshFile app.

460a2b7d 10/22/2021 02:59 AM Leszek Koltunski

Major change: separate the notion of a TwistyObject and its Node. Now,

1) the Node stays when we change objects (this makes transitions faster)
2) it's possible to just create an Object without adding it to the Screen (now app needs to explicitly create the Node and add it to its Screen itself)

c38f3d33 10/15/2021 01:07 PM Leszek Koltunski

Correction

cc2367fe 10/11/2021 03:33 PM Leszek Koltunski

By default, do use Halo Depth (this broke the halo around a solved object in distorted-cube!)

5c84d9c2 10/08/2021 11:27 PM Leszek Koltunski

Set possibility for the Postprocessing effects to eclipse the whole object or only work at the edges.

06ed13b5 10/08/2021 05:53 PM Leszek Koltunski

New API: set components centers of all components all in one go.

e8a86d16 10/08/2021 12:47 PM Leszek Koltunski

comment.

23691e40 10/08/2021 12:42 PM Leszek Koltunski

New BORDER effect.

f90fe926 10/08/2021 11:05 AM Leszek Koltunski

Comment.

5b567bb4 10/08/2021 09:33 AM Leszek Koltunski

Minor

7b2f81e8 10/07/2021 10:32 PM Leszek Koltunski

Improvements for the new Border effect. Now works, but covers the object - to be corrected.

d58407a8 10/07/2021 03:23 PM Leszek Koltunski

New postprocess effect 'Border' (not working yet) and adding it to the testing app 'Triblur'.

ba70e7c9 10/06/2021 05:54 PM Leszek Koltunski

Mesh creation: finished.

8d98b65f 10/03/2021 12:40 AM Leszek Koltunski

Move destroying most of statics from onDestroy() earlier, to onPause().

Reason: doing this in onDestroy() is too late, because when we have two activities, and switch between them, first the ending's Activity onPause() is called, then the starting Activity's onResume, then it's onSurfaceCreated(), then we insert all the effects, and only then the ending Activity onDestroy() gets fired off - and this might destroy the already enabled effects, like for example the Programs of the Postprocessing effects.

8fc3b80a 09/30/2021 04:03 PM Leszek Koltunski

Move QuatHelpeer to distorted-library

4c96c7c9 09/30/2021 02:39 PM Leszek Koltunski

Add debugging option to DistortedEffects.

9ef86c9f 09/15/2021 10:37 AM Leszek Koltunski

On second thought, come back to Vector. The problem: before we had the potentially blocking function 'effectFinished' inside our synchronized block.

2f40484b 09/15/2021 10:33 AM Leszek Koltunski

Improve EffectMessageSender: ArrayList with explicit locking in place of a Vector.

c337dd1c 09/14/2021 11:55 PM Leszek Koltunski

1) add missing call to BlockController.onPause() / onResume() to the Tutorial activity
2) rearrange BlockController's error reporting to make the case where the MessageSender thread has died separate
3) in such case, resurrect the thread
4) simplify and harden the EffectMessageSender

7d151b69 09/14/2021 05:31 PM Leszek Koltunski

More debugs to the EffectMessageSender.

43eecb4c 09/14/2021 04:17 PM Leszek Koltunski

Firebase shows that we have a problem when an app is rapidly restarted, i.e. when is it paused and resumes within tens of milliseconds. Then sometimes the EffectMessageSender thread dies.

Attempt to limit this by synchronizing the whole 'start' and 'stop' methods, although I suspect this will still happen because the very methods are probably in such case called in the wrong order.

188b3dc0 09/09/2021 11:56 PM Leszek Koltunski

Some more debugs for the case when the UI is blocked.

b36227cd 09/07/2021 12:39 PM Leszek Koltunski

Minor.

0b732630 08/17/2021 05:30 PM Leszek Koltunski

Convert the Ivy corner cubit to the new, 'universal' cubit creation method.

This forces deep changes to 'createRoundSolid' and the underlying 'MeshPolygon' class to make them support arbitrary Polygon 'centers of face convexity'.

Reason: the faces of this cubit are concave and such default 'center of face convexity' (which by default used to be (0,0)) turned to lie outside the face - which produces strange visual artifacts.

bff329fb 07/13/2021 02:03 PM Leszek Koltunski

Copy constructors for the Statics.

c0e4d5cf 06/01/2021 03:04 PM Leszek Koltunski

Dynamics: minor.

d403b466 06/01/2021 01:38 PM Leszek Koltunski

Dynamics: consolidation of code.

9aabc9eb 06/01/2021 12:02 PM Leszek Koltunski

Dynamics: introduce two speed modes - smooth and segment_constant.
Prepare the third mode - globally_constant.

a59b5f2c 05/23/2021 04:02 PM Leszek Koltunski

2 Skewb Ultimate cubits.

24b1f190 05/16/2021 11:19 PM Leszek Koltunski

RubikControl: fixes; progress.

4f9ec5d6 05/14/2021 12:51 AM Leszek Koltunski

Make Dynamic's resetToBegin() done on the next frame.
This is necessary if we want to reset many Dynamics at one go and have all of them start synchronized.
Otherwise it can happen that when we reset, we do it when some objects which the Dynamics belong to are already rendered and others are not, and then some of the Dynamics will be delayed by one frame which is visible already.

b4999b55 05/09/2021 10:11 PM Leszek Koltunski

Progress with RubikControl - sub-stages 1 and 2 of the 'whole' stage finished.

3272cfb8 05/07/2021 12:17 AM Leszek Koltunski

Actually reset Node's mLastTime back to 0 each time we attach it somewhere.

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)

f3b76541 04/28/2021 11:30 AM Leszek Koltunski

Only switch on 'BuggyUBOs' on Adreno 308 driver versions 331 and 415.

35a0f4ed 04/24/2021 12:37 AM Leszek Koltunski

Calibration of the previous workaround.

5ec42229 04/24/2021 12:12 AM Leszek Koltunski

Workaround for the fact that one some devices (for example the LG K30's V@415 driver on the Adreno 308) the Glow halo wasn't visible.

7958d843 04/23/2021 10:13 PM Leszek Koltunski

MeshBase's 'MAX_NUM_COMPONENTS' is not a constant - rename!

41ed3f0d 04/23/2021 09:20 PM Leszek Koltunski

Correct an crash when trying to run a program with no vertex effects.

07325238 04/23/2021 04:58 PM Leszek Koltunski

Do not switch BuggyUBOs on Adreno 306, as I just saw a device - ZTE ZMax2 - which uses a 306 and driver V@100, which does not like packed UBOs...

a9be24d8 04/23/2021 04:28 PM Leszek Koltunski

Improve the 'buggy UBOs' detection.

a9d4bb9a 04/23/2021 02:18 PM Leszek Koltunski

- report the Graphics driver's Renderer and Version.
- new Diamond, Skewb2 and Skewb3 meshes.

ddd46f8b 04/21/2021 09:21 PM Leszek Koltunski

Always reset static variables in DistortedLibrary to default values.

5413c8cc 04/14/2021 04:00 PM Leszek Koltunski

Convert the first object, the Cube, to the new Cubit-creating engine.

c0477f7f 04/10/2021 05:45 PM Leszek Koltunski

Face cubit creation: progress: rounded corners

2d732361 04/09/2021 03:00 PM Leszek Koltunski

Face cubit creation: progress, a cube renders correctly :)

eff6e3d3 03/14/2021 10:04 AM Leszek Koltunski

Properly solve the issue with Qualcomm driver V@331 having buggy UBO size.

073e5a7a 03/12/2021 10:33 PM Leszek Koltunski

Another attempt at fixing tthings on early Qualcomm OpenGL ES 3.0 drivers.

The previous version does not work on Adreno 405 driver V@100, present for example in a Asus ZenPad 8.
Revert the packed 'ivec2' UBO in the vertex shader back to a 'std140' ivec4. This comes at a price if bumping into the bug on Qualcomm driver version 331 on Adreno 308 - i.e. Samsung Galaxy J4+ again....

fc3b9f16 03/07/2021 10:53 PM Leszek Koltunski

Correct a comment for Javadoc.

ccb4c899 03/07/2021 10:51 PM Leszek Koltunski

Add new comments for Javadoc.

11c187c0 03/07/2021 10:46 PM Leszek Koltunski

Correct comments; hide stuff from Javadoc.

f79c9f57 03/07/2021 10:31 PM Leszek Koltunski

Correct comments.

80961fc1 02/24/2021 11:12 PM Leszek Koltunski

Make the 'Component Associations' UBO (on most devices) twice smaller -
use the 'packed' layout and 'ivec2' in place of 'ivec4'.

This forces us to dynamically probe the 'Stride' - number of 4-byte entities that the UBO's 'ivec4' takes - and correct the already-constructed UniformBlockAssociation objects in case this turns out to be different than the expected 2, i.e. tightly-packed....

6c3a8db8 02/24/2021 01:34 PM Leszek Koltunski

Add a new API DistortedEffects.exists(long id)

46d463a4 02/24/2021 09:40 AM Leszek Koltunski

Make per-component centers optional, controlled by API MeshBase.setUseCenters()

97b6c85e 02/23/2021 09:54 PM Leszek Koltunski

Bugfixes as a result of the Samsung Galaxy J4+ investigation:

1) By default, switch off transform feedback in the main program.
Create a new API 'needTransformFeedback()' to call if someone still needs TF in the main program.
2) lower the default max number of vertex effects to 30....

2acab35b 01/27/2021 01:56 PM Leszek Koltunski

Progress with Megaminx.