Propeller Application: 3D graphics demo
Beau Schwabe
Posts: 6,568
This is just a DEMO for a 3D graphics engine written in Spin for the Propeller.
As a released object, I hope to have a complete engine written in Propeller Assembly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
As a released object, I hope to have a complete engine written in Propeller Assembly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
zip
1021K
Comments
· You're really making me mad that I don't have more time to play with the propeller chip.
· The demo is way cool. Except I would have liked to see a Parallax Logo instead of a box with an arrow [noparse];)[/noparse]
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
There are only two guaranteed ways to become weathy.
Spend less than you make.
Make more than you spend.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Go ahead Beau, make it so... you can do it... Yah, you can do it...
[noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller + Hardware - extra bits for the bit bucket =· 1 Coffeeless KaosKidd
·
This has to be played with it really does.
Graham
I had to break the video down into multiple files less than 2 Meg in size to meet the upload criteria limit we have.
Have fun!!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Then hours later, realized there was a demo.
WOW!
Then downloaded the Spin files and F11'd it, expecting a blank screen. My 5" b/w monitor came on with this beautiful wire-frame moving 3-D display.
Now I'm expecting 'tons' more for the Propeller to provide than I'd of ever imagined it could.
Thanks Beau, for the visual treat
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
h.a.s. designn
Very impressive.
2 questions.
1. How did you make the wmv? Propeller -> Composite -> Computer Video capture card? I was considering a capture card to use instead of a monitor, code in the prop IDE and the video in another window on my dev notebook.
2. Where's the real hat demo? the propeller needs to spin while the hat is moving!
Seth
This 3D demo is great! Can you make it a VGA version?
Paul
I have a Belkin USB VideoBus II
http://catalog.belkin.com/IWCatProductPage.process?Merchant_Id=1&Product_Id=105106
Which works well with the software that comes with it for capturing the RAW video.
I have a personal copy of Pinnacle Studio Version 8.3.12 that I use for rendering WMV.
Pinnacle Studio has problems with the USB (video time sync issues) but works excellent
with a fire-wire cable which is what I use sometimes if I am using my video camera.
That would involve changing a few things.·· The easiest way would be to create two 3d-object's,
one would be the beanie, while the other would be the Propeller.· Since the beanie and the propeller
are connected to each other on the Y axis then both 3d-object's would get the same X and Z rotation
values, but you would introduce a phase difference in the Y value between the two.· Right?!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 9/15/2006 6:11:21 AM GMT
·
The ultimate idea is to design an object that would not be TV or VGA dependent,
but instead allow the user to decide what the best platform to use for their application
would be.
·
This·demo is written in Spin, and it's just that, a DEMO of what is possible.
Imagination is the key to unlocking more of this potential.· Ultimately I will
make a Propeller Assembly version that I can release. The demo is nice,
because I can get a good reaction indication within the forum and new ideas
for that matter along the way.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Next is to draw something in Rhino3D, add points to the vertexes and then export the point cloud as x,y,z co-ordinates. I just need to decide what to draw.
Graham
If you accidently·run·out of·COGRAM, I would like to propose some memory saving ideas for the 3D engine:
In the translation "engine" you do not use ScnPnt# as a "real array", because you do not do anything with the cumulated results. So I recommend, to use them as simple long variables
this will save 117 longs!
After translation, the SX and SY points represent values from 0..256 (screen res.) thus they could be reduced to word.
This will save additional 40 longs!
If you leave the TV_params and TV_Status·in DAT, this will save you 14 longs!
And actually the optimized datastructure will give you 171 extra longs, this might be enough to draw faces instead of a wireframe!
Graham
Thanks for the tips.... the code is really not optimized. I was able to fiddle with it a little bit though, and between program longs and variable longs I was able to reduce
the size by a total of 226 longs.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.