Have some Java3d code I would like to try to port to Xith3d. I would like to run some benchmarks. I installed as recommended by xith.orgWhen starting the demos (CubeTest, ...)I get an empty black screen.

Hi I'm assuming that if xith is failing then there would be some kind of stack trace, somewhere. On the other hand a black screen is strange, it should either be light grey like a normal swing background (meaning xith has failed), or a darker grey, meaning xith has managed to get to GL, but something has gone wrong with the boxes. Either way there should be a stack trace somewhere. How are you launching it, from a dos prompt?.

Another option is that it's a graphics card driver problem, were you running the directX version of java3d?, does the opengl version of java3d work?, do *any* opengl applications work?, what OS are you on?, what graphics card and drivers do you have?

Every transformation requires a call to glLoadTransposeMatrixf, which was only added in 1.3. It's easy to fix, though, by pulling the data from the matrix already transposed and call glLoadMatrixf instead - that's what I've done.

I don't know of any other places where >1.2 is used, but I don't deny the possibility. I also must state that I don't know how JoGL handles OpenGL extensions - might it use the GL_ARB_transpose_matrix extension if it's available?

It's easy to fix, though, by pulling the data from the matrix already transposed and call glLoadMatrixf instead - that's what I've done.

Do you have a patch that we can apply to Xith3D renderer classes? This is exactly what I was thinking to do, because of this also seems to be a reason for problems with SiS graphic cards. If you have a patch, can you please submit an issue with attachment?

I will add an entension check and the transpose if it is available. It is more effiecient to use the transpose load because that is the way we store our matrices. I didn't want to incure the overhead of matrix transpose.

Yuri, I'm afraid I can't see any way to attach files to issues or submit an attachment at time of report. Are we talking about the dev.java.net issues page?

Quote

I will add an entension check and the transpose if it is available. It is more effiecient to use the transpose load because that is the way we store our matrices. I didn't want to incure the overhead of matrix transpose.

David, in this particular case it'll make no difference either way - the current code is this:

That reminds me. I also checked in a feature which should make it easier to diagnose problems. two new options: TRACE and ERROR_CHECK can be activated in code or via -DXITH3D_ERROR_CHECK=TRUE, etc to have the opengl error codes checked on every call. TRACE writes to a debug file every call and its parameters.

Heh, yeah I saw that as soon as I looked into the problem. I have checked in a fix to remove the use of loadTransposeMatrix. Should be all set.

Excellent, thanks!

The drawObjectShadow instance can't be fixed in-place so easily. As Transform3D.get(float[]) basically does the same as the code I quoted above, could I suggest a Transform3D.getTransposed(float[]) method? This would neatly fix the problem and remove the need for yet another of these blocks in the future as well.

Thanks. Great fix. Could be that this will also fix some other compatibility issues I have on my check-list.

cfmdobbie,

Quote

Yuri, I'm afraid I can't see any way to attach files to issues or submit an attachment at time of report. Are we talking about the dev.java.net issues page?

Yes, we are taliking about Issuezilla on dev.java.net. It should be [hopefully] possible to add an attachment after you submit an issue - just after submitting you get a confirmation page with an option to add an attachment.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org