Skip to content
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

BezierPatchDrawer rendering glitch #351

Open
hamoid opened this issue Dec 17, 2024 · 2 comments
Open

BezierPatchDrawer rendering glitch #351

hamoid opened this issue Dec 17, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@hamoid
Copy link
Member

hamoid commented Dec 17, 2024

Operating System

Linux

OPENRNDR version

0.4.4 or SNAPSHOT

ORX version

0.4.4 or SNAPSHOT

Java version (if applicable)

No response

Describe the bug

When rendering a 4-vertex shape as a bezier patch, a discontinuity appears, jumping from the center of one of the edges to the origin.

Steps to reproduce the bug

import org.openrndr.application
import org.openrndr.extra.shapes.bezierpatches.bezierPatch
import org.openrndr.math.Polar
import kotlin.math.sin

fun main() {
    application {
        program {
            extend {
                val bp = bezierPatch(
                    List(4) {
                        (drawer.bounds.center +
                                Polar(it * 90.0, sin(seconds + it) * 100.0 + 150.0).cartesian).xy0
                    }
                )
                drawer.bezierPatch(bp)
            }
        }
    }
}

bezierpatch DemoBezierPatch01-2024-12-17-07 54 46

@hamoid hamoid added the bug Something isn't working label Dec 17, 2024
@hamoid
Copy link
Member Author

hamoid commented Dec 17, 2024

Tested on a computer with dedicated GPU and the glitch is gone. Will try to update the drivers.

@hamoid
Copy link
Member Author

hamoid commented Dec 17, 2024

Here a renderdoc capture:

openrndr-programs.rdc.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant