Skip to content

Conversation

@chrishavlin
Copy link
Contributor

This is a more straightforward implementation than #12 (which I will close in favor of this) that adds the ability to add 2d YTDataContainer objects (e.g., ds.slice, ds.cutting, ds.proj) to a 3D scene. This implementation generates a frb and uses the data as a 2D texture.

Given #13, this is probably most useful for plotting the results of a projection along with a volume rendering:

vol_render_proj

But there may be some cases where adding independent slices is advantageous. Another example (from examples/plane_textures_multiple.py) with projections on the bounding-box faces and a slice and cutting plane on the interior:

multislice

There still seems to be some face culling or z-ordering issue that I haven't figured out yet: when added to an existing volume rendering, planes are not visible from all perspectives (e.g., when running examples/amr_volume_rendering_with_planes.py and rotating, planes with disappear/reappear). Adding a GL.glDisable(GL.GL_CULL_FACE) fixes the issue (but I haven't committed that change, as there's probably a better way to fix it).

@matthewturk
Copy link
Member

@chrishavlin Could you emblacken and emisortize this?

@chrishavlin
Copy link
Contributor Author

just pushed -- had forgotten to run isort and was using a different black version than what the checks here are using. but those should be fixed now!

@chrishavlin
Copy link
Contributor Author

oh and just a note for myself to come back to: I'm not 100% I have the orientation of the resulting planes correct. I need to test out some slices on less symmetrical datasets.

@chrishavlin chrishavlin added this to the 0.3.0 milestone Jul 21, 2022
@chrishavlin chrishavlin force-pushed the textured_planes branch 2 times, most recently from ce1780d to 927aaa7 Compare October 25, 2022 18:03
@chrishavlin
Copy link
Contributor Author

reminder to myself when I come back to this next: I don't think the orientation handling going from a FRB to the world coords is currently correct... use slices of the coords to check.

@chrishavlin chrishavlin modified the milestones: 0.3.0, 0.3.1 Apr 12, 2023
@chrishavlin chrishavlin modified the milestones: 0.3.1, 0.4.0 Jun 7, 2023
@chrishavlin chrishavlin modified the milestones: 0.5.0, 0.6.0 May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants