Problems with Flash Builder 4.5 and Away3D - air

I've got a very annoying problem with Flash Builder and Away3D.
We've got a web/mobile panorama product that uses Away3D to render the panoramas as a skybox.
I recently updated Away3D to the latest version, and found that on mobile, there is a black shape in the middle of the screen, blocking part of the panorama. It seems to start off as the whole screen, and then as you rotate it shrinks and changes shape.
I tried reverting to our previous version of Away3d, and now Flash Builder thinks it's full of errors such as invalid overrides and classes not found, and won't compile any new changes to the project. Eg -overridesaway3d.materials.methods.BasicDiffuseMethod.applyShadow
-1020: Method marked override must override another method.
So really, there's 2 problems here:
Latest Away3D makes black shape on Mobile
Flash Builder won't accept the Away3d code (which has been fine for ages).
Can anyone shed any light on either issues so I can get back on with it?

lens.far setting was too far and for some reason it broke the skybox on mobile

Related

Empty Firemonkey app crashes on startup just on Android 7.1, with error NullPointerException on String.contains(CharSequence)

I created a completely new and empty FMX app, tried it using Delphi 10.3.3 and 10.4.0 (patch 3), and when installed on Android 7.1.2 devices (tried two different ones and the official simulator VM), after the splash screen this error message appears:
'java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference'
The error message box flickers quickly (endless loop) and gets slower and slower and after a minute the complete device doesn't react anymore and I can only hard reset it.
I found this thread, so I'm not alone. They say it worked until Delphi 10.1.2. There are also many other similar search results.
Is there any solution? On other Android versions it works well.
Or what can I try to get more information about what causes it?
Do you know a good candidate for an app made with Firemonkey that I could download directly and try out on the device?
Now there is a fix available at quality.embarcadero.com!
Just one line has to be added to 'Androidapi.JNIBridge.pas'. I'm not sure if I should copy it here... Will update this answer when it is released.

Aframe VR : Eyeoffset Settings

This SCREENSHOT gets loaded in my Oneplus 6 phone and is creating problem with the Stereoscopic vision, no one is able to create focus with such a high offset between left & right eyes.
Can anyone help me out in setting the eyeoffset parameters, since i haven't been able to figure them out neither on Aframe.io documentation nor Github
Or is there something that i can do from THREE.js Camera
The parameters for OnePlus 6 (A6000) are missing from the webvr-polyfill device database. You can fork the webvr-polyfill and database, add your device (you need to know dpi and bezel width) and see if the problem is solved in the examples. A-Frame will pick it up when we bump the polyfill version on next release. In the meantime you can do your own A-Frame build pointing to your webvr-polyfill fork.

Migrate app to ios11 for Iphone X

I need to update my app and make it look good on the iphone X. I've seen a couple of answers on stackoverflow and on the internet regarding the new safe area option (Use Safe Area Layout Guides).
According to what I've read the app should adapt automatically using autolayout as well but what I've got is this:
If I start a new project it all works fine. The project is quite big, so starting all over again is not an option. What should I do?
Thanks
I just had the same problem, and in my case, the problem was that my app didn't have a Launch Screen.storyboard, it was using a image as launcher. So adding a new Launch Screen.storyboard and selecting that one fixed it, maybe the rest of the app takes some settings from that Launch Screen.storyboard

How to handle "unexpected preroll-complete"?

My app (OS X 10.10, Xcode 6.1.1) uses an AVPlayerView to show a video resource bundled inside the app. Normally the video runs as expected. Sometimes--and I haven't figured out a way to reliably reproduce this--the video does not start to play, and the screen is all black. At the same time, a warning pops up in the console:
<<<< Boss >>>> figPlaybackBossPrerollCompleted: unexpected preroll-complete notification
How can I programmatically recover from this? I tried Googling parts of the error description but there was only one result (an email to the Apple Mailing List).
Perhaps a notification my view controller can listen for?
Alternatively, if you know a way I can force this state to reproduce, that would help too, as I could then put a breakpoint in.
UPDATE: I still haven't been able to force this problem to reproduce, but I have seen it a couple of times since the first post, and I can say for sure that it's not related to the NSNotifications AVPlayerItemNewErrorLogEntryNotification, AVPlayerItemPlaybackStalledNotification or AVPlayerItemFailedToPlayToEndTimeNotification. My View Controller is listening for those, and didn't hear them when the bug presented.
Thanks!

Very confused by a binding issue between a Cocoa app and a Movie Loader patch in Quartz Composer

I've been programming for a while, but just recently decided to start developing for Mac OS X. I feel like I've come to grips with the basics of Objective-C and Cocoa development over the past week. I'm planning on making graphics apps, and as such am currently in the process of learning how to control Quartz compositions through a Cocoa app. I went through the tutorial that apple offers (with the Mac Engravings composition), and was able to create that just fine. In order to make sure that I truly understood what I learned, I decided to create my own composition and link it to a slightly more complicated Cocoa application.
Essentially, I have a composition that loads a movie or image through a Movie Loader patch, at which point it applies various filters to the frames before outputting it. In my Cocoa app, I've written code (or rather copied and pasted from other apple examples) that lets a user pick a file using an NSOpenPanel object. The filepath of the file they pick gets placed in a text-box that I placed in the app's window using Interface Builder. I binded the value of said text-box to the "Movie_Location" key in my composition, which is a published input in the Movie Loader patch that I'm using. However, no matter what I do, movies and images aren't loaded into this composition no matter what I try. The only thing that gets displayed is the default image that I have saved in that input from Quartz Composer (or nothing if I leave it blank before publishing).
I've added a Clear Color patch to the composition and binded that to a colorwell in my UI, and that successfully changes the color in my display, so I know that the composition and my Cocoa app are communicating. I've spent numerous hours at this point trying to figure out what's going on, and I've just about given up. Does the Movie Loader have any weird behaviors that I'm not aware of, or is there something obvious that I seem to be missing? I'd really appreciate any help or advice from anybody.
Thanks for reading through this...
Best,
Sami
There are two things I can think of as reasons why it is doing this:
The file path isn't formatted incorrectly. Try checking backslashes, colons, etc.
The box isn't updating the value. Try literally clicking in the text field and hitting enter.
That's all I can think of without seeing your quartz composition and/or code.
EDIT:
Check the other continuous box, in the general properties.
I figured this out yesterday. spudwaffle's second idea is what was going on. If I were to type a filepath in and hit enter, it would work just fine. I got this to work properly by just removing the bind and instead using the setValue:keyInPath: function that a patch controller offers. That said, is there some way to force a text-box to update? I remember seeing a "continuously update" or something like that button within the bind sub-menu in the inspector, but my code didn't work with that checked either.
Thanks to those of you that tried to help me! I really appreciate it.
Best,
Sami