Archived

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

sjelkjd

How to render nxm Bezier Patches?

Recommended Posts

Hi all. I''ve gone through NeHe tutorial 29, which deals with 4x4 bezier patches. Now, I''ve been working on a Quake 3 .BSP map loader, and all the bezier patches are not 4x4...they''re usually arbitrary numbers, like 3x3 or 9x5. So, can anyone help me figure out how to string these together?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quake 3 uses Quadratic bezier patches, not cubic (which is what is used in the tutorial).

Share this post


Link to post
Share on other sites
Wow, that actually helps a lot, because i just figured out that for odd numbers of control points you can just merge the patches:
(1 2 [3) 4 <5] 6 {7> 8 9}

Thanks AP!

Share this post


Link to post
Share on other sites
Hey, as an aside, i got the quake map successfully loaded, with the bezier patches working and everything. It looks pretty cool =)

If anyone else runs into problems loading Quake 3 bezier patches, I can probably help =)

Share this post


Link to post
Share on other sites
OK I''ll take you up on that offer of help.

1st: Did you ever figure out how to triangulate a polygon?
2nd: My renderer doesn''t touch the beziers yet. Just a CLUE as to where to start might e nice....

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