On 22. Jun 2012, at 4:53, maxtangli [via Software] wrote: > I'm sorry, but I don't understand the concept of pixel viewport. I go through > the website but I can't find any documents about it.
It's the 2D area of the window used by the channel, in pixels. > the code should be like this: > const eq::fabric::PixelViewport& pv = getPixelViewport(); > // QUESTION: what should I do? > glReadPixels(0,0,readDrawWidth,readdrawHeight,GL_RGB,GL_UNSIGNED_BYTE,pixels); > > ... > glDrawPixels(...); Using pv.w and pv.h would be a good start. Understanding glReadPixels and associated state (e.g. glRasterPos, glPixelStore) is essential. The Channel::frameReadback code does the same thing, though this is unnecessarily complex for your use case. > I'm sorry for bother you so much, but I don't understand equalizer's internal > principle very well. > Would you please give me some suggestions on how to learn equalizer? I suggest reading the Programming Guide and general OpenGL documentation. HTH, Stefan. -- View this message in context: http://software.1713.n2.nabble.com/Multi-Projector-with-Equalizer-tp7580243p7580581.html Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com. _______________________________________________ eq-dev mailing list [email protected] http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev http://www.equalizergraphics.com

