Click here to Skip to main content
15,900,108 members
Home / Discussions / Graphics
   

Graphics

 
Questionopen gl: getting texture dimensions from a texture handle Pin
Jim Crafton30-Dec-08 13:11
Jim Crafton30-Dec-08 13:11 
AnswerRe: open gl: getting texture dimensions from a texture handle Pin
El Corazon1-Jan-09 6:59
El Corazon1-Jan-09 6:59 
GeneralRe: open gl: getting texture dimensions from a texture handle Pin
Jim Crafton1-Jan-09 7:08
Jim Crafton1-Jan-09 7:08 
QuestionJPEG compression utility Pin
jesarg29-Dec-08 15:47
jesarg29-Dec-08 15:47 
AnswerRe: JPEG compression utility Pin
Tim Craig29-Dec-08 17:55
Tim Craig29-Dec-08 17:55 
GeneralRe: JPEG compression utility Pin
jesarg30-Dec-08 7:02
jesarg30-Dec-08 7:02 
GeneralRe: JPEG compression utility Pin
Tim Craig30-Dec-08 10:29
Tim Craig30-Dec-08 10:29 
Questionshaders and textures. Pin
Jim Crafton29-Dec-08 4:59
Jim Crafton29-Dec-08 4:59 
I'm trying to render multiple fragment shaders in opengl, something like this:

in-img-tex1 --> shader1 --> result --> shader2 --> render tex


I have all the code working for rendering a texture with a single shader working. However when I add a second, it doesn't do anything. I suspect I'm
a) misunderstanding how this is supposed to work
b) not using the correct techniques

The way I'm doing this is to create tex1, load up the image into it. then make it the active text at slot 0. Make the shader program active (glUseProgramObjectARB), bind the texture, and then draw the rectangle where the texture will go. I then repeat this, using the second shader program.

What I'm trying to emulate is Apple's CoreImage, the idea of being able to specify a graph of operations, say:
in-image --> adjust-hue-filter --> gaussian-blur-filter --> out-image


or

in-image1
  \
   \
    +-------------------------+--> mix-filter --> out-image
                             /
   +--> motion-blur-filter -+
  /
in-image2


If you can't run 1 shader after the other on a texture, is another way to do something like this?

¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
VCF Blog

AnswerRe: shaders and textures. Pin
El Corazon1-Jan-09 7:03
El Corazon1-Jan-09 7:03 
GeneralRe: shaders and textures. Pin
Jim Crafton1-Jan-09 17:14
Jim Crafton1-Jan-09 17:14 
QuestionC++ / MFC Pin
GioFisk19-Dec-08 22:24
GioFisk19-Dec-08 22:24 
AnswerRe: C++ / MFC Pin
Hamid_RT28-Dec-08 4:50
Hamid_RT28-Dec-08 4:50 
Questionwriting PDF Doc in bitmap format as an image using C# Pin
gtag18-Dec-08 19:24
gtag18-Dec-08 19:24 
AnswerRe: writing PDF Doc in bitmap format as an image using C# Pin
Henry Minute12-Jan-09 2:28
Henry Minute12-Jan-09 2:28 
Question[OpenGL] Drawing line with patterns Pin
Naveen15-Dec-08 23:26
Naveen15-Dec-08 23:26 
AnswerRe: [OpenGL] Drawing line with patterns Pin
Dan16-Dec-08 10:23
Dan16-Dec-08 10:23 
GeneralRe: [OpenGL] Drawing line with patterns Pin
Naveen16-Dec-08 16:23
Naveen16-Dec-08 16:23 
GeneralRe: [OpenGL] Drawing line with patterns Pin
Dan16-Dec-08 21:12
Dan16-Dec-08 21:12 
QuestionSaving a picturebox control to jpg with VB 2005 Pin
RobKon15-Dec-08 13:12
RobKon15-Dec-08 13:12 
Question3d academic project Pin
Fadi Yoosuf13-Dec-08 7:09
Fadi Yoosuf13-Dec-08 7:09 
AnswerRe: 3d academic project Pin
Expert Coming14-Dec-08 12:35
Expert Coming14-Dec-08 12:35 
Questionhow can i work with pixels to do ( zoom in / out- scale and negative ) a pictue using c# .net please..? Pin
mr.mes10-Dec-08 14:31
mr.mes10-Dec-08 14:31 
AnswerRe: how can i work with pixels to do ( zoom in / out- scale and negative ) a pictue using c# .net please..? Pin
gtag22-Dec-08 0:47
gtag22-Dec-08 0:47 
Question(DirectDraw)How to set the color key of an overlay surface(YUY2 16bits)? Pin
linhui3-Dec-08 21:17
linhui3-Dec-08 21:17 
AnswerRe: (DirectDraw)How to set the color key of an overlay surface(YUY2 16bits)? Pin
linhui4-Dec-08 14:52
linhui4-Dec-08 14:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.