www.xbdev.net
xbdev - software development
Friday February 21, 2025
Home | Contact | Support | 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












Ray-Tracing with WebGPU kenwright WebGPU Development Cookbook - coding recipes for all your webgpu needs! WebGPU by Example: Fractals, Image Effects, Ray-Tracing, Procedural Geometry, 2D/3D, Particles, Simulations WebGPU Games WGSL 2d 3d interactive web-based fun learning WebGPU Compute WebGPU API - Owners WebGPU & WGSL Essentials: A Hands-On Approach to Interactive Graphics, Games, 2D Interfaces, 3D Meshes, Animation, Security and Production Kenwright graphics and animations using the webgpu api 12 week course kenwright learn webgpu api kenwright programming compute and graphics applications with html5 and webgpu api kenwright real-time 3d graphics with webgpu kenwright webgpu for dummies kenwright webgpu api develompent a quick start guide kenwright webgpu by example 2022 kenwright webgpu gems kenwright webgpu interactive compute and graphics visualization cookbook kenwright wgsl webgpu shading language cookbook kenwright WebGPU Shader Language Development: Vertex, Fragment, Compute Shaders for Programmers Kenwright wgsl webgpugems shading language cookbook kenwright WGSL Fundamentals book kenwright WebGPU Data Visualization Cookbook kenwright Special Effects Programming with WebGPU kenwright WebGPU Programming Guide: Interactive Graphics and Compute Programming with WebGPU & WGSL kenwright



 
Advert (Support Website)

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