Not sure - I've got a Zero so I'll try it out - be nice if it were!If it is mostly VC4 code then a similar frame speed on a Zero?
I mostly use Zero's USB booting for VC4 coding, saves SD card messing about.
Code uses SDL2/OpenGL quite extensively.How much SDL did you need to use?
I've written the code so it's simple to use including a shapes library that will support extrusionsOpenGLES is harder without good examples that make sense?
The ship model was made in 3DS Max with some tweaking through Blender.Was this all done on a Pi or did you use PC tools?
... I just tried the ship on my Pi Zero and I'm seriously stunned that it appears to run as fast as my Pi3 model B on a 64MB GPU partition!If it is mostly VC4 code then a similar frame speed on a Zero?
That's what I was hoping... I just tried the ship on my Pi Zero and I'm seriously stunned that it appears to run as fast as my Pi3 model B on a 64MB GPU partition!
You're right - I underestimated what the Pi (Zero esp.) can do.Raises the bar for us mere code hackers
I had to look up the obj file format, did not know it was text.I was also pleasantly surprised how fast the model loaded from a raw OBJ ... only a second or so
Not my video, that's Garry's work, the creator of Ultibo.your intro video really shows off its simplicity!
This might make sense now.OpenGL ES rendering with and without X server, including drawing to bitmaps
I'll be uploading my OBJ code soon so you can take a look ... basically the OpenGLES arrays can be setup how you want.The trick seems to be obj file to opengles array conversion.
Code: Select all
vec3f position vec3f normal vec2f uv
Why not?3D games on Zero's?
Yep, all you need is multiple objects, physics, collision stuff and some AI and you have a full game engine, I think.I suppose the code I'm uploading is a mini-engine employing hierarchical transforms, scene manager, model and resource management for mesh, material and textures. Other goodies include avatar, camera and light classes plus a general default shader.
Would be interesting to find out although all my code is 32bit/single float precision??Gavinmc42 wrote: ↑Wed Jun 13, 2018 7:03 amIt took me some time to notice the glxgears demo running in the screenshot.
I just got the Mesa3D demo stuff compiling on Gentoo64.
There is a simple 3D terrain demo that works
Lots of other demos run too
Wondering if your code would run any faster in Aarch64 and if it can be done in OpenGL and not GLES.
For OpenGL I think Eric Anholt has a layer above OpenGLES that converts it?
OpenGL code will compile for 32bit Zero's too?