Quake MD2 animation test V0.01
Had the urge to try and write MD2 model loader/render for PB this morning. Turns out to be pretty simple.. The picture bellow shows a couple of animated dragon models being rendered with alpha blending to make it a little bit more interesting. Even though the demo is written in PlayBasic V1.64j and the code is pretty ugly, it still runs pretty well considering.
I'll post a demo later :)
Quake MD2 animation test V0.02 This little example loads a MD2 model (ID softwares Quake2 model format) and renders the model on screen (using TextureTri) with animation. The demo has various key controls to set the rendering mode and you can rotate using the arrow keys.
Demo Controls: Arrows = Control object rotation
F1 = Toggle Filtering (Bilinear filtering)
F2 = Set texture drawing to "solid"
F3 = Set texture drawing to "Alpha50"
F4 = Set texture drawing to "Alpha add"
F5 = Set texture drawing to "Alpha Subtract"
ESC = EXIT DEMO
Download: [plink]Quake MD2 Loader Test V0.02b (http://www.underwaredesign.com/files/demos/Quake_Md2_Loader_V002b.zip)[/plink]
Video:
great job 8)
nice one,very smooth.
have you managed to get anyone working on an IDE yet?
whatever happened to Empty? was he abducted by aliens?
Quotehave you managed to get anyone working on an IDE yet?
nope. Volunteering are we ? :)
Quotewhatever happened to Empty? was he abducted by aliens?
he joined the cult of people who work for a living :)
i would love to,but i just don't have the time unfortunatley
I'd help, but I don't know how -_-
Hey Kevin!
How's life? Just looking around at things a bit.
I love this demo. I can't seem to find the source code. Can I get a copy?
I see other places where there is .md2 but not like this one.
The others are static while this one is animations.
That's what makes this one stand out!
Also do you have any other model loaders available?
We were working on one for DirectX a .X file loader can you point the way?
And one last request don't know if you got any that are not here obvious?
Thanks
Your friend,
Scott.
DirectX loader
->Simple Direct X File Loader (Direct 3D) (https://www.underwaredesign.com/forums/index.php?topic=2176.0)
Original (2000 era) DarkBASIC Version
See->File Format Loader / Savers -- Xobject loader (https://www.underwaredesign.com/?page=programs.Dark-Basic-Source-Codes)
Animation
Animations are applied during rendering, not loading. The animated frame is created by interpolation (lerping) between two sets of vertex.
Lerp Vertex (https://www.underwaredesign.com/forums/index.php?topic=3033.msg20250#msg20250)
Related Stuff
PolyWolf - Wolfenstein 3D Engine (https://www.underwaredesign.com/forums/index.php?topic=4836.0)
PS3D (Play 3D) software 3d rendering libraries (https://www.underwaredesign.com/forums/index.php?topic=4457.0)
ASC II 3D Object Loader / Viewer V0.02 (https://www.underwaredesign.com/forums/index.php?topic=4062.0)