Search the web
Sign In
New User? Sign Up
opengl-gamedev-l · OpenGL Game Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 23867 - 23867 of 23867   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#23867 From: Rhadamés Carmona <rcarmona@...>
Date: Sat Oct 8, 2005 12:54 am
Subject: Re: GLSL + 6800 + Multiple steps by frame
rcarmona@...
Send Email Send Email
 
Thanks Guys!

I change a little bit the code (move the code to another function), and now
works... glFlush or glFinish were not required anymore... It is like a VC++
Bug... or might be a side effect....

Cheers
RIX



----- Original Message -----
To: "Multiple recipients of list OPENGL-GAMEDEV-L"
<OPENGL-GAMEDEV-L@...>
Sent: Friday, October 07, 2005 1:04 PM


>
> Hi Rix and Matthäus,
>
>  Evan is right.  If sleep() affects your ReadPixels() result,
> something is probably wrong in the driver. (Unless you're using
> an asynch extension like PDR that requires the app to use fences
> or similar.)
>
>  Perhaps you can contact me offline?
>
> Thanks -
> Cass
>
>> -----Original Message-----
>> From: ml-errors@... [mailto:ml-errors@...] On
>> Behalf Of Evan Hart
>> Sent: Friday, October 07, 2005 10:39 AM
>> To: Multiple recipients of list OPENGL-GAMEDEV-L
>> Subject: RE: GLSL + 6800 + Multiple steps by frame
>>
>>
>>
>> Actually, assuming that the read is done with a normal
>> glReadPixels, neither glFlush nor glFinish are required,
>> because OpenGL commands are guaranteed (to appear) to
>> complete in-order given a single context. It sounds like a
>> driver bug to me, or you are doing something that explicitly
>> allows synchronous operations and not accounting for it.
>>
>>   -Evan
>>
>>
>> -----Original Message-----
>> Sent: Friday, October 07, 2005 3:09 AM
>> To: Multiple recipients of list OPENGL-GAMEDEV-L
>>
>> You need to call glFinish (), not glFlush (). glFlush ()
>> means that all
>> commands are passed to OpenGL for processing - not that the
>> processing
>> has finished (for example, if you use OpenGL via Network, glFlush ()
>> send all commands in a packet). glFinish () on the other hand
>> does wait
>> until the rendering has finished.
>>
>> Cheers
>>
>> Matthäus Chajdas
>>
>> Rhadamés Carmona schrieb:
>> > Hello Everybody
>> >
>> > I am programming with 3D textures and GLSL. At some point, I was
>> > interested
>> > in making 2 renderings in one frame, for comparrison...
>> >
>> > void DrawScene()
>> > {
>> >   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
>> >   Render();
>> >   glFlush();
>> >   ReadFrameBuffer(A);
>> >   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
>> >   Render();
>> >   glFlush();
>> >   ReadFrameBuffer(B);
>> >   difference = B-A;
>> >   // Do something with difference, here!....
>> >   glFlnish();
>> >   glutSwapBuffer();
>> > }
>> >
>> > The second rendering is not correct... I get a mess. But,
>> If I put an
>> > Sleep(200) after every glFluch, everything is ok!.... Coudl
>> you give me any
>> > clue about what the hell is goiing on?
>> >
>> > Cheers Guys!
>> >
>> > Rix
>> >
>> > Note: I am using latest drivers....
>> >
>> > -----
>> > FAQ and OpenGL Resources at:
>> >   http://www.geocities.com/SiliconValley/Hills/9956/OpenGL
>> >
>> -----
>> FAQ and OpenGL Resources at:
>>   http://www.geocities.com/SiliconValley/Hills/9956/OpenGL
>>
>> --
>> Author: Anteru
>>   INET: Anteru@...
>>
>> Fat City Hosting, San Diego, California -- http://www.fatcity.com
>> ---------------------------------------------------------------------
>> To REMOVE yourself from this mailing list, send an E-Mail message
>> to: ListGuru@... (note EXACT spelling of 'ListGuru')
>> and in the message BODY, include a line containing: UNSUB
>> OPENGL-GAMEDEV-L (or the name of mailing list you want to be
>> removed from).  You may also send the HELP command for other
>> information (like subscribing).
>>
>>
>>
>> -----
>> FAQ and OpenGL Resources at:
>>   http://www.geocities.com/SiliconValley/Hills/9956/OpenGL
>>
>> --
>> Author: Evan Hart
>>   INET: ehart@...
>>
>> Fat City Hosting, San Diego, California -- http://www.fatcity.com
>> ---------------------------------------------------------------------
>> To REMOVE yourself from this mailing list, send an E-Mail message
>> to: ListGuru@... (note EXACT spelling of 'ListGuru')
>> and in the message BODY, include a line containing: UNSUB
>> OPENGL-GAMEDEV-L (or the name of mailing list you want to be
>> removed from).  You may also send the HELP command for other
>> information (like subscribing).
>>
>
> -----
> FAQ and OpenGL Resources at:
>  http://www.geocities.com/SiliconValley/Hills/9956/OpenGL
>
> --
> Author: Cass Everitt
>  INET: CEveritt@...
>
> Fat City Hosting, San Diego, California -- http://www.fatcity.com
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru@... (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).

-----
FAQ and OpenGL Resources at:
   http://www.geocities.com/SiliconValley/Hills/9956/OpenGL

--
Author: =?iso-8859-1?Q?Rhadam=E9s_Carmona?=
   INET: rcarmona@...

Fat City Hosting, San Diego, California -- http://www.fatcity.com
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@... (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Messages 23867 - 23867 of 23867   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help