[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Black Background behind MediaView Replicating 3D Movie Cube
From:       peter.pilgrim () gmail ! com (Peter Pilgrim)
Date:       2012-10-30 16:35:46
Message-ID: CALugUCNQaPLC+6BTyObJBa=cD6SBXgHYYTnQGZTKH6jfTCf3_A () mail ! gmail ! com
[Download RAW message or body]

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/peter_pilgrim ::
:: http://audio.fm/profile/peter_pilgrim  ::
:: Skype Call peter_pilgrim ::
:: http://java-champions.java.net/ ::

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic