Black Background behind MediaView Replicating 3D Movie Cube

Peter Pilgrim peter.pilgrim at
Tue Oct 30 09:35:46 PDT 2012

On 29 October 2012 21:52, Kevin Rushforth <kevin.rushforth at> wrote:
> The "MediaCube" demo we showed just uses a gradient "fill" on the Scene, but
> you should be able to achieve the same thing with a Rectangle of your own.
> You just need to turn off depth test on that rectangle.
> -- Kevin

Hi Kevin

It was not the Scene I am concerned about. It was the backing
rectangle for a MediaView. It is like put a 3D plane on another plane,
really. What is the Z order for the two planes rotated in 3D space? I
expected the black bars on each CubeFace to appear just on a TV when
the television station broadcasts a movie of 21:9 ratio when most home
HDTVs are 16:9. So I guess I thinking about this wrong.

This is the Scala / JavaFX code

If I set the Rectangle DepthTest to DISABLED then the result is worst.
The starry background appears through the backing rectangles.

The other thing that occurred in my mind is just to disable the
preserveRatio and that would solve it, although the aspect ratio would
be destroyed.

> Peter Pilgrim wrote:
>> Hi
>> This is nothing to do with OpenJFX codebase or anything else
>> I was working on ScalaFX just now. Writing a port of the CubeSystem
>> Graphic 3D with MediaView instead of Rectangles. I am using my own
>> downloaded movie trailers e.g. The Hobbit, Prometheus, Looper, Flight
>> etc

Peter Pilgrim,
**Java Champion**,
Java EE Software Development / Design / Architect for financial
services, London, UK

JavaFX ++ Scala ++ Groovy ++  Android ++ Java

::  ::
:: ::
::  ::
:: Skype Call peter_pilgrim ::
:: ::

More information about the openjfx-dev mailing list