-
-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standardize view and projection matrices #3550
Conversation
fix render order of Box for (W)GLMakie fix indention fix stacking Labels
Compile Times benchmarkNote, that these numbers may fluctuate on the CI servers, so take them with a grain of salt. All benchmark results are based on the mean time and negative percent mean faster than the base branch. Note, that GLMakie + WGLMakie run on an emulated GPU, so the runtime benchmark is much slower. Results are from running: using_time = @ctime using Backend
# Compile time
create_time = @ctime fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @ctime Makie.colorbuffer(display(fig))
# Runtime
create_time = @benchmark fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @benchmark Makie.colorbuffer(fig)
|
Failures in CairoMakie are one-pixel offsets of tick labels in Axis3. GLMakie and WGLMakie are the expected |
Were these changes merged in 0.21? |
No they weren't. This came from a thought that we'd implement Float32 scaling based on the model, view and projection matrix, i.e. independently of limits which aren't known by the backend. A consistent structure for those matrices would have been useful for that. Now this is less important but maybe still useful as a clean up. I.e. maybe it's easier to follow what Axis3 does camera wise after this. It might also be the case that some lighting calculation or SSAO makes some assumptions about camera matrices that aren't true without this (i.e. transpose = inv). |
Still true |
Description
This prepares some things for #3226:
perspectiveprojection
andlookat
without modification (though I split uplookat
into two steps)And some random minor cleanup of Axis3 docs (indention, wrong render order in W/GLMakie, double-plotting of Label) + camera controller (name change).
Axis3 comparsion
Axis3 has more extensive changes so things could be different. Here are some new vs old comparisons with docs:
Aspect
Viewing angles
Tick placement seems to be slightly different (e.g. bottom left z is cut off more, top left z's overlap more(?))
Slightly less space to the title here as well
Perspectiveness
viewmodes
Also checked this with
perspectiveness = 0.6
, no visible changes.Tight frustum testing/debugging
This will show you the generated frustum (i.e. what area of the scene will be rendered) with th view space bounding box (+ bounding sphere for :fit) of the Axis3.
Type of change
Checklist
Added an entry in NEWS.md (for new features and breaking changes)Added or changed relevant sections in the documentationAdded reference image tests for new plotting functions, recipes, visual options, etc.