FX 3D : PhongMaterial xxxMap's Image questions

Chien Yang chien.yang at oracle.com
Mon May 6 14:18:46 PDT 2013

Hi August,

      These are great questions. WritableImage is a sub class of Image 
so it should work, but honestly speaking we haven't tried. ;-) Please 
file a JIRA if it doesn't work.  The default image orientation for maps: 
y-down (origin at the upper left). If time permit I plan to write some 
tests, later this week, to address some of your questions.

- Chien

On 5/6/2013 2:33 AM, August Lammersdorf, InteractiveMesh wrote:
> Following questions refer to the use of Image and WritableImage for 
> bump, diffuse, self illumination, and specular maps of PhongMaterial.
>  - Can a WritableImage generally be used as a map's image?
>  - Will the corresponding map be updated if PixelWriter.setPixels(...) 
> is called?
>  - What are the preferred pixel formats for maps to avoid format 
> conversion and/or to achieve the fastest render speed (e.g. 
> WritableImage.getPixelWriter().getPixelFormat())?
>  - What is the default image orientation for maps: y-down (origin at 
> the upper left) or y-up (origin at the lower left)?
> I'm asking because I consider supporting WritableImage for maps in the 
> 3D model importers without usage of SwingFXUtils.toFXImage().
> Thanks, August

More information about the openjfx-dev mailing list