Texture3D Bug with Java3D 1.6 pre8 on MacOsX

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Texture3D Bug with Java3D 1.6 pre8 on MacOsX

MrFreeze
Hi,

thanks to your work, we are finally able to run YaDiV on MacOsX again. As we switched to swing generics introduced by Java 7 recentl, MacOsX support of java3d was a big issue.

However, we discouvered one oddity. We use 3D textures for interactive volume rendering. In short, we are using projection planes that are orthogonal to the viewing direction and rotate the texture coordinates instead of the plane geometry when the view changes. For this, we use the Texure3D boundary mode(s) CLAMP_TO_BOUNDARY.

Normaly, this produces a result like this:



With Java3D 1.6 pre8 on MacOsX it looks like



which looks like WRAP mode instead. Any ideas here?

MrFreeze
Reply | Threaded
Open this post in threaded view
|

Re: Texture3D Bug with Java3D 1.6 pre8 on MacOsX

gouessej
Administrator
Hi

Thank you for the feedback. Please provide a tiny test case. The texture repeat mode is probably badly managed somewhere.

Edit.: Maybe there is a spelling mistake here:
https://github.com/hharrison/java3d-core/blob/master/src/classes/share/javax/media/j3d/JoglPipeline.java#L5487

Edit.2: Harvey, please replace GL_TEXTURE_2D by GL_TEXTURE_3D, I'm probably right and MrFreeze will confirm whether it works. It would be fine to provide a build with this fix at least to ensure it works.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Texture3D Bug with Java3D 1.6 pre8 on MacOsX

hharrison
Agreed, the jogl pipeline was essentially transcribed from the OpenGL pipeline, likely a few more bugs in there
that would be found just by reading the two side by side.

I'll try to get a -pre9 out tonight.

Harvey
Reply | Threaded
Open this post in threaded view
|

Re: Texture3D Bug with Java3D 1.6 pre8 on MacOsX

hharrison
In reply to this post by MrFreeze
Please try with the -pre9 I have uploaded here:

http://jogamp.org/deployment/java3d/1.6.0-pre9/

Let me know how well (or not!) that simple type fix goes for you.

Harvey
Reply | Threaded
Open this post in threaded view
|

Re: Texture3D Bug with Java3D 1.6 pre8 on MacOsX

MrFreeze
Works like a dream now ;) Thanks for the fast fix!

MrFreeze
Reply | Threaded
Open this post in threaded view
|

Re: Texture3D Bug with Java3D 1.6 pre8 on MacOsX

gouessej
Administrator
Thank you for the feedback.
Julien Gouesse | Personal blog | Website