|
From: Dair G. <da...@re...> - 2004-10-05 22:41:02
|
James W. Walker wrote: >> I was reading the code in GeomTest for "createTestRasterize" and >> would like to know why you create UV's for the object =2E.. >It's probably just because of the "Toggle Texture" command in Geom >Test. For your own use, I do not think you need UVs on an object that >will not be textured. That's correct, the UVs are just there so a texture can be applied; if you want to rasterise something that's just drawn with simple colours then you can do without them. Peter Michelsen wrote: >That did the job for the top left corner but now the issue moved to the >bottom right, which would seem more like place. > >Anyway it means that my math's can be a little simpler and the=20 >selection rectangle works in all quadrants so I am happy. The normal offset to apply is 0.375f - google for "opengl 0.375 rasterize" to find some background (basically any offset you apply is a bit of a compromise, but that's normally most reliable). -dair ___________________________________________________ mailto:dair+refnum.com http://www.refnum.com/ |