You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think Starling and Away3D interoperability is currently broken. When I try making a simple demo project with a starling layer and an Away3D layer, it just renders a black screen. Here's an example:
A user linked this issue today, so I was reading through the commit which fixed the relationship between Away3D and Starling for a shared context.
Here are my notes for how to coordinate the two, I may have missed something
For Away3D:
var stage3DManager = away3d.core.managers.Stage3DManager.getInstance(stage);
var stage3DProxy = stage3DManager.getFreeStage3DProxy();
// Use Stage3DProxy for events, such as:
stage3DProxy.addEventListener(Stage3DEvent.CONTEXT3D_CREATED, onContextCreated);
stage3DProxy.addEventListener(Event.ENTER_FRAME, onEnterFrame);
For Starling:
var starling = new starling.core.Starling(MyStarlingGameClass, stage, stage3DProxy.viewPort, stage3DProxy.stage3D);
starling.shareContext = true;
// On enter frame
stage3DProxy.present();
MyStarlingGameClass.getInstance().update();
starling.nextFrame();
I think Starling and Away3D interoperability is currently broken. When I try making a simple demo project with a starling layer and an Away3D layer, it just renders a black screen. Here's an example:
radiosilence_hx.zip
(or on github here: TerryCavanagh/radio-silence-hx@d398652)
This example is basically just following this old Away3D tutorial written with AS3 - http://away3d.com/tutorials/Away3D_and_Starling_Interoperation
In addition, this unrelated issue #39 contains an example Away3D + Starling project, and it just renders a black screen for me too.
(Tested on Haxe 4.3.1, OpenFL 9.2.2, Lime 8.0.2, and Away3D and Starling up to date from github. Apologies if I'm just doing something dumb, as usual)
The text was updated successfully, but these errors were encountered: