Reading 3D files with the Propeller?
Microcontrolled
Posts: 2,461
What is the composition of common 3D filetypes? The COLLADA filetype, specifically.
I've seen 3D files decoded with microcontrollers before, so why not the Propeller?
Also, is there enough on-board RAM space for decompression?
Thanks,
Micro
I've seen 3D files decoded with microcontrollers before, so why not the Propeller?
Also, is there enough on-board RAM space for decompression?
Thanks,
Micro
Comments
-- http://www.khronos.org/collada/
You might want to take a look at the thread (on the old forum) http://forums.parallaxinc.com/forums/default.aspx?f=25&m=358882
Phil Pilgrim had a wireframe 3D example.
Also Baggers has done some work with 3D (I think it was PropGFX-based), so you might search for that in the Hydra forum.
None of these are COLLADA format, but might give you some ideas of how to get it done.
--trodoss
All three of those can do wireframe. STL is just a triangle file, and OBJ can contain a lot of things, including color definitions.
A prop trudging through those could render an image to the screen, or to another buffer file, to be displayed after processing the file has completed.
There isn't enough RAM to do much else.
Baggers has polys in PropGFX... Those are real time, but I don't know their characteristics yet.
Probably something like this would have to be done in stages.
Load COGs with simple text driver and file access code.
Read through the source file, producing output files.
When done, unload a lot of stuff, load in video display driver, and some simple I/O, maybe keyboard mouse.
Read output files and render to screen.
Edit: I used a proprietary file format, that I made for exporting models from Lightwave.
http://viewstl.sourceforge.net/
The Linux version is the most current. Will do million polys, no sweat!
The format is very simple. Maybe that bit of code helps to understand something about how this kind of thing can go.