Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-08-29 Thread Nir Lisker
filtering is not >>> linear then it uses a nearest neighbor algorithm. It's not used by the 3D >>> side it seems. >>> >>> On Sun, Jun 25, 2023 at 8:54 PM Matija Brown >>> wrote: >>> >>>> This is a good point you’re bringing

Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-08-27 Thread Nir Lisker
OpenGL side of things. >>> >>> >>> >>> The ES2Texture class appears to handle everything there. There are two >>> create-Methods, but the other >>> >>> one is responsible for MediaFrame stuff and it doesn’t really? make >>> sense to

Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-08-25 Thread Nir Lisker
ain if it >> makes sense use-case wise. >> >> >> >> Thanks, >> >> Matija. >> >> >> >> *From: *Nir Lisker >> *Sent: *Sunday, 25 June 2023 19:49 >> *To: *Matija Brown >> *Cc: *Jayathirth Rao Daarapuram Venkatesh Mur

Re: [External] : Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-26 Thread Kevin Rushforth
...@outlook.de> *Cc: *Jayathirth Rao Daarapuram Venkatesh Murthy <mailto:jayathirth@oracle.com>; Kevin Rushforth <mailto:kevin.rushfo...@oracle.com>; openjfx-dev@openjdk.org *Subject: *Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongM

Re: [External] : Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-25 Thread Jayathirth Rao Daarapuram Venkatesh Murthy
thy , Kevin Rushforth , openjfx-dev@openjdk.org Subject: [External] : Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial Perhaps Jay and Kevin can weigh in on this. By the way, I see that the com.sun.prism.Texture interface already defines get/setLinearFilter

Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-25 Thread Nir Lisker
ybe just a flag in PhongMaterial would suffice? > > > > Have a nice day, > > Matija. > > *From: *Matija Brown > *Sent: *Thursday, 22 June 2023 18:37 > *To: *Jayathirth Rao Daarapuram Venkatesh Murthy > ; Nir Lisker ; Kevin > Rushforth > *Cc: *openjfx-dev@open

RE: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-25 Thread Matija Brown
ev@openjdk.org> Subject: Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial I think that the first question to answer is whether the filtering method is applied to all maps/textures of the material (diffuse, specular, self-illumination) or to each individu

Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-25 Thread Nir Lisker
do for OpenGL, as > we have that for D3D already. > > Then do a little example probably – doesn’t really seem too much work to > me? > > > > Thanks, > > Matija. > > > > *From: *Jayathirth Rao Daarapuram Venkatesh Murthy > > *Sent: *Thursday, 22 June 2023 06:

RE: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-25 Thread Matija Brown
il.com>; Kevin Rushforth<mailto:kevin.rushfo...@oracle.com> Cc: openjfx-dev@openjdk.org<mailto:openjfx-dev@openjdk.org> Subject: RE: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial I’ll do the OpenGL – have done quite a bit with Vulkan and GL in t

RE: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-22 Thread Matija Brown
Lisker<mailto:nlis...@gmail.com>; Kevin Rushforth<mailto:kevin.rushfo...@oracle.com> Cc: openjfx-dev@openjdk.org<mailto:openjfx-dev@openjdk.org> Subject: Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial Correcting myself: Currently I am working on

Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-21 Thread Jayathirth Rao Daarapuram Venkatesh Murthy
Date: Thursday, 22 June 2023 at 9:22 AM To: Nir Lisker , Kevin Rushforth Cc: openjfx-dev@openjdk.org Subject: Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial Currently I am working on Metal implementation of the same and has no bandwidth to work on

Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-21 Thread Jayathirth Rao Daarapuram Venkatesh Murthy
:40 PM To: Kevin Rushforth Cc: openjfx-dev@openjdk.org Subject: Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial If I remember correctly, in OpenGL you parse the texture filter when the texture is being created, while in DirectX as it is bound to the sampler

Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-21 Thread Nir Lisker
upport only these 2 filters for all platforms. > > > > Thanks, > > Jay > > > > *From: *openjfx-dev > on behalf of Nir Lisker > > *Date: *Wednesday, 21 June 2023 at 3:57 PM > *To: *Matija Brown > *Cc: *openjfx-dev@openjdk.org > > *Subjec

Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-21 Thread Kevin Rushforth
*Cc: *openjfx-dev@openjdk.org *Subject: *Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial In OpenGL we set GL_LINEAR by default at : https://github.com/openjdk/jfx/blob/0d9dcf38275528e1b621d71631aac5bdb9452110/modules/javafx.graphics/src/main/java/com/sun/prism/e

RE: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-21 Thread Matija Brown
; Sent: Wednesday, 21 June 2023 13:09 To: Nir Lisker<mailto:nlis...@gmail.com>; Matija Brown<mailto:matija.br...@outlook.de> Cc: openjfx-dev@openjdk.org<mailto:openjfx-dev@openjdk.org> Subject: Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial In Op

Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-21 Thread Jayathirth Rao Daarapuram Venkatesh Murthy
nce contributors hands. From: Nir Lisker<mailto:nlis...@gmail.com> Sent: Tuesday, 20 June 2023 20:50 To: Matija Brown<mailto:matija.br...@outlook.de> Cc: openjfx-dev@openjdk.org<mailto:openjfx-dev@openjdk.org> Subject: Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling

Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-21 Thread Nir Lisker
ry well acquainted with current design principles of this > library, these things should lie in more experience contributors hands. > > > > *From: *Nir Lisker > *Sent: *Tuesday, 20 June 2023 20:50 > *To: *Matija Brown > *Cc: *openjfx-dev@openjdk.org > *Subject: *Re: [JavaFX 3

RE: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-21 Thread Matija Brown
Brown<mailto:matija.br...@outlook.de> Cc: openjfx-dev@openjdk.org<mailto:openjfx-dev@openjdk.org> Subject: Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial Which leads to the question; Does there, in JavaFX exist something comparable to setting t

Re: [JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-20 Thread Nir Lisker
> > Which leads to the question; Does there, in JavaFX exist something > comparable to setting the texture-sampler to NEAREST > > instead of LINEAR sampling? > There is no API to set the texture filter. If you would like to contribute and add it, I can help. It needs to be compatible with both Dir

[JavaFX 3D ( | Feature Request)] Setting Texture Nearest-Sampling on PhongMaterial

2023-06-19 Thread Matija Brown
On my never ending journey of building a Minecraft-clone in every graphics-framework available, I have come across JavaFX for the next attempt. However a minor inconvenience has crossed my path in the process: Using the (very well developed!) 2D-Graphics displaying pixel-art style images is no