Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - EgonOlsen

#1
News / Forum upgraded to 2.1.4
October 14, 2024, 04:33:43 PM
Eventhing looks new and shiny now!
#2
Support / Re: Polygon limitations on screen
July 30, 2024, 10:50:01 AM
There is a setting for max. objects (it's called differently for historic reasons though): https://www.jpct.net/jpct-ae/doc/com/threed/jpct/Config.html#maxPolysVisible
#3
Support / Re: setUniform with int array ?
April 25, 2024, 12:57:15 PM
Should be doable. You can implement an IRenderHook and attach it to the objects in question. In it, implement the https://www.jpct.net/jpct-ae/doc/com/threed/jpct/IRenderHook.html#setCurrentShader-com.threed.jpct.GLSLShader--method and then do something like:


int handle = GLES20.glGetUniformLocation(shader.getProgram(), "your_uniforms_name");
GLES20.glUniform1iv(handle, intArray.length, intArray, 0);


in it...that should work...I guess... ;)
#4
Support / Re: setUniform with int array ?
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.
#5
Projects / Re: Neuro Tennis
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 )...
#6
Projects / Re: OpenRoad - Arcade racing
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.
#7
Support / Re: GLB
December 21, 2023, 06:56:41 AM
Nice one!
#8
Projects / OpenRoad - Arcade racing
December 09, 2023, 12:20:24 PM
Long time no new project here...so I thought that I might as well contribute something.

It's not really a "project", but something that I'm working on from time to time. It started out as an experiment to see, how feasible it is to generate a road based on the random number generator alone. Over the months, it turned into something that you can actually "play" albeit it's far from being a game of some sort.

The road and the AI vehicles are all generated, nothing has been placed by hand. It has basic sounds, arcade like vehicle controls, traffic and a very crude collision "model".

Here's a video: https://youtu.be/o3MthgPRDsE?si=GEl1AJA2DRFxJCaJ

And this is how it looks:



#9
If that's the case, I guess that there must have been a reason for it... ;)

...I just can't remember it...
#10
I see. If you call refreshMeshData() on the controller, the newly calculated normals should be updated in the controller and you can obtain them from there.
#11
I'm not sure what you mean exactly...the vertex controller can access the normals already, so you can modify them there. The issue with that is, as the docs state, that this calculation isn't trivial, because vertex normals depend on adjacent polygons as well.

What do mean by

QuoteIs it possible to obtain the calculated normals so they could be fed into the vertexcontroller immediately?

Which calculated normals?
#12
Support / Re: GLB
November 14, 2023, 10:21:47 AM
I'm not sure...I assume that the format is the same as the one that OpenGL uses? In that case, have you tried to use Matrix.transformToGL() instead? Despite the name, it actually transforms jPCT into GL and back again. Comparing what these two methods do, it looks like as if yours does somehow a "flipped" version of what jPCT's is doing. Like as if it's working on an inverse instead , but I'm not sure...it might be worth a try to give jPCT's method a shot, though.
#13
Support / Re: Sorting
September 11, 2023, 07:42:41 AM
Sorry for the late reply...not sure on what metric to sort such a thing, though. As you've mentioned, it doesn't seem to be a list. And a tree would most likely reflect the parent-child relationship.
#14
Not sure what the screen recorder does. Maybe the built-in video encoder can encode screen content directly? No idea...getPixels() is as slow as OpenGL ES. Plus the conversion into jPCT-AE internal format, which requires some byte flipping.
#15
Projects / Re: my project - Vehicle Simulation
August 10, 2023, 11:34:51 AM
This is an impressive piece of work. I've no idea how to control my plane and I crashed it into the ground, but it's cool nonetheless.