Black Background behind MediaView Replicating 3D Movie Cube (original) (raw)

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


On 29 October 2012 21:52, Kevin Rushforth <kevin.rushforth at oracle.com> 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 http://code.google.com/p/scalafx/source/browse/demo/scalafx/graphics3d/VideoCubeDemo.scala

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

:: http://www.xenonique.co.uk/blog/ :: :: http://twitter.com/peterpilgrim :: :: http://audio.fm/profile/peterpilgrim :: :: Skype Call peterpilgrim :: :: http://java-champions.java.net/ ::



More information about the openjfx-dev mailing list