View Full Version : Loop Subdivision
04-28-2010, 11:35 AM
I am trying to create a program to subdivide 3D surface meshes using the Loop Subdivision Algorithm (http://en.wikipedia.org/wiki/Loop_subdivision_surface).
Obviously the meshes are made exclusively out of triangles.
I was curious if anyone here has worked with this algorithm or has any good resources. Google and Wikipedia aren't much help, as I haven't been able to find a good step-by-step breakdown of the algorithm anywhere.
04-28-2010, 12:44 PM
You did not search very hard, in the first result pages there are a few detailed pages :
04-28-2010, 05:04 PM
Thank you for the reply. Actually, I have seen both of these links already.
The first link is speaking primarily about how to use an existing program and doesn't fully explain the algorithm (I understand how the triangle subdivision works on a per-triangle basis, but how do you apply it to the larger polyhedron).
The second link is good, but definitely too vague. It covers what to do more or less, but not how you would go about doing it.
I would really like to see some kind of pseudocode or step-by-step instructions for how to apply this algorithm in the real world.
04-29-2010, 01:23 AM
Second link outlines the weights of new and updated vertex positions.
First link has complete source code, and loop.c seem fairly readable.
You mean you have difficulty with walking around the vertices/edges/triangles of the model ?
04-29-2010, 02:38 AM
The Real-time rendering (http://www.realtimerendering.com/#curves)-book is your friend. Go get it! Depending on how fast you need the subdivision to be, versus how much time you want to spend implementing it, this is the fastest way to do subd:
If you want it really fast, you should be using the GPU of course. Here is a pre-geometry-shader version producing catmull-clark surfaces:
Today, you could do it using either geometry-shaders, or more better, the new tesselation-units on dx11-level cards.
Hope this helps.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.