From: Andreas K. <and...@we...> - 2004-11-09 20:06:19
|
Hi! > Would it be possible to offer some form of hook, callback function or > callback class? > That way the user of Ray++ can make a separate compilation to quickly > see the rendering. > Objects would have to offer the option of rendering themselves quickly > I presume, not just > polygons, but blobs, star fields etcetera too. Sorry, what I wrote was maybe a bit misleading. I do not use any of the OpenGL/GLUT 3D features. All I do is normal raytracing and using OpenGL's 2D raster image drawing capabilities to display the result. What makes this more useful than existing output classes is that I do not simply loop through all pixels to render them, but I do hierachical refinement so that you see a coarse image pretty quickly. Overall rendering time is of course not better than "normal" rendering. > How do you plan to support it? Will it be rendering in the background > as a separate thread, displayed > through OpenGL? Or through an idle function that incidentally updates > the screen while rendering in time slices? I render in the idle function. Not ideal, but works reasonanly well. I don't want to use threads, since this cannot be done in a platform independent way. > This could also be an excellent tool for tweaking things like positions > of objects and camera position, > if you keep the render at coarse level. A poor-mans 3d scene authoring > tool that would suffice for a programmer. This would be nice of course and I already thought about doing that. But I basically only would show bounding boxes and some simple primitives. Everything else is quite some work. It would be nice though. If someone is interested to do it, it would be great! Andreas __________________________________________________________ Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc=021201 |