Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Antialiasing  (Read 2325 times)
0 Members and 1 Guest are viewing this topic.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Posted 2009-09-30 11:53:45 »

I have read a bit about antialiasing.

It seems that if I want to have antialiasing on my shapes, I have to activate AA :
1  
  Display.create(new PixelFormat(8,0,0,1));


But on my Intel G45, it doesn't work  Sad. Even it is not a great graphic card, it is a pity to not have antialiasing on basic 2d drawing  Cry

Any idea to get around this problem ?
Offline Spasi
« Reply #1 - Posted 2009-09-30 13:07:55 »

The 4th argument in the PixelFormat constructor is the number of samples you want to use for multisampling. Setting it to 1 is a no-op since there's one sample per fragment without antialiasing anyway. Try a power-of-two value higher than 1 (not sure what the max is for G45, probably Cool.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #2 - Posted 2009-09-30 14:15:39 »

The 4th argument in the PixelFormat constructor is the number of samples you want to use for multisampling. Setting it to 1 is a no-op since there's one sample per fragment without antialiasing anyway. Try a power-of-two value higher than 1 (not sure what the max is for G45, probably Cool.

With 1, it does work on a GeForce 8800 (not sure if it take 1 or 2). Anything other than 0 is not accepted by my G45 (i should check the driver).
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #3 - Posted 2009-09-30 16:52:11 »

Quote
Renderer: Intel Eaglelake
Vendor: Intel
Memory: 1024 MB
Version: 2.0.0 - Build 7.15.10.4977
Shading language version: 1.10  - Intel Build 7.15.10.4977


Max texture size: 2048 x 2048
Max texture coordinates: 8
Max vertex texture image units: 16
Max texture image units: 16
Max geometry texture units: 0
Max anisotropic filtering value: 2
Max number of light sources: 16
Max viewport size: 2048 x 2048
Max uniform vertex components: 512
Max uniform fragment components: 512
Max geometry uniform components: 0
Max varying floats: 41
Max samples: 0
Max draw buffers: 7

Is it "Max samples:0" ? How do I get it from lwjgl ?
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (72 views)
2013-05-17 21:29:12

alaslipknot (83 views)
2013-05-16 21:24:48

gouessej (113 views)
2013-05-16 00:53:38

gouessej (108 views)
2013-05-16 00:17:58

theagentd (119 views)
2013-05-15 15:01:13

theagentd (108 views)
2013-05-15 15:00:54

StreetDoggy (152 views)
2013-05-14 15:56:26

kutucuk (176 views)
2013-05-12 17:10:36

kutucuk (173 views)
2013-05-12 15:36:09

UnluckyDevil (182 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.081 seconds with 20 queries.