Basic4GL
« Swapbuffers Glitch with basic4gl on 64 bit Vista »

Welcome Guest. Please Login or Register.
Dec 22, 2009, 2:24am




Basic4GL :: BASIC4GL Boards :: Bug Tracker :: Swapbuffers Glitch with basic4gl on 64 bit Vista
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Swapbuffers Glitch with basic4gl on 64 bit Vista (Read 79 times)
Darkjester
Posts a bit
***
member is offline

[avatar]



Joined: Jun 2009
Gender: Male
Posts: 173
 Swapbuffers Glitch with basic4gl on 64 bit Vista
« Thread Started on Sept 23, 2009, 9:43pm »

I found a glitch while playing around with my new installation of 64x vista ultimate, it seems that if you call swapbuffers without a loop or with non transformed geometry, that is to say nehe 2, it will flash or will not draw at all. by doing the following..
Code:
while true
glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT) ' Clear The Screen And The Depth Buffer
glLoadIdentity() ' Reset The View
glTranslatef(-1.5,0.0,-6.0) ' Move Left 1.5 Units And Into The Screen 6.0
glBegin(GL_TRIANGLES) ' Drawing Using Triangles
glVertex3f( 0.0, 1.0, 0.0) ' Top
glVertex3f(-1.0,-1.0, 0.0) ' Bottom Left
glVertex3f( 1.0,-1.0, 0.0) ' Bottom Right
glEnd() ' Finished Drawing The Triangle
glTranslatef(3.0,0.0,0.0) ' Move Right 3 Units
glBegin(GL_QUADS) ' Draw A Quad
glVertex3f(-1.0, 1.0, 0.0) ' Top Left
glVertex3f( 1.0, 1.0, 0.0) ' Top Right
glVertex3f( 1.0,-1.0, 0.0) ' Bottom Right
glVertex3f(-1.0,-1.0, 0.0) ' Bottom Left
glEnd() ' Done Drawing The Quad
SwapBuffers ()
wend


I was able to get it to draw without flashing, i have experienced this glitch with winxp, i think it may have to do with 64 bit drivers. will keep updated -darkjester
Link to Post - Back to Top  IP: Logged

-I love Krystal <3

http://joshkoert.wikispaces.com/
matthew
Global Moderator
*****
member is offline

[avatar]

[icq] [yim] [msn] [aim]
[homepage]

Joined: Apr 2006
Gender: Male
Posts: 1,794
Location: England
 Re: Swapbuffers Glitch with basic4gl on 64 bit Vis
« Reply #1 on Sept 24, 2009, 5:53am »

I believe this is a Vista problem with a lot of video card drivers. :P

When my Vista laptop was still working whenever I used Basic4GL & wanted to print some text on the screen I would have to explicitly call SwapBuffers in order to get the text displayed.

I never encountered the screen flickering problem in Basic4GL but did in my FreeBASIC OpenGL applications.
Link to Post - Back to Top  IP: Logged
shadow008
Posts a lot
****
member is offline

[avatar]

NINJAS WITH GUITARS! (you will never be as awsome as this)



Joined: Feb 2009
Gender: Male
Posts: 376
 Re: Swapbuffers Glitch with basic4gl on 64 bit Vis
« Reply #2 on Sept 24, 2009, 11:16am »

NOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!!!!!!!!!!!!!!! Stay with XP as long as you can!!!!! Vista isnt worth the problems.... wait till november and get windows 7; much more stable than vista and takes less ram. I know. Ive used it.
Link to Post - Back to Top  IP: Logged

OK

hint:
(look at it sideways)

Darkjester
Posts a bit
***
member is offline

[avatar]



Joined: Jun 2009
Gender: Male
Posts: 173
 Re: Swapbuffers Glitch with basic4gl on 64 bit Vis
« Reply #3 on Sept 24, 2009, 2:57pm »


Sept 24, 2009, 11:16am, shadow008 wrote:
NOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!!!!!!!!!!!!!!! Stay with XP as long as you can!!!!! Vista isnt worth the problems.... wait till november and get windows 7; much more stable than vista and takes less ram. I know. Ive used it.

there arent very many bugs left in vista, i would assume at this point that vista would be less buggy than windows 7 fresh release next year. i think matthew will agree with me that vista is far better than xp, and is now to the point of being a good OS. what are your thoughts Matthew?
Link to Post - Back to Top  IP: Logged

-I love Krystal <3

http://joshkoert.wikispaces.com/
Wayne Rayner
Posts heaps :)
*****
member is offline

[avatar]

You live Life 4 whatever you believe needs to be lived for

[msn]
[homepage]

Joined: Nov 2008
Gender: Male
Posts: 551
Location: Australia
 Re: Swapbuffers Glitch with basic4gl on 64 bit Vis
« Reply #4 on Sept 25, 2009, 12:27am »

I'm not matthew but vista is way better than xp, actually xp is shit, I have the same 2 computers one with vista and one with xp, xp is giving trouble and the vista one works perfectly actually I have programs that will run on win 98, win 2000 and vista just not xp, I believe xp is crap and vista is awesome. I will get win 7 aswell

Wayne rayner
Link to Post - Back to Top  IP: Logged

Yours
Wayne Rayner

Live life once and make it the best as you will never get a second chance

I'm not a nerd just a person who is smart.
matthew
Global Moderator
*****
member is offline

[avatar]

[icq] [yim] [msn] [aim]
[homepage]

Joined: Apr 2006
Gender: Male
Posts: 1,794
Location: England
 Re: Swapbuffers Glitch with basic4gl on 64 bit Vis
« Reply #5 on Sept 25, 2009, 1:59am »

I got my Vista laptop at the end of 2007 after the screen on my XP laptop got damaged. At first I didn't like Vista & it took me sometime to get used to it. At one point I even installed XP on my Vista machine because I thought it would be better but I actually found it to be slower.

A few months ago however during the Summer my Vista laptop overheated & I couldn't get it to work so I had to buy an external monitor for my old XP computer. At this point I'd much rather have my Vista machine back as it was much faster & responsive but I should be getting a new computer soon so I'm not that worried.
Link to Post - Back to Top  IP: Logged
shadow008
Posts a lot
****
member is offline

[avatar]

NINJAS WITH GUITARS! (you will never be as awsome as this)



Joined: Feb 2009
Gender: Male
Posts: 376
 Re: Swapbuffers Glitch with basic4gl on 64 bit Vis
« Reply #6 on Sept 28, 2009, 7:06am »

so is it just my moms laptop's vista that sucks?
Link to Post - Back to Top  IP: Logged

OK

hint:
(look at it sideways)

Darkjester
Posts a bit
***
member is offline

[avatar]



Joined: Jun 2009
Gender: Male
Posts: 173
 Re: Swapbuffers Glitch with basic4gl on 64 bit Vis
« Reply #7 on Sept 28, 2009, 6:12pm »

Why do you say its sux?
Link to Post - Back to Top  IP: Logged

-I love Krystal <3

http://joshkoert.wikispaces.com/
   [Search This Thread][Send Topic To Friend] [Print]

Google
Webbasic4gl.proboards.com
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!