Re: [PyOpenGL-Users] Drawing a bitmap at "native" resolution
Brought to you by:
mcfletch
|
From: Christopher B. <Chr...@no...> - 2011-05-03 15:04:19
|
On 5/2/11 10:31 PM, Ian Mallett wrote: > There's not a way to get around projecting the labels' locations on > screen. right -- I knew that the trick was how to project the location, but not the label itself. > You'd have to use gluProject(...). If you want to be fancy, > you can use a vertex shader to project to get each coordinate. but how? Anyway, it looks like that may not be neccessary, so I can put off learning that. > From there, set up a 2D view. Then, draw each label at the screen > coordinate of its projected location, using textured quads the same size > as your textures. this is the part I don't get -- but i see that Nicolas has given me a demo of that! thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |