Giter Club home page Giter Club logo

jgl's People

Contributors

dependabot[bot] avatar jzy3d avatar martin-pernollet avatar martinpernollet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jgl's Issues

Need a glPolygonOffsetFill like to improve rendering of filled polygons having a wireframe

The following surface has alpha values = 1, GL Alpha test and blending are disabled using a Jzy3d Quality < Advanced, e.g. Intermediate or Fastest.

Capture d’écran 2020-11-25 à 17 31 55

This does not occur with Alpha test and blending enabled with Quality.Advanced.

Polygon offset fill - a trick to avoid this kind of glitch - is not supported yet by jGL.

Polygon Offset Fill was added to OpenGL 2 Specification (https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glPolygonOffset.xhtml) while jGL implements OpenGL 1. There is thus a need to implement offset filling.

GL.glDrawPixels does not work

I did not find yet a way to cleanly pass pixels to jGL (see my code mess in EmulGLPainter.glDrawPixels).

Moreover : rendering an image with a viewport discard the ability to render something else in another viewport.

For the moment I skipped the traditional GL approach and replaced with AWT image rendering in

GL.appendImageToDraw(BufferedImage image, int x, int y)

Let a 3d Text and Symbols be hidden by polygons

Text is currently simply printed over the image of the 3d scene.

Read depth buffer to guess if a text should be rendered before or after the image of the 3d scene.

Example of Axis labels that render on top of surface polygons instead of under.

image

Geometries with low alpha channel appear dark and opaque instead of translucent

when invoking gl.glColor4f( any, any, any, 0f) for a set of polygons, they appear completely black

Capture d’écran 2020-11-25 à 17 05 10

when involking with an intermdiate alpha value such as 0.5f, the polygons appear darker

Capture d’écran 2020-11-25 à 17 04 52

I found out that the color buffer contains black translucent pixels where nothing is drawn, and black opaque pixels where polygons should be drawn.

Can't reset background with glClear (i.e. glClearColor is not applied)

When integrated into Jzy3d, hence rendering multiple frames, the frames overlap despite clearing the colorbuffer between each frame with

glClearColor(white)
glClear(GL_GL_COLOR_BUFFER_BIT) 

Capture d’écran 2020-11-25 à 17 12 30

Moreover, the background of the rendered image remains translucent instead of being reset with the background color.

Canvas does not repaint completely

Versions : Mac OS Catalina (10.15.3) / Intel Iris Graphics 6100 1536 Mo / JDK 1.8.0_91 / jGL 2.5 / Jzy3d 2.0

Problem not visible on other Mac OS version.

image

GL functions to support callbacks as Callable

Functions like glutDisplayFunc that accepts callback function name as an argument could have overloaded counterparts that accept lambda as an argument.
I.e. instead of
public void glutDisplayFunc(String func) one could have public void glutDisplayFunc(Callable func) - this would increase performance (of course marginally) and code readability due to IDE code navigation support

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.