Performance: Poly vs. Nurbs

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  01 January 2004
Performance: Poly vs. Nurbs

If you are using opengl for displaying polys/nurbs, and let's say you have a very very complicated mesh - would the viewport performance be better with nurbs or polys?
__________________
Cheers,
Thomas
 
  01 January 2004
You can't really say - it depends on the resolution. Ultimately of course, only polygons can be displayed by graphiccards so you have to "tesselate" your nurbs into polygons for the gc. Since this process requires cpu time to do, most of the time nurbs would be slower EXCEPT for the cases in which you are vertex-bound which is rarely the case with modern hardware. One such example is this: if you use thousands of polies to approximate a surface that when modelled with nurbs and converted to polies takes only a few because you view it from far away, then nurbs could be faster. But as anything in programming concerning speed: 1) it all depends and 2) measure it. Do both in a real world scenario (your real world scenario, that is) and measure.

hth,
Daniel
__________________
reality is just for reference
 
  01 January 2004
thx, so in my case polys will be faster.

maybe not the right place, but maybe somebody has an answer.

what do you think is faster, displaying a object (which is build with voxels) as voxels, or converting these voxels with the marching cube alogrithmn and display it as polys.

The object is only a "voxel-skin", so there are no voxels inside the object
__________________
Cheers,
Thomas
 
  01 January 2004
How would you display voxels directly? Are the voxels opaque? Without this info it's hard to answer . Marching cubes is relatively fast but beware that it is patented - there is an alternative somewhere I think, try a search in google or www.flipcode.com, I think I saw a post regarding this topic some (long) time ago there.

cheers,
Daniel
__________________
reality is just for reference
 
  01 January 2004
well...that is the question I'm asking myself the whole day. How should I display them? They are not opaque.

The idea behind this is the following:

You will start and model some simple poly geometry. Then you smooth this geometry (at least if you want some organic shapes). Now you convert these polys into a Voxel object. This means you specify how much detail you want, and than the polyobject get "skinned" with voxels (only a voxel skin, there are no voxels inside the model). Now you can use various brushes to add, and remove voxels from the object. With this method it's possible to paint geometry or just add little details like wrinkles etc.

Now I'm not sure if I should convert the voxels into polys and display the polys (the problem is it will also slow down if you wanna see all little details) or if I should display the voxels.
For displaying the voxels I found two methods, first the simple raycasting method and second this method where you use those polyplanes (like 3d texturing)

I don't think I will use the marching cubes algorithm, it was just an example. Since I have no real volume I can come away with a simpler algorithm. Allready have something in mind....
__________________
Cheers,
Thomas

Last edited by iC4 : 01 January 2004 at 06:24 PM.
 
  01 January 2004
Interesting idea but I see some problems here. First the resolution would have to be pretty darn high if you should be able to add wrinkles that way. Isn't it enough to paint displace maps? What about Metaballs? They are basically voxels and there are well known algorithms for converting them to polies.

cheers,
Daniel
__________________
reality is just for reference
 
  01 January 2006
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 06:45 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.