q: texture lookup
Hi, I am sorry if this question is very simple, but I am newis to
openGL. I have a question about textures. Say I have an image, where
each color in that image defines a lookup into another image.
For example, an image could be
[2 1] [1 1] [1 1] [1 2]
[1 1] [1 2] [1 2] [2 2]
and i have the lookup image
[4] [1]
[3] [0]
the final output would be
[3] [4] [4] [1]
[4] [1] [1] [0]
Is there an efficient way to render this image using textures that are
stored on the graphics hardware? (So I can use mipmaps, interpolation,
and all that good stuff?). I can render it by storing both in memory
and filling the array myself, then drawing it as a texture, but I
figure there must be a more efficient way. Thanks!
.
Relevant Pages
- Re: RenderColorTarget bug?
... RenderColorTarget semantic to specify them for creation as render targets, ... It runs for 5 passes and has two pixel shaders -- one is> called ... > should render to differnt textures and the fifth should blend these> textures ... (microsoft.public.win32.programmer.directx.graphics) - Re: Speeding it up
... done some of these but as i dont know im gonna say them anyway. ... Reduce the overhead in your render method. ... you remove potentially thousands of vertices from the transformation pipe. ... textures dont ever have more textures on screen than your video mem allows. ... (microsoft.public.win32.programmer.directx.graphics) - locked textures in sperate thread
... I'm currently writing a imaging application in which I am using seperate ... I then unlock the textures. ... WM_PAINT I have the render routine which loops through the list of textures ... :Cannot render when currently set textures are locked. ... (microsoft.public.win32.programmer.directx.graphics) - Re: Lost devices and render-to-texture
... > input textures and render-to-texture to an output texture (i.e. some ... > rendered to the output texture, ... Input textures (which are not render targets) and the current ... (microsoft.public.win32.programmer.directx.graphics) - Re: AudioVideoPlayback! (thread title typo)
... Seperate render loop. ... The program is based on a set of screens, each of which has a set of ... An object may be of a movie type, ... about 1 in 5 executions eventually turn other textures black. ... (microsoft.public.win32.programmer.directx.managed) |
|