Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 2705 times)
0 Members and 1 Guest are viewing this topic.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Posted 2009-09-30 09: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 ?
Online Spasi
« Reply #1 - Posted 2009-09-30 11: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 12: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!
Legends of Yore - The Casual Retro Roguelike
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #3 - Posted 2009-09-30 14: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.

 

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

The first screenshot will be displayed as a thumbnail.

BurntPizza (25 views)
2014-09-19 03:14:18

Dwinin (39 views)
2014-09-12 09:08:26

Norakomi (69 views)
2014-09-10 13:57:51

TehJavaDev (94 views)
2014-09-10 06:39:09

Tekkerue (48 views)
2014-09-09 02:24:56

mitcheeb (69 views)
2014-09-08 06:06:29

BurntPizza (51 views)
2014-09-07 01:13:42

Longarmx (38 views)
2014-09-07 01:12:14

Longarmx (44 views)
2014-09-07 01:11:22

Longarmx (40 views)
2014-09-07 01:10:19
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!