I have been trying to port a user interface from lcd to jit.gl.sketch. However, I think I’m doing something wrong or rendering to a different resolution from the pwindow or something because I get weird artifacts in the drawings.
The patch below shows a cross (two equal length lines at right-angles intersecting each other at their mid points) being drawn in lcd vs jit.gl.sketch/jit.gl.render/jit.pwindow.
When dragging around the window the cross looks warped in the jit.gl.sketch version (the intersection point of the two lines is no longer the middle) whereas the lcd version looks fine.
I can remedy this by turning on ‘fsaa’ on the jit.pwindow but it makes it look kind of blurry.
I would give anything for someone to explain what I’m doing wrong here and I’m 100% sure it’s something I’m doing or ‘not’ doing.
i’m really not seeing what the problem is with your patch.
LCD draws stuff based on screen coords (0 – width, 0 – height, starting in top left corner).
opengl draws stuff based on world coords, which get rasterized to the screen.
the two methods are not exactly comparable.
what would be a comparable method using jit.gl.sketch then?
Also I’m interested in why the cross wouldn’t show up as a cross on the jit.pwindow.
C74 RSS Feed | © Copyright Cycling '74