Re: API Change Proposal - Re: MSAA and Scene anti aliasing

2013-10-08 Thread Thor Johannesson
Hi All, Need to revive this thread, to remind everyone that anti-aliasing API change is going in. And should be available in build b112. See bug report for some further detail/discussion: https://javafx-jira.kenai.com/browse/RT-31878 Initially only available anti-aliasing modes are BALANCED

Re: API Change Proposal - Re: MSAA and Scene anti aliasing

2013-07-31 Thread Chien Yang
I agree, however I would prefer a single class over subclasses if possible. I have added Jim's proposal to the JIRA for consideration. https://javafx-jira.kenai.com/browse/RT-31878 Thanks, - Chien On 7/31/2013 3:21 PM, Kevin Rushforth wrote: This seems cleaner in terms of extensibility. I

Re: API Change Proposal - Re: MSAA and Scene anti aliasing

2013-07-31 Thread Richard Bair
I'm pretty confident we'll want different sub-types as we go along (CSAA, MSAA, FXAA -- there are a lot of different ways to do full-scene anti-aliasing and I bet that they will have different parameters for controlling their various algorithms), but we can cross that bridge later. Richard On

Re: API Change Proposal - Re: MSAA and Scene anti aliasing

2013-07-31 Thread Richard Bair
Sorry let me be clear. Having a class vs an enum was my preferred approach and I'm glad with Jim's nudge it looks like we'll go there. Having just the few predefined constants as a starting point I think is good, and we can add sub-types and more goodness in the future. Richard On Jul 31,

Re: Fwd: API Change Proposal - Re: MSAA and Scene anti aliasing

2013-07-24 Thread Chien Yang
-- From: Scott Palmer swpal...@gmail.com Date: Tue, Jul 23, 2013 at 9:33 PM Subject: Re: API Change Proposal - Re: MSAA and Scene anti aliasing To: Chien Yang chien.y...@oracle.com Is DEFAULT intended to defer to the settings in the system graphics drivers (e.g. nVidia control panel

Re: API Change Proposal - Re: MSAA and Scene anti aliasing

2013-07-24 Thread Chien Yang
Thank you for the feedback! We decided to drop DEFAULT in favor of BALANCED. So here is the revised SceneAntiAliasing enum entries: public enum SceneAntiAliasing { BALANCED, // enables anti-aliasing using optimal system setting available that balances speed and quality DISABLED, //

Re: API Change Proposal - Re: MSAA and Scene anti aliasing

2013-07-24 Thread Chien Yang
Thanks for the help! I was of 2 minds about it; alphabetical or logical. public enum SceneAntiAliasing { DISABLED, // disables anti-aliasing BALANCED, // enables anti-aliasing using optimal system setting available that balances speed and quality FASTEST, // enables anti-aliasing using

Re: API Change Proposal - Re: MSAA and Scene anti aliasing

2013-07-24 Thread Kevin Rushforth
+1 on having DISABLED be first. -- Kevin Richard Bair wrote: Just to be picky, I would put DISABLED first in the list. It seems more consistent to have the only OFF mode to be first and then all the rest of the options (which happen to then have ordinals 0) will be some form of ON mode.

Re: API Change Proposal - Re: MSAA and Scene anti aliasing

2013-07-23 Thread Felix Bembrick
I am not sure I like the name of the value DEFAULT. To me default implies some kind of typical option for the particular platform which could conceivably be very different on each platform. For example, on my Windows super-computer with ultra fast GPU the default would logically be something

Re: API Change Proposal - Re: MSAA and Scene anti aliasing

2013-07-23 Thread Chien Yang
We are way past the feature freeze date for this release. The objective now is to ensure the API is clean and doesn't preclude future options. Currently MSAA is the only supported technique and specifying the number of samples will require additional API which we aren't ready to commit. -

Re: MSAA and Scene anti aliasing

2013-07-15 Thread Kevin Rushforth
I am fine with an enum that represents the style of AA requested: NONE, MSAA, SOME_OTHER_AA, ... It is the combining of number of samples into the enum that seems undesirable to me. I would prefer that be a separate Integer attribute. -- Kevin Mario Torre wrote: At first I was about to

Re: MSAA and Scene anti aliasing

2013-07-15 Thread Thor Johannesson
complication. The fact we are using MSAA for full scene anti-aliasing to improve the quality of 3D rendering is an implementation detail. For platforms that do not support MSAA or have high restrictions on memory then we might employ a different technique. For example edge anti-aliasing by post

Re: MSAA and Scene anti aliasing

2013-07-15 Thread Chien Yang
workaround to specify number of samples for MSAA, with “prism.multisample” system property. Exposing too much detail selection too early will only lead to unnecessary complication. The fact we are using MSAA for full scene anti-aliasing to improve the quality of 3D rendering

Re: MSAA and Scene anti aliasing

2013-07-15 Thread Richard Bair
I think there should be a simple way to request full scene anti-aliasing to improve 3D rendering. And also an optional more advanced way to specify which type… I agree it should be nice and simple. It should also allow us the freedom to make it better in the future. I think that adding a

Re: MSAA and Scene anti aliasing

2013-07-15 Thread Felipe Heidrich
, with “prism.multisample” system property. Exposing too much detail selection too early will only lead to unnecessary complication. The fact we are using MSAA for full scene anti-aliasing to improve the quality of 3D rendering is an implementation detail. For platforms that do not support MSAA or have high

Re: MSAA and Scene anti aliasing

2013-07-15 Thread Scott Palmer
I would vote for option b) Use a full class that can be extended later as needed. You don't have to use it like an enum. It could be a container for configuration parameters, possibly including the enum that says the antialiasing mode, but with separate fields (or maybe even just a single map)

RE: MSAA and Scene anti aliasing

2013-07-15 Thread John Smith
it for consideration. Regards, John -Original Message- From: openjfx-dev-boun...@openjdk.java.net [mailto:openjfx-dev-boun...@openjdk.java.net] On Behalf Of Scott Palmer Sent: Monday, July 15, 2013 3:03 PM To: Richard Bair Cc: openjfx-dev@openjdk.java.net Subject: Re: MSAA and Scene anti aliasing I

Re: MSAA and Scene anti aliasing

2013-07-14 Thread Kevin Rushforth
I don't really like the single enum approach. I would prefer to keep the existing MSAA boolean, and then, if needed, add a separate attribute for requesting the number of samples; if desired there could be a read-only attribute that returns the actual number of samples used. Most chipsets give

Re: MSAA and Scene anti aliasing

2013-07-14 Thread ozemale
Message - From: Kevin Rushforth To:Gerrit Grunwald Cc:openjfx-dev@openjdk.java.net Mailing Sent:Sat, 13 Jul 2013 12:00:42 -0700 Subject:Re: MSAA and Scene anti aliasing I don't really like the single enum approach. I would prefer to keep the existing MSAA boolean, and then, if needed, add

Re: MSAA and Scene anti aliasing

2013-07-14 Thread Chien Yang
Hi Richard, Yes, I agree an enum is probably better than a boolean for controlling the visual quality of a rendered scene. As a matter of fact we did explore using enum is earlier 3d discussions but decided to go with boolean due to concerns of complexity we aren't ready to handle for

Re: MSAA and Scene anti aliasing

2013-07-14 Thread Richard Bair
I know iOS gives at least two or three options. A single enum seems cleaner than two properties (and yet another constructor! Speaking of which it would be better if this were a mutable property). Is it that you don't like that some options can't be honored? On Jul 13, 2013, at 12:00 PM, Kevin

MSAA and Scene anti aliasing

2013-07-12 Thread Richard Bair
Thor recently pushed an implementation for MSAA for those cases when the feature is supported by the card and where a Scene (or SubScene) is created with the antiAliasing flag set to true. MSAA is Multi-sampled Anti Aliasing, which means that the graphics card, when configured in this mode,

Re: MSAA and Scene anti aliasing

2013-07-12 Thread Gerrit Grunwald
+1 for the enum approach...will make it easier to enhance for future options... Gerrit Am 12.07.2013 um 19:55 schrieb Richard Bair richard.b...@oracle.com: Thor recently pushed an implementation for MSAA for those cases when the feature is supported by the card and where a Scene (or

Re: MSAA and Scene anti aliasing

2013-07-12 Thread Joseph Andresen
totally agree on this, if I could clone myself we would have FXAA shaders :P -J On 7/12/2013 10:55 AM, Richard Bair wrote: public enum SceneAntiAliasing { DISABLED, DEFAULT, MSAA_2X, MSAA_4X }