www.xbdev.net
xbdev - software development
Tuesday October 29, 2024
Home | Contact | Support | 3D File Formats The bits and bytes... | 3D File Formats The bits and bytes...
     
 

3D File Formats

The bits and bytes...

 


MD3 Format - [Quake 3 Character File Format]
Author bkenwright@xbdev.net

Have you heard of the game quake?... well the quake file format version 3 will be covered here...its very similar to the quake 2 version, but they took it a bit further by splitting the mesh into various parts - so you have a simplified animated boned character.

Well I decided the best way to introduce you to the file format, is to give you it in main parts, first we'll describe how to extract a single static 3D part of the .md2 file, then show you how the animated data is stored. Then to top it all off, how to create classes which can be re-used over and over again... first a simple class which is independent of DirectX and a efficient DirectX3D class as well.



MD3 - Quake 3 Animated Character File Format Tutorials (DirectX/C++)


Look inside...
More bits & bytes
Found you, you sneaky vertices.
Bring in the other files
What is it! Yikes (Tags)
Basic Graphics - Proof that our vertices are right!



Divide and Conquer


Animated Character


Give him a gun.



MD3 Example (JavaScript/WebGPU)


Web-based Parser/Viewer. The loader is in Vanilla JavaScript with no external libraries - pretty compact 100ish lines - the render code to draw/visualize is the WebGPU API (again no external libraries - uses the builtin WebGPU API). In addition to drawing the 3d model - it loops over the frames (animates the mesh).

JavaScript Loader/Viewer



Resources


Introduction WebGPU
WebGPU Web-Based Loader/Viewer
Details on MD3 Format






 
Advert (Support Website)

 
 Visitor:
Copyright (c) 2002-2024 xbdev.net - All rights reserved.
Designated articles, tutorials and software are the property of their respective owners.