Archived

This topic is now archived and is closed to further replies.

thedo

Q3 BSP Curves

Recommended Posts

Does anyone know how curves are stored in the q3 bsp file? My map renderer draw the type 1 (mesh) and 4 (billboards) parts, but i have gaping wounds in the rest of the mesh. I know that they are constructed from 3x3 (or multiple 3x3) bezier patches but in what order is the data stored? I have sat staring at it for ages (I outputted the vertex data to a text file for 1 patch) and couldnt really see much - just wondering if anyone who has done this has any help to offer me. Many Thanks Neil WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!

Share this post


Link to post
Share on other sites
Last two ints in the face structure are the dimensions of the patch. 3x3, 3x9, whatever.

The vertexes associated with the patch are the control points of the mesh, stored row major.

Each object is composed of 3x3 patches, so if you see something like a 3x5 patch, that''s two 3x3 patches side by side, sharing the middle column of control points.

Share this post


Link to post
Share on other sites
OK so if I have a patch of 5x3 would it look like this:


0 1 2 3 4
5 6 7 8 9
10 11 12 13 14


or like this :

 
0 1 2 9 10
3 4 5 11 12
6 7 8 13 14


I am hoping it is like the first way........

Neil

WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!

[edited by - thedo on August 16, 2002 1:57:59 PM]

Share this post


Link to post
Share on other sites