Main Menu

Recent posts

#51
Support / Re: setUniform with int array ...
Last post by EgonOlsen - April 25, 2024, 11:19:36 AM
No, there isn't. I guess, I never saw the need for it so I somehow overlooked it. Do you need support for this?

Internally, it's used (as you've noticed) for setting the blending modes, but that's the only part that uses it.

About the other questions:


  • There's no setter for short-arrays in the API, so I guess not...
  • I'm not limiting this, so I guess it depends on the GPU/driver what the limit is.
#52
Support / setUniform with int array ?
Last post by MichaelJPCT - April 24, 2024, 05:53:52 AM
hello Egon,
it seems that there is no setUniform(string,int[] val). but in java doc of glsl shader there is: uniform int blendingmode[4].
is that right?

another question , can there be uniform short array?
another question , can a uniform array be longer than 1024 elements?

thanks.
#53
Projects / Re: Neuro Tennis
Last post by aleks1283 - January 28, 2024, 03:14:05 PM
Quote from: AeroShark333 on January 28, 2024, 02:23:59 PM
It's a cool game but some things I noticed:

-> Is the game supposed to be played in landscape mode; I believe portrait mode might work as well
-> I found the controls a bit hard (on my Samsung Galaxy Note 9 (Android 11) the button hitboxes seem a bit too small that it doesn't always register my presses when I try to press a button)
-> Additionally, I think it would be nice to have gyroscope controls maybe for left and right movement (it would also reduce the amount of buttons on screen; or allow the remaining buttons to be enlarged)
-> Lastly, I am not sure about this but it feels like the ball speed does not reset to a slower speed once one of both players has scored... (this has lead to sometimes 3 goals in a row because there is not much time to react after a goal has been scored)
-> Another suggestion might be to let the ball start closer to the opponent instead of from the center of the screen (so that the ball travels a bit further and allows for a better reaction)


Hello. I made this application to study neural networks (although I didn't implement in app), and if the game suddenly becomes popular, I'll make your recommendations, thank you)))
#54
Projects / Re: Neuro Tennis
Last post by aleks1283 - January 28, 2024, 03:08:46 PM
Quote from: EgonOlsen on January 28, 2024, 01:19:19 PM
What's the minimum requirement for this game? I can't install it on any of my devices (granted, they are all a bit older now... ;D )...
Hi Egon, android 11+
#55
Projects / Re: Neuro Tennis
Last post by AeroShark333 - January 28, 2024, 02:23:59 PM
It's a cool game but some things I noticed:

-> Is the game supposed to be played in landscape mode; I believe portrait mode might work as well
-> I found the controls a bit hard (on my Samsung Galaxy Note 9 (Android 11) the button hitboxes seem a bit too small that it doesn't always register my presses when I try to press a button)
-> Additionally, I think it would be nice to have gyroscope controls maybe for left and right movement (it would also reduce the amount of buttons on screen; or allow the remaining buttons to be enlarged)
-> Lastly, I am not sure about this but it feels like the ball speed does not reset to a slower speed once one of both players has scored... (this has lead to sometimes 3 goals in a row because there is not much time to react after a goal has been scored)
-> Another suggestion might be to let the ball start closer to the opponent instead of from the center of the screen (so that the ball travels a bit further and allows for a better reaction)
#56
Projects / Re: Neuro Tennis
Last post by EgonOlsen - January 28, 2024, 01:19:19 PM
What's the minimum requirement for this game? I can't install it on any of my devices (granted, they are all a bit older now... ;D )...
#57
Projects / Neuro Tennis
Last post by aleks1283 - January 25, 2024, 08:14:33 AM
#58
Support / Re: sphere model texture
Last post by AeroShark333 - December 29, 2023, 07:07:09 AM
Personally, I use:
Object3D.invertCulling(true);

See: https://www.jpct.net/jpct-ae/doc/com/threed/jpct/Object3D.html#invertCulling-boolean-

Alternatively, it is possible to use: https://www.jpct.net/jpct-ae/doc/com/threed/jpct/Object3D.html#invert--
I don't think there is much of a difference...
#59
Support / sphere model texture
Last post by srymurphy - December 29, 2023, 05:28:23 AM
I used the JPCT framework to implement a 360 degree video player based on a sphere model, and I found that the texture I pasted is on the outside of the sphere. What interface should I use to paste the texture inside the sphere? Threejs can use sphere. geometry. scale (1, 1, -1) to change the direction of z, so how should JPCT achieve the same effect.

#60
Projects / Re: OpenRoad - Arcade racing
Last post by EgonOlsen - December 21, 2023, 10:58:01 AM
My approach is highly simplified as well. It only has to work for this kind of retro-styled arcade racer. Generating an actual landscape with free roaming would have been a completely different and much more complex story.