Recent Posts

Pages: [1] 2 3 ... 10
1
Support / Re: raspberry pi, orange pi, etc
« Last post by AGP on April 28, 2023, 02:14:28 am »
Not to keep hitting the same notes, but Raspberry PI does use Vulkan... (https://www.raspberrypi.com/news/vulkan-update-version-1-1-conformance-for-raspberry-pi-4/)

If jpct would use the Vulkan renderer I would write a glb importer both for Java and for my C# port. It gives me more pleasure to program for jpct than it does for an engine like Godot (as much as I like Godot). Makes me feel like I'm actually needed. lol

Do you know what? I wrote one anyway. My glb importer only uses the org.json jar. It can read all the built-in textures and set them to the model. Limitations: it will set the normal maps as diffuse and it's not reading any kind of animations. But I'm pretty happy with it. ChatGPT did help a lot, but darn does it take a lot of coaxing to get consistent help from it.
2
Support / Re: raspberry pi, orange pi, etc
« Last post by EgonOlsen on January 26, 2023, 04:01:20 pm »
Yes, looks like it. Not sure, how well LWJGL works on the Raspi though. It should run, because there is support for Linux ARM32/64 and I found some threads about it.

In that case, Vulkan or not, it should be possible to run jPCT...BUT...that would require to port jPCT to LWJGL3 and I don't think that this is worth the effort.

3
Support / Re: raspberry pi, orange pi, etc
« Last post by AGP on January 25, 2023, 11:20:20 pm »
Oh, and here's something I didn't know: lwjgl now has Vulkan bindings: https://www.lwjgl.org/.
4
Support / Re: raspberry pi, orange pi, etc
« Last post by AGP on January 25, 2023, 11:11:51 pm »
You might be right about the bloating of the drivers, but I don't think that that's all it is. There's a whole lot of 3d tricks that no one could have predicted when OpenGL was conceived. I have neither looked at Vulkan nor read this book (https://github.com/lwjglgamedev/vulkanbook). But the fact that the book exists must mean there are Java wrappers. And even if it were just that the drivers got bloated, well, the drivers got bloated!
5
Support / Re: raspberry pi, orange pi, etc
« Last post by EgonOlsen on January 22, 2023, 12:18:45 am »
Have you ever looked at Vulkan? I'm all for low level coding if needed. I'm still coding some stuff in assembly language. But Vulkan...I can't be bothered, to be honest. You have to do really complicated calls to do basic things and I fail to see why this is supposed to be an advantage...yeah, performance and such. But to be honest, I rather think that the better performance comes from the fact that the old APIs and their supporting drivers got bloated over the years, not because going low level is the only way to go. After all, you are still going to wrap the low level calls of Vulkan in some higher level calls, so why not design them higher level it the first place?
Anyway, that's actually not the point. It's not that there is no support for OpenGL ES on the Raspi, because there is. There's no binding to Java for it. And there's none for Vulkan either, so it wouldn't help anyway... ;)
6
Support / Re: raspberry pi, orange pi, etc
« Last post by AGP on January 19, 2023, 06:42:26 pm »
Not to keep hitting the same notes, but Raspberry PI does use Vulkan... (https://www.raspberrypi.com/news/vulkan-update-version-1-1-conformance-for-raspberry-pi-4/)

If jpct would use the Vulkan renderer I would write a glb importer both for Java and for my C# port. It gives me more pleasure to program for jpct than it does for an engine like Godot (as much as I like Godot). Makes me feel like I'm actually needed. lol
7
Support / Re: Disable cameraLookAt
« Last post by AeroShark333 on January 13, 2023, 07:19:15 pm »
I'd temporarily store/clone the RotationMatrix of the camera on the moment you enable the freecam. This means you'll have the last known camera rotation matrix which was used when the camera used #lookAt(...). Then instead of doing #lookAt(distantDummy), you do #setRotationMatrix(temporaryMatrix)
8
Support / Disable cameraLookAt
« Last post by Ackastar on January 13, 2023, 04:21:30 pm »
Essentially I have a camera looking at and following a vehicle as it moves around in 3d space and sometimes I'd like to disable the lookat and start a freecam.
i.e turn of the cameraLookAt temporarily to be able to move around by translating the cameras position, maintaining its rotation.

I've so far tried to create a distant point to replace cameraLookAt(vehicle) with cameraLookAt(distantDummy) but im not quite satisfied with the solution.

Has anyone done anthing similar?

Thanks
9
Support / Re: raspberry pi, orange pi, etc
« Last post by EgonOlsen on December 04, 2022, 10:54:26 pm »
Yes, sure...the software renderer will work just as it is on a Pie.
10
Support / Re: raspberry pi, orange pi, etc
« Last post by MichaelJPCT on December 04, 2022, 10:02:40 pm »
what about the software renderer of jpct? although slow, it is useful in some cases.
Pages: [1] 2 3 ... 10