<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
My preference would be to add support only for Linear and Nearest in
any case.<br>
<br>
-- Kevin<br>
<br>
<br>
<div class="moz-cite-prefix">On 6/21/2023 4:48 AM, Matija Brown
wrote:<br>
</div>
<blockquote type="cite" cite="mid:DB5PR02MB102162BCBD14E58AB91E059DDEE5DA@DB5PR02MB10216.eurprd02.prod.outlook.com">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}.MsoChpDefault
{mso-style-type:export-only;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal">As Jayathrith said, in OpenGL as well as
Metal only NEAREST and LINEAR filters are available.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">There might be a way of getting around it
by implementing some own algorithm for OpenGL and Metal but
that seem slightly</p>
<p class="MsoNormal">over the top. So either one would have to
keep the options limited to the two supported everywhere</p>
<p class="MsoNormal">or go with the “conditional” features.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Having had a look at DirectX the APIs seem
not to differ too much.</p>
<p class="MsoNormal">If I remember correctly, in OpenGL you
parse the texture filter when the texture is being created,
while in DirectX as it is bound</p>
<p class="MsoNormal">to the sampler (it is a sampler state after
all) it would have to be set before every render call. However
it shouldn’t make any</p>
<p class="MsoNormal">API difference really, as we can just have
a field somewhere and the parse it along when needed.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Cheers,</p>
<p class="MsoNormal">Matija.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-top:solid
#E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>From:
</b><a href="mailto:jayathirth.d.v@oracle.com" moz-do-not-send="true">Jayathirth Rao Daarapuram Venkatesh
Murthy</a><br>
<b>Sent: </b>Wednesday, 21 June 2023 13:09<br>
<b>To: </b><a href="mailto:nlisker@gmail.com" moz-do-not-send="true">Nir Lisker</a>; <a href="mailto:Matija.Brown@outlook.de" moz-do-not-send="true">
Matija Brown</a><br>
<b>Cc: </b><a href="mailto:openjfx-dev@openjdk.org" moz-do-not-send="true" class="moz-txt-link-freetext">openjfx-dev@openjdk.org</a><br>
<b>Subject: </b>Re: [JavaFX 3D ( | Feature Request)]
Setting Texture Nearest-Sampling on PhongMaterial</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-IN">In OpenGL we set GL_LINEAR by default at :
<a href="https://github.com/openjdk/jfx/blob/0d9dcf38275528e1b621d71631aac5bdb9452110/modules/javafx.graphics/src/main/java/com/sun/prism/es2/ES2Texture.java#L221" moz-do-not-send="true" class="moz-txt-link-freetext">
https://github.com/openjdk/jfx/blob/0d9dcf38275528e1b621d71631aac5bdb9452110/modules/javafx.graphics/src/main/java/com/sun/prism/es2/ES2Texture.java#L221</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-IN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-IN">And Metal supports only two types of Min/Max
filters : Nearest(default) and Linear. So even if D3D
supports multiple types we might be limited to support only
these 2 filters for all platforms.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-IN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-IN">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-IN">Jay<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-IN"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black" lang="EN-IN">From:
</span></b><span style="font-size:12.0pt;color:black" lang="EN-IN">openjfx-dev
<a class="moz-txt-link-rfc2396E" href="mailto:openjfx-dev-retn@openjdk.org"><openjfx-dev-retn@openjdk.org></a> on behalf of Nir
Lisker <a class="moz-txt-link-rfc2396E" href="mailto:nlisker@gmail.com"><nlisker@gmail.com></a><br>
<b>Date: </b>Wednesday, 21 June 2023 at 3:57 PM<br>
<b>To: </b>Matija Brown
<a class="moz-txt-link-rfc2396E" href="mailto:Matija.Brown@outlook.de"><Matija.Brown@outlook.de></a><br>
<b>Cc: </b><a class="moz-txt-link-abbreviated" href="mailto:openjfx-dev@openjdk.org">openjfx-dev@openjdk.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:openjfx-dev@openjdk.org"><openjfx-dev@openjdk.org></a><br>
<b>Subject: </b>Re: [JavaFX 3D ( | Feature Request)]
Setting Texture Nearest-Sampling on PhongMaterial<o:p></o:p></span></p>
</div>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC
1.0pt;padding:0cm 0cm 0cm
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-GB">First of all, please excuse directly
e-mailing you earlier today. Working with mailing
lists is quite new for me and apparently I forgot
to add</span><span lang="EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-GB">the mailing list to cc.</span><span lang="EN-IN"><o:p></o:p></span></p>
</blockquote>
<div>
<p class="MsoNormal"><span lang="EN-IN"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN">I didn't get
any private email, so you seem to be doing better
than you thought with the mailing list :)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN"> <o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC
1.0pt;padding:0cm 0cm 0cm
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">With the OpenGL-side I do have some
experience. Concerning the D3D-side of things it
would probably mean convincing<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">Somebody that it is a good idea to
finally apply the suggested change.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">There would be some API change
required of course. As a basic concept it would
probably be sensible to add this as a parameter to
the PhonMaterial-class.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">Alternatively it might make sense to
add a “Texture” class that is used a a DiffuseMap
in the PhonMaterial. But that seems slightly
overkill.<o:p></o:p></span></p>
</blockquote>
<div>
<p class="MsoNormal"><span lang="EN-IN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN">Where to put
the new methods in the Java side is not the
concerning part, it's how to create methods that
match all the pipelines. In D3D, the method for
setting the filter is detailed in [1], and its
possible parameters in [2][3][4]. So suppose that
I'm looking at the list of available filter types
there:<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-IN">D3DTEXF_NONE,
D3DTEXF_POINT, D3DTEXF_LINEAR, D3DTEXF_ANISOTROPIC,
D3DTEXF_PYRAMIDALQUAD, D3DTEXF_GAUSSIANQUAD,
D3DTEXF_CONVOLUTIONMONO,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN">if OpenGL
supports a somewhat different set of filters, we
will have some clashes in the Java API side.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN">Generally, we
would like to give as much flexibility to the user
as possible, but need to be careful
with platform-specific functionality. We could round
*some* corners. For example, I think that if we have
an enum for the filter types above that is a union
of the ones available in the different pipelines,
and if a few are supported by only one of the
pipelines, we could note it in the docs and get away
with it (something similar to a conditional
feature). However, if the whole native pipeline
setup for texture filtering is different, which
means a different set of Java API methods per
pipeline, then that's too much.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN">All this means
is that to continue we need to figure out what the
API for each pipeline looks like, what's the most
functionality we can have for each pipeline, and
then how we can unite them into a single Java API
with the hopes of being able to reconcile the
differences "well enough" (whatever that will mean).<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-IN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN">[1] <a href="https://learn.microsoft.com/en-us/windows/win32/api/d3d9helper/nf-d3d9helper-idirect3ddevice9-setsamplerstate" moz-do-not-send="true" class="moz-txt-link-freetext">https://learn.microsoft.com/en-us/windows/win32/api/d3d9helper/nf-d3d9helper-idirect3ddevice9-setsamplerstate</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN">[2] <a href="https://learn.microsoft.com/en-us/windows/win32/direct3d9/d3dtexturefiltertype" moz-do-not-send="true" class="moz-txt-link-freetext">https://learn.microsoft.com/en-us/windows/win32/direct3d9/d3dtexturefiltertype</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN">[3] <a href="https://learn.microsoft.com/en-us/windows/win32/direct3d9/d3dsamplerstatetype" moz-do-not-send="true" class="moz-txt-link-freetext">https://learn.microsoft.com/en-us/windows/win32/direct3d9/d3dsamplerstatetype</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-IN">[4] <a href="https://learn.microsoft.com/en-us/windows/win32/direct3d9/vertex-textures-in-vs-3-0" moz-do-not-send="true" class="moz-txt-link-freetext">https://learn.microsoft.com/en-us/windows/win32/direct3d9/vertex-textures-in-vs-3-0</a><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-IN"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-IN">On Wed, Jun 21,
2023 at 12:45 PM Matija Brown <<a href="mailto:Matija.Brown@outlook.de" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">Matija.Brown@outlook.de</a>>
wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC
1.0pt;padding:0cm 0cm 0cm
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-GB">First of all, please excuse
directly e-mailing you earlier today. Working
with mailing lists is quite new for me and
apparently I forgot to add</span><span lang="EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-GB">the mailing list to cc.</span><span lang="EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-GB"> </span><span lang="EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">With the OpenGL-side I do have
some experience. Concerning the D3D-side of
things it would probably mean convincing<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">Somebody that it is a good idea
to finally apply the suggested change.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">There would be some API change
required of course. As a basic concept it
would probably be sensible to add this as a
parameter to the PhonMaterial-class.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">Alternatively it might make sense
to add a “Texture” class that is used a a
DiffuseMap in the PhonMaterial. But that seems
slightly overkill.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">As I am not very well acquainted
with current design principles of this
library, these things should lie in more
experience contributors hands.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><b><span lang="EN-IN">From: </span></b><span lang="EN-IN"><a href="mailto:nlisker@gmail.com" target="_blank" moz-do-not-send="true">Nir
Lisker</a><br>
<b>Sent: </b>Tuesday, 20 June 2023 20:50<br>
<b>To: </b><a href="mailto:Matija.Brown@outlook.de" target="_blank" moz-do-not-send="true">Matija
Brown</a><br>
<b>Cc: </b><a href="mailto:openjfx-dev@openjdk.org" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">openjfx-dev@openjdk.org</a><br>
<b>Subject: </b>Re: [JavaFX 3D ( | Feature
Request)] Setting Texture Nearest-Sampling
on PhongMaterial<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<div>
<blockquote style="border:none;border-left:solid
#CCCCCC 1.0pt;padding:0cm 0cm 0cm
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">Which leads to the question;
Does there, in JavaFX exist something
comparable to setting the texture-sampler
to NEAREST<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">instead of LINEAR sampling?<o:p></o:p></span></p>
</blockquote>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">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 Direct3D
and OpenGL (not sure how the work on Metal
is going), so this can be a challenge.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">For the D3D side, see this
issue in JBS [1]. The relevant code is at
[2]. I didn't look at the OpenGL side.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">- Nir<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">[1] <a href="https://bugs.openjdk.org/browse/JDK-8092272" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://bugs.openjdk.org/browse/JDK-8092272</a> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">[2] <a href="https://github.com/openjdk/jfx/blob/0d9dcf38275528e1b621d71631aac5bdb9452110/modules/javafx.graphics/src/main/native-prism-d3d/D3DContext.cc#L621" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/openjdk/jfx/blob/0d9dcf38275528e1b621d71631aac5bdb9452110/modules/javafx.graphics/src/main/native-prism-d3d/D3DContext.cc#L621</a><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN">On Mon, Jun 19, 2023 at
10:15 PM Matija Brown <<a href="mailto:Matija.Brown@outlook.de" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">Matija.Brown@outlook.de</a>>
wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid
#CCCCCC 1.0pt;padding:0cm 0cm 0cm
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">On my never ending
journey of building a
Minecraft-clone in every
graphics-framework available,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">I have come across
JavaFX for the next attempt.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">However a minor
inconvenience has crossed my path in
the process:<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">Using the (very well
developed!) 2D-Graphics displaying
pixel-art style images is no trouble
whatsoever.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">Simply rendering it to
a canvas and disabling smoothing
does the job just fine.
Unfortunately, I have been<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">unable to figure out
how to achieve a similar thing using
the 3D-Graphics engine and the
PhongMaterial that comes with it.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">Which leads to the
question; Does there, in JavaFX
exist something comparable to
setting the texture-sampler to
NEAREST<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">instead of LINEAR
sampling?<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">Unfortunately the
latest information I could find
online was from about 2013 and much
has (probably)<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">changed since then.
Thus the question is being posed
once again.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">I whish to excuse
myself for probably repeating a
fairly common question,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN"> <o:p></o:p></span></p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt"><span lang="EN-IN">Kind regards,<br>
Matija Brown.<o:p></o:p></span></p>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt"><span lang="EN-IN"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>