Archived

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

Jankey

Curved Surfaces?

Recommended Posts

Jankey    122
If everyone of you knows Quake 3 ... you know the the Engine has Curved Surfaces ... That means ... The Object is more smooth than it has Polygons ... how does this work?`... i think there musst be a way get more information about the 3D Calculations on the 3D Card and how to manipulate then? .... does anyone of you have a Code or a link? It would be interresting to do this by the Graphics Accelator on the Graphics Card ... if you have information please post ... thx J@nkey

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
i may be wrong, but i read somewhere that the curves are tesselated at load time, and treated as vanilla triangles from then on. so they go to the 3d card as tris...

Share this post


Link to post
Share on other sites
zedzeek    528
yes i handle curves the same way, the info for the curves is stored as control points but i first create a surface of triangles from these points before i give it to opengl. thus it gets treated no different than normal surfaces

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
also, if you are interested in curved surfaces calculated in hardware, look under n-patches. The dx sdk docs have info on them, the nvidia developer site has info on them. The ati developer site has info on them.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
watch out thoiugh thats only in harware with geforce3 + radeons

Share this post


Link to post
Share on other sites
Jesper T    322
Howdy, i''ve been workin a little with curved sufaces, take a look at these screens here:

http://home.online.no/~7396/delta/

All of those are based on 12 control points (cept the cylinder thingy)

Basically what i did was to make a X*X grid based on four bezier patches

I also found out that to calculate the suface itself takes some time if the grid gets much more detailed than 20*20 quads (still a lot less than a sec though, but noticable)
So i recon that the curved surfaces in quake is pre-calculated, and then how many polys it use probably depends on framerate or maybe distance from the camera (I dont know for sure, but it seems more logical to me)

The way I did this may not be the best way though, I never read any tutorials on it, just got the formula for bezier curves from a web site and found the rest out myself. But if u got any questions of how to use the bezier thingy, just ask.

JT

Share this post


Link to post
Share on other sites
Vlion    151
Computer Graphics: Principles and Practice.
Look up that book. Its got a section on curves in 3D.
~V''lion

I came, I saw, I got programmers block.
~V''''lion

Share this post


Link to post
Share on other sites
Jankey    122
hmm quite Interresting ... But i want to use more of the Graphics Accelerator Speed of my GeForce 2, I know John Carmack used his own rouines to get this with the Surface ... ( I Thing it would look nice with specular Shading *gg* )

Share this post


Link to post
Share on other sites