Main Menu

Recent posts

#1
Support / Re: Problem with AWTGLCanvas
Last post by AGP - Today at 02:05:09 AM
There's a little problem with the Canvas fix: it's not centering. I've only noticed once I updated jpct on a very centered (fighting) game. Check out the two images. One, naturally, is before the fix, the other one is after. Everything renders in the same place, it's just that the new version doesn't clip on the canvas space.

Also, we're missing a version of blit() because the following line isn't compiling: buffer.blit(splash1, 0, 0, 0, 0, splash1.getWidth(), splash1.getHeight(), buffer.getOutputWidth(), buffer.getOutputHeight(), 200, true);

https://www.dropbox.com/scl/fi/hlz31f7yuhgpusijmhjbw/CanvasFix_before.png?rlkey=rx8al2fz1ani7dz3khprxkgc5&st=cxyi3f3w&dl=0

https://www.dropbox.com/scl/fi/dinizqm379uh1rzaho1qf/CanvasFix_after.png?rlkey=axi07hpkewics8qbfmsgpp65m&st=9ww1q8pb&dl=0
#2
News / Re: Forum upgraded to 2.1.4
Last post by zerh - October 23, 2025, 06:23:23 AM
Quote from: AGP on November 24, 2024, 12:32:49 AMNow all we need is support for a current lwjgl. ; )


Agree, It is needed to make JPCT work on the new Apple chips. :(
#3
Support / Re: Warning: [removal] Float(f...
Last post by EgonOlsen - October 21, 2025, 08:56:01 PM
That's because they want you to use Float.valueOf(...) instead of new Float(...) for ... reasons. valueOf() has been added in 1.5, but jPCT is still being compiled to run with 1.4 to make it possible to run the software renderer on really old machines. If that's reasonable or not is another question, but that's how it is for now.
I don't think that they'll ever remove new Float(...), because it will break lots and lots of old code for no reason other than some guy thinks that it's nicer this way. The same applies to finalize(). It's not advised to use it for your own horrifying purposes for at least a decade now, but they haven't provided any other way to clean up stuff before an instance gets garbage collected by the VM, in case the programmer didn't do it.

If you have something to share, I'll be happy to include it.
#4
Support / Warning: [removal] Float(float...
Last post by AGP - October 20, 2025, 11:17:34 AM
And I'm only using JDK 21 (I never go to bleeding edge purposely). Also: warning: [removal] finalize() in Object has been deprecated and marked for removal.

The good news: I made an OrthographicCamera class which works with minimal changes to AWTGLRenderer and World. I'll add it to SoftGLRenderer also. I'd be more than happy to share it with you if you added it to the official release.
#5
Support / Re: Object3D.mergeAll(List)
Last post by EgonOlsen - October 10, 2025, 10:55:00 AM
This should work:

Object3D.mergeAll(new SimpleGlbLoader().loadGlbNoSkin(modelFile).toArray(new Object3D[1]))
#6
Support / Object3D.mergeAll(List)
Last post by AGP - October 09, 2025, 09:21:58 PM
Egon, could you possibly add that to version 1.33? I'm trying to mergeAll without looping but the line Object3D.mergeAll((Object3D[])new SimpleGlbLoader().loadGlbNoSkin(modelFile).toArray()) doesn't work. If I have to loop, we're back to very slow merging.
#7
Support / Re: Problem with AWTGLCanvas
Last post by AGP - October 06, 2025, 09:22:10 PM
It works, thanks a lot. I'm glad jpct is back at form. Actually, my standalone GLB importer is nearly perfect now. I have a script for splitting animations inside Blender and exporting multiple clips straight into jpct, so it's better than at form.
#8
Support / Re: Problem with AWTGLCanvas
Last post by EgonOlsen - October 06, 2025, 10:31:30 AM
Opps, I missed that. I've updated the download, please try again.
#9
Support / Re: Problem with AWTGLCanvas
Last post by AGP - October 03, 2025, 12:38:25 AM
Exception in thread "main" java.lang.NoClassDefFoundError: com/threed/jpct/AWTJPCTCanvas$1
        at com.threed.jpct.AWTJPCTCanvas.init(AWTJPCTCanvas.java:53)
        at com.threed.jpct.AWTJPCTCanvas.<init>(AWTJPCTCanvas.java:38)
        at com.threed.jpct.AWTGLRenderer.init(AWTGLRenderer.java:73)
        at com.threed.jpct.FrameBuffer.enableRenderer(FrameBuffer.java:1154)
        at com.threed.jpct.FrameBuffer.enableGLCanvasRenderer(FrameBuffer.java:739)
#10
Support / Re: Problem with AWTGLCanvas
Last post by AGP - October 02, 2025, 02:05:25 AM
Thanks very much. I'll let you know before I sleep.