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

Volume Visualization issue : can't bind texture #309

Open
jzy3d opened this issue Dec 17, 2022 · 1 comment
Open

Volume Visualization issue : can't bind texture #309

jzy3d opened this issue Dec 17, 2022 · 1 comment
Labels
Milestone

Comments

@jzy3d
Copy link
Owner

jzy3d commented Dec 17, 2022

Describe the bug
Running BasicVolumeDemo yield to

glGetError() returned the following error codes after a call to glBindTexture(<int> 0x806F, <int> 0x1): GL_INVALID_OPERATION ( 1282 0x502),

At Texture3D.bind()

Versions (please complete the following information):

  • Jzy3D : 2.2.1-SNAPSHOT + JOGL 2.4.0-rc4
  • JVM / JDK: any
  • GPU: any
  • OS: any
  • Currently working on macOS 11+AppleM1, but issue reproduced on Windows 10, macOs 10.12

Additional context
Reproduced

@jzy3d jzy3d changed the title Volume Visualization issue 2.2.1 Volume Visualization issue Dec 17, 2022
@jzy3d jzy3d added the bug label Dec 17, 2022
@jzy3d jzy3d added this to the 2.3.0 milestone Dec 17, 2022
@jzy3d jzy3d changed the title Volume Visualization issue Volume Visualization issue : can't bind texture Dec 17, 2022
@jzy3d
Copy link
Owner Author

jzy3d commented Dec 17, 2022

Verified multiple things

  • Compared source code between jacob push and current version : nothing visible
  • Reverted fragment shader to non refactored version
  • Shader programs are properly loaded
  • Let shader compilation verification happen either at mount() time or draw() time
  • Verified suggestions on GL_INVALID_OPERATION based on OpenGL spec
  • Checked no call to anything else than TEXTURE_3D is made (GL_INVALID_OPERATION is generated if texture was previously created with a target that doesn't match that of target .)

Surprised by

  • No glGenTextures before glBindTexture (but also in old version). It is probably implicitely made in fragment shader under name volumeTexture, and then fetched at validateTexID time in java.
  • glBindTexture appears before glActiveTexture (but also in old version)

@jzy3d jzy3d modified the milestones: 2.3.0, 2.0, 2.4.0 Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant