[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Antialiasing OpenGL
- To: pygame-users <pygame-users@xxxxxxxx>
- Subject: [pygame] Antialiasing OpenGL
- From: Ian Mallett <geometrian@xxxxxxxxx>
- Date: Fri, 9 Jul 2010 10:48:54 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 09 Jul 2010 13:49:00 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=E2NIjS1jzze5d80ZXDtJVADKZcEfAnoJyxC+hCHPyck=; b=vpz2cusnHK2GmVSUMCuj9am/EO5rhO7uBSHDVTU6aVkrRXDIIeVAQLWyP7bmtsT4en eJxRPaXjMDDguCR0ysKa+zshGyiJBOdtJRggk/ZbcodXpyPEDtntP2iqOjOLEc961XGJ 2Z4nZVo5CNBU8AbVvdlhV4Z/LIiPKsxFAlkiE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gvrSR6UmzB+q7YQPp5cinoF97SwLv5gsrZbYm8RF7qEeWqr5oApTmcUv27rsBIyxx/ 8QoxQ8T4Z1NAsWZO2tvBfSDMxMhas2oij9m/RhugUXuNbZqGoRDGIMTeXPqtU+92qpNk 4mqEfs8NFM9lLF2pQxt67v6W//27QWM71LWF4=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
For a while, I've simply been doing:
pygame.display.gl_set_attribute(GL_MULTISAMPLEBUFFERS,1)
pygame.display.gl_set_attribute(GL_MULTISAMPLESAMPLES,1)
Which seemed to produce decent results. Today, I found that by raising the number of the second function to 2, 4, 8, etc. I could get much better results. I'm aware of how OpenGL does multisampling versus supersampling. But what does GL_MULTISAMPLEBUFFERS correspond to? An extra buffer for accumulating samples?
Also, I've found that pygame.display.gl_get_attribute(GL_MULTISAMPLESAMPLES) always returns 1.
Help?
Thanks,
Ian