3D graphics with small3dlib and FlexC
Rayman
Posts: 14,662
I've been testing out various C codes with FlexC...
I was able to get small3dlib working in just minutes: https://gitlab.com/drummyfish/small3dlib
Unfortunately, P2 doesn't have the memory to do all the models and the rendering speed is also slow...
Still, maybe in combo with more cogs and HyperRam for frame buffering, might be able to do something.
Also, there are other codes like this one out there, so maybe there's something better...
Anyway, check out this 160x120 rendering of a textured house on top of 640x150 bitmap of birds:
An amazing 2 fps
drummyfish also points out that he has a raycaster that can be used in conjunction with this. That might be interesting...
I was able to get small3dlib working in just minutes: https://gitlab.com/drummyfish/small3dlib
Unfortunately, P2 doesn't have the memory to do all the models and the rendering speed is also slow...
Still, maybe in combo with more cogs and HyperRam for frame buffering, might be able to do something.
Also, there are other codes like this one out there, so maybe there's something better...
Anyway, check out this 160x120 rendering of a textured house on top of 640x150 bitmap of birds:
An amazing 2 fps
drummyfish also points out that he has a raycaster that can be used in conjunction with this. That might be interesting...
Comments
Set for Vga expansion on P0 of Eval Board.
Wot!? Are you planning a 3GHz P3 there Chip?
Those circular transforms could be pipelined in the CORDIC. Just one cog could make it several times faster.
Figured out how to export the cube from SolidWorks to SW Visualize and then export as .obj and then use the tool to create the .h file for the object.
Haven't figured out how to do the texture yet... I just used a texture from a different object...
So, there may be some hope for this...
J