Main Menu

Recent posts

#1
News / Re: PHP error
Last post by EgonOlsen - October 22, 2026, 11:48:36 PM
I guess this was caused by the update. At least can't spot any errors at the moment.
#2
News / PHP error
Last post by AeroShark333 - October 21, 2026, 09:52:44 PM
Hello,

Probably it would be wise to either temporarily take down the website, or upgrade the PHP version to the latest. Due to https://cert.europa.eu/publications/security-advisories/2026-018

There are also errors in the header on: https://jpct.net/
(which is why I know this site uses PHP)

Best regards
#3
Support / Re: Problem with AWTGLCanvas
Last post by AGP - April 06, 2026, 09:56:34 AM
Yup. By the way, I made a shader that does both shadows and normal mapping without glitching. Even normal mapping alone was glitching before on a Batman model on which I was testing. If you wish I can share that too. But I did have to implement a Material class.
#4
Support / Re: Problem with AWTGLCanvas
Last post by EgonOlsen - April 02, 2026, 07:35:29 AM
Source of what version of which exactly? AWTGLCanvas?
#5
Support / Re: Problem with AWTGLCanvas
Last post by AGP - March 26, 2026, 08:49:27 AM
Egon, would you mind giving me the source to your version? It's only fair since I gave you mine. ; )
#6
Support / Re: Shadow Shader
Last post by EgonOlsen - March 20, 2026, 02:26:38 PM
Maybe I can combine the two then into one. I never bothered with shader based shadows in the desktop version. The android version of course uses them, but it uses shaders across the board anyway (because OpenGL ES has no fixed function pipeline anymore). But I never ported that over to the desktop.
#7
Support / Re: Shadow Shader
Last post by AGP - March 19, 2026, 06:31:21 PM
The shadows look better. And it's meant to work like ShadowHelper.
#8
Support / Re: Shadow Shader
Last post by EgonOlsen - March 19, 2026, 01:21:31 PM
Looks a lot like a shader based variant of the ShadowHelper to me. Is it supposed to work like that or is it something different?
#9
Support / Shadow Shader
Last post by AGP - March 19, 2026, 07:25:22 AM
I'd love for you to include this shader in jpct. This is an example of how to call it:
//In the game loop:
           shadows.setCenter(batman.model.get(0).getTransformedCenter());
           shadows.updateShadowMap(theWorld, buffer, camera);
//The setup:
    private void setupShadows() {
       shadows = new ShadowMapper(1024);
       shadows.setLightDirection(new SimpleVector(.2f, .4f, -.3f));

       shadows.setShadowArea(360f);//120f
       shadows.setShadowBias(0.00f);
       shadows.setShadowDarkness(0.50f);
       shadows.setCenter(batman.model.get(0).getTransformedCenter());

       // ALL visible objects must be casters
       for (Object3D part : batman.model)
           shadows.addCaster(part);
       shadows.addCaster(batman.cape);

       for (Object3D part : joker.model)
           shadows.addCaster(part);

       shadows.addCaster(catwoman);

       shadows.addCaster(batmobile.hull);
       shadows.addCaster(grappleTarget);

       shadows.addReceiver(ground);

       for (Object3D obj : cityObjects)
           shadows.addReceiver(obj);
    }
#10
Support / Re: Problem with AWTGLCanvas
Last post by AGP - January 29, 2026, 06:47:18 PM
I hadn't seen this message. Please do. Then I'll show you what I just did (morph targets, lip-synching with speech synthesizing all offline, of course).