mirror of
https://github.com/ocornut/imgui.git
synced 2026-10-25 10:29:23 +00:00
end segment of circle arc scissoring #4419
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#4419
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
version: 1.82
branch: master
at first, i noticed that with dx9 renderer strokes are always anti-aliased even if imgui anti-aliasing is disabled
using following code in a fresh imgui example:
we will see this next with dx9:


and next with dx11:
i guess it could be related to bugs of dx9, because i tried to set dx9 renderstates to disable anti-aliasing but nothing changes
at second, circles (no sense filled/stroked) last segment looking scissored with magic '12' number as segments count (that will look for precached points), due to reduced segments count by 1 due to closed primitive drawing
Thank you for the report.
There are two distinct issues there.
With dx9 renderer strokes are always anti-aliased even if imgui anti-aliasing is disabled
First question: even if it was fully the case, would you have an issue with it?
I did that
It doesn't look particularly "more" anti-aliased but I think the perception might vary depending on colors.
However it is possible there is something else in your app, e.g. multi-sample AA done by the app or by the GPU driver could alter that perception.
About the circle missing one segment:
Confirmed. I'm quite confused as
89685b346c(for 1.75) was explicitly intended to fix something and it appears it did the opposite. I think possibly the fix made sense before we switched to the new adaptive algorithm in 1.78 or a further change? Tagging @thedmd (or I'll check next time when I get back from holidays).@ocornut I will take a closer look at the missing circle segment.
@ocornut It is fixed on PR. I think this is how it should be from the begging, not patching AddCircle was my oversight.
Commit and PR have an extra comment, which I hope make the change clear.
it's not a my own app, just imgui example from latest commit, i also tried to explicitely disable multisample AA with
in the d3d device creation, but seems it doesnt helped, so yes could be related to gpu/drivers, but weird it happens only with dx9
Is AA forced in driver settings?
you're right, found in nvidia docs about this, overriding of application antialising working only till dx10, it's so weird but ok i'm calm now
Should be fixed by
cb00972b87Thanks @thedmd !