This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JavaFX and the fly likes Smooth Shapes / Images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Smooth Shapes / Images" Watch "Smooth Shapes / Images" New topic

Smooth Shapes / Images

colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 750

I've made a cube in Javafx 2.0, see here

But as everyone can see, the edges of the shapes / image are horrendous.
This is even with smooth set to true, but it appears to do nothing.
Setting it to false seems to make no difference.

I've tried googling this to find a solution, but have found nothing so was wondering if there was any to fix this.

Thanks for any help
John Damien Smith
Ranch Hand

Joined: Jan 26, 2012
Posts: 214
Anti-aliasing of 3D scenes has not been implemented in JavaFX 2.0's Prism rendering engine (as of the 2.0.2 version).
The feature is scheduled for a future update release.
See for the related feature request - login required but anybody can signup to view the request.

Anti-aliasing did work for the previous JavaFX releases (1.3.x) because they were not, be default, using JavaFX's new Prism rendering engine.
Anti-aliasing may work with the 2.0.2 release if you switch it to use a software or java2d graphics pipeline - I think there is a -D java command line option which can be used to set a property for that, but I don't know what the command line option is, nor how to determine it.
I agree. Here's the link:
subject: Smooth Shapes / Images
It's not a secret anymore!