Black Background behind MediaView Replicating 3D Movie Cube (original) (raw)
Peter Pilgrim peter.pilgrim at gmail.com
Fri Oct 26 11:25:18 PDT 2012
- Previous message: Black Background behind MediaView Replicating 3D Movie Cube
- Next message: Black Background behind MediaView Replicating 3D Movie Cube
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I just tried this same example on Windows 7 64 bit. Rendering is a lot better. In conclusion, it is not the JavaFX / ScalaFX user client code, instead there is something not correct with Z buffer ordering, so I will leave it for now ....
-Dprism.printStats=true -Dprism.verbose=true
WINDOWS 7 64bit
Prism pipeline init order: d3d j2d Using t2k for text rasterization Using dirty region optimizations Prism pipeline name = com.sun.prism.d3d.D3DPipeline Loading D3D native library ... succeeded. Direct3D initialization succeeded (X) Got class = class com.sun.prism.d3d.D3DPipeline Initialized prism pipeline: com.sun.prism.d3d.D3DPipeline Maximum supported texture size: 8192 Maximum texture size clamped to 4096 OS Information: Windows 7 build 7601 D3D Driver Information: NVIDIA GeForce GTX 570 \.\DISPLAY1 Driver nvd3dumx.dll, version 9.18.13.697 Pixel Shader version 3.0 Device : ven_10DE, dev_1086, subsys_570B1ACC RESIZE: 13234877720276 w: 800 h: 600 D3D Statistics per last 1 frame(s) : numTrianglesDrawn=1014, numDrawCalls=507, numBufferLocks=507 numTextureLocks=0, numTextureTransferKBytes=0 numRenderTargetSwitch=2, numSetTexture=1, numSetPixelShader=3 D3D Statistics per last 1 frame(s) : numTrianglesDrawn=720, numDrawCalls=360, numBufferLocks=360 numTextureLocks=18, numTextureTransferKBytes=18225 numRenderTargetSwitch=2, numSetTexture=31, numSetPixelShader=14 D3D Statistics per last 1 frame(s) : numTrianglesDrawn=658, numDrawCalls=329, numBufferLocks=329 numTextureLocks=0, numTextureTransferKBytes=0 numRenderTargetSwitch=2, numSetTexture=31, numSetPixelShader=14 D3D Statistics per last 1 frame(s) : numTrianglesDrawn=654, numDrawCalls=327, numBufferLocks=327 numTextureLocks=3, numTextureTransferKBytes=3037
Mac OS X 10.8
Prism pipeline init order: es2 j2d Using t2k for text rasterization Using dirty region optimizations Prism pipeline name = com.sun.prism.es2.ES2Pipeline Loading ES2 native library ... prism-es2 succeeded. GLFactory using com.sun.prism.es2.gl.mac.MacGLFactory (X) Got class = class com.sun.prism.es2.ES2Pipeline Initialized prism pipeline: com.sun.prism.es2.ES2Pipeline 2012-10-26 19:21:20.816 java[11029:5703] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. Graphics Vendor: NVIDIA Corporation Renderer: NVIDIA GeForce GT 650M OpenGL Engine Version: 2.1 NVIDIA-8.0.61 Maximum supported texture size: 16384 Maximum texture size clamped to 4096 RESIZE: 1351275681714475000 w: 800 h: 600 QuantumRenderer: shutdown #
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00000001006bf0a9, pid=11029, tid=32783
JRE version: 7.0_06-b24
Java VM: Java HotSpot(TM) 64-Bit Server VM (23.2-b09 mixed mode
bsd-amd64 compressed oops)
Problematic frame:
AVF info: hasOfflineRenderer, borad-id check : true
Process finished with exit code 0
On 26 October 2012 13:07, Peter Pilgrim <peter.pilgrim at gmail.com> 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 I want to give the MediaView a black background for the videos, keep the aspect ratio, and effectively give each cube a backing rectangle, so I naively did MediaViewCubeFace(val size: Double) extends Group { val backRect: Rectangle { fill = Color.Black } val mediaView: MediaView { fitWidth = size; fitHeight = size } Group { children = Seq( backRect, mediaView) } /* ... */ } None of the above compiles, does not matter. What I found was on MacOS 10.8 Retine Display Java FX 7 update 9 there is a lot of flickering? "So I think I must be doing this wrong?" The media view rendered with the rectangle in front and sometimes behind. DepthTest is switched on. I tried setting a backRect.translateZ = -0.05 and that makes the problem worse. So there something I don't understand about 3D, can't put my finger on it. What did the JavaFX SDK team do to in the JavaOne (2011) demo? Did you put the MediaView inside a Pane or something else? -- 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/ ::
-- 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/ ::
- Previous message: Black Background behind MediaView Replicating 3D Movie Cube
- Next message: Black Background behind MediaView Replicating 3D Movie Cube
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]