Click here to Skip to main content
15,891,529 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: urgent..pzzz!! Pin
mr jets11-May-07 14:42
mr jets11-May-07 14:42 
GeneralRe: urgent..pzzz!! Pin
Mark Salsbery11-May-07 15:21
Mark Salsbery11-May-07 15:21 
AnswerRe: urgent..pzzz!! Pin
Christian Graus13-May-07 12:31
protectorChristian Graus13-May-07 12:31 
AnswerRe: urgent..pzzz!! Pin
El Corazon14-May-07 6:38
El Corazon14-May-07 6:38 
QuestionMore than one 'SwapBuffers(HDC)' Pin
XTAL25610-May-07 15:23
XTAL25610-May-07 15:23 
AnswerRe: More than one 'SwapBuffers(HDC)' Pin
El Corazon10-May-07 16:12
El Corazon10-May-07 16:12 
GeneralRe: More than one 'SwapBuffers(HDC)' Pin
XTAL25610-May-07 17:01
XTAL25610-May-07 17:01 
GeneralRe: More than one 'SwapBuffers(HDC)' Pin
El Corazon13-May-07 18:55
El Corazon13-May-07 18:55 
VizCoder wrote:
Do you mean for me to render directly to a texture, then display that? How exactly would i do that?


Yes, that is exactly what I mean. Using pbuffers and render to texture you no longer have to render to a screen (double buffered or not) and then copy back the image. You can render directly to a pbuffer which allows you to copy the image directly to memory on your computer, or you can render directly to texture memory which can then be used for rendering as a texture on another object, all in the same scene.

Also you can achieve the same process by manually controlling bufferswap so that you never see it. This is how it was done before pbuffers and render to texture calls:

render(sceneA);
glFlush();
glCopyPixels();
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
createyourtexture();
render(sceneB);
swapbuffers();

the problem with this style is that it broke the rendering cycle several times 1) with the glFlush() 2) with the read-back cycle of glCopyPixels() and 3) with the texture binding procedures.


VizCoder wrote:
btw, your link is broken


It still works for me.... so just google "render to texture"


VizCoder wrote:
Did you download my files?


Advice is free, debugging your code takes a lot more time. Sorry, maybe someone else will.



_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

GeneralRe: More than one 'SwapBuffers(HDC)' Pin
XTAL25618-May-07 16:59
XTAL25618-May-07 16:59 
GeneralRe: More than one 'SwapBuffers(HDC)' Pin
XTAL25631-May-07 15:16
XTAL25631-May-07 15:16 
AnswerRe: More than one 'SwapBuffers(HDC)' Pin
Rilhas20-May-07 2:25
Rilhas20-May-07 2:25 
Questionsaving my drawing as atext file...!! Pin
mr jets9-May-07 23:55
mr jets9-May-07 23:55 
AnswerRe: saving my drawing as atext file...!! Pin
PandemoniumPasha10-May-07 1:28
PandemoniumPasha10-May-07 1:28 
GeneralRe: saving my drawing as atext file...!! Pin
mr jets10-May-07 2:01
mr jets10-May-07 2:01 
GeneralRe: saving my drawing as atext file...!! Pin
PandemoniumPasha10-May-07 21:52
PandemoniumPasha10-May-07 21:52 
AnswerRe: saving my drawing as atext file...!! Pin
Christian Graus13-May-07 12:44
protectorChristian Graus13-May-07 12:44 
Questiondrawing algorithms Pin
sarah_malik6-May-07 10:06
sarah_malik6-May-07 10:06 
AnswerRe: drawing algorithms Pin
El Corazon6-May-07 10:43
El Corazon6-May-07 10:43 
GeneralRe: drawing algorithms Pin
sarah_malik6-May-07 11:11
sarah_malik6-May-07 11:11 
GeneralRe: drawing algorithms Pin
El Corazon6-May-07 11:47
El Corazon6-May-07 11:47 
Answer[Message Deleted] Pin
#1236-May-07 15:19
#1236-May-07 15:19 
GeneralRe: drawing algorithms Pin
El Corazon7-May-07 2:16
El Corazon7-May-07 2:16 
GeneralRe: drawing algorithms Pin
sarah_malik7-May-07 2:42
sarah_malik7-May-07 2:42 
GeneralRe: drawing algorithms Pin
El Corazon7-May-07 5:31
El Corazon7-May-07 5:31 
GeneralRe: drawing algorithms Pin
sarah_malik7-May-07 6:52
sarah_malik7-May-07 6: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.