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

Matija Brown Matija.Brown at outlook.de
Mon Jun 19 19:14:52 UTC 2023


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 trouble whatsoever.
Simply rendering it to a canvas and disabling smoothing does the job just fine. Unfortunately, I have been
unable to figure out how to achieve a similar thing using the 3D-Graphics engine and the PhongMaterial that comes with it.

Which leads to the question; Does there, in JavaFX exist something comparable to setting the texture-sampler to NEAREST
instead of LINEAR sampling?
Unfortunately the latest information I could find online was from about 2013 and much has (probably)
changed since then. Thus the question is being posed once again.


I whish to excuse myself for probably repeating a fairly common question,

Kind regards,
Matija Brown.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20230619/48bc024e/attachment-0001.htm>


More information about the openjfx-dev mailing list