10BC0 Barebones Avalonia 3D plot by bclehmann · Pull Request #5067 · ScottPlot/ScottPlot · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@bclehmann
Copy link
Member

Use this space to describe what this pull request accomplishes.

Refer to open issues by their number to help link them with this pull request.

Consider including screenshots or code samples if it would help communicate the purpose of this pull request.

ScottPlot.Plot myPlot = new();
/* a code sample may improve communication */
myPlot.SavePng("bug.png");

@bclehmann
Copy link
Member Author

@swharden This is mostly just my experimentation branch (I had to port it to avalonia because I'm working on a Mac right now). I've moved it over to use explicit matrix multiplications because that's easier for my brain, but it's mostly the same save for me moving things into the ScottPlot.ScottPlot3D namespace. The existing WinForms code is untouched.

I have found that keyboard rotation controls are a lot easier than mouse drag, since if the scene is rotated such that positive z is to the right dragging up should still rotate in whatever axis is perpendicular to screen up. Whereas with keyboard controls having w always correspond to positive Y rotation is less jarring.

I think we should fix mouse controls, but the math for that isn't coming to me at the moment.

@swharden
Copy link
Member

Hey @bclehmann, I'd like to follow-up on this. There's a great amount of progress here. The build errors are just because warnings are treated as errors.

Do you recommend I merge this now, and it gets deployed with the next release? I see all the new classes are in the ScottPlot3D namespace, and that's fine with me to include/publish WIP, I just want confirmation from you that this is good to merge.

Thanks!

@bclehmann
Copy link
Member Author
bclehmann commented Oct 12, 2025

Yeah as you can see this hasn't moved much in a while, I think the main problems are controlling the scene placement programmatically, as this doesn't have you adjust the camera position so much as a weird scene-like position for a stationary camera. I think that's confusing. And then camera controls I think will need work, but that can be done later.

If you merge it in it's current state (I'll mark it ready for review so you can) I think this doesn't get rid of the 3D plots in the WinForms project, so I'd probably axe those so we don't have this in multiple places. I would definitely not put it in the next release as a public API, I think it's fine if it's marked internal or with some very heavy-handed "This is experimental" warnings, since the whole thing is likely to change.

@bclehmann bclehmann marked this pull request as ready for review October 12, 2025 19:31
@NeilMacMullen
Copy link
Contributor

fwiw I would be very interested in trying to use this in my Kusto-Loco project, even if experimental status, if it makes it into a release.

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.

3 participants

0