On Wed, Apr 17, 2013 at 1:54 PM, Ferdinand Majerech <[email protected]> wrote: > The glCopyTexSubImage copies pixels from the buffer specified by > glReadBuffer() before \ > (if glReadBuffer() was never called, it's the frontbuffer for > single-buffering, backbuffer with double-buffering) > > The last 4 args specify x/y/width/height of area to copy from the buffer, > the viewport_texture_offset > args specify where in the texture to copy the data (the X and Y offsets of > that area) > > (More detail in docs: > http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexSubImage2D.xml, > http://www.opengl.org/sdk/docs/man/xhtml/glReadBuffer.xml > )
Yes, I did find the function's documentation page, but it wasn't very clear to me, as I don't know any OpenGL. Anyway, I was more interested in what that function call is supposed to do in the context of that particular code. > [snip] > > A different way (and possibly easier to implement?) > way would be to "stretch" the texture coordinates so that > the texcoord values that would map to the bounds of the copied image data > with the square texture in old code would map to bounds of the non-rect > texture that > is being used instead in the new code (i.e. to [0,0]-[1,1]) > (Just came to my mind, not 100% sure if this is exactly how to do it) > > [snip] There seems to be a method - blitFramebuffer() - that supports scaling: http://qt-project.org/doc/qt-4.8/qglframebufferobject.html#blitFramebuffer > > (Note that in the current code, either texture subimage copy or border would > need to be added > to the Renderer API - (the former a major PITA to make sure we don't leak > any GL state, the > latter should be rather easy) - I can do that but not right now (thesis) - > so it's best to experiment > right on the 4192 revision). The idea is not just to replace that function call, but to make the whole SMD code work. But since you are busy with your thesis, the people who complain about this will have to wait a bit more. Unless I manage to figure out something in the meantime. Thank you for the attention! Bogdan ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Stellarium-pubdevel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
