From: Brian P. <bri...@tu...> - 2005-07-16 00:20:58
|
Daniel B. Faken wrote: > Hi All, > > Does anyone have pointers to such work/SPUs? > For example, to convert a 'frame' of some OpenGL-program to 3DSMax > format, .OBJ format, VRML, etc.. > > It seems like a fairly obvious use, but I can't think of any work like > this.. maybe there are some theoretic limitations? > I suppose in the limit this is something like decompilation. > > There is of course file-output. And the GLDB project which > can "capture" an object via a stream-query-language (it hasn't > released any software yet though - just the SIGGRAPH'05 paper at > http://www.cs.jhu.edu/~jab/gldb.pdf), and my own CRFreezer stuff. But > none of these (AFAIK) attempt to deduce the structure of an entire scene > from the GL stream. > One could look e.g. for gl{Push,Pop}Matrix(), gl{Begin,End}(), > gl{Push,Pop}Attrib(), .. as markers for subtrees in a scenegraph. > To extract objects one could look for coincident vertices (and/or use > Chromium's bounding-boxes). Sounds like that would be an interesting project. I don't know of anyone who's tried it. -Brian |