Comments (11)
Well, that's a deep question that I've never tried myself.
First thing you will need to modify the CE if you have to setup a proxy and share the context.
On an other side you want probably to use Away3D for your game and Starling for UI? Therefore you will not instanciate Starling with the StarlingCitrusEngine class but create your own.
Finally I don't see anything prevent it to work. Please let me know if you make some test ;)
from citrus-engine.
Okay thanks for the quick answer. I guess I will give it a shot then. Maybe my solution will be clean enough to become part of the Engine. ;)
from citrus-engine.
I've been searching the same thing, in the meantime here is another great tutorial for combining starling and away3D (http://www.gotoandlearn.com/play.php?id=166). Let me know if you find a solution.
from citrus-engine.
FYI just modified CE to support this kind of behavior in case somebody is interested.
from citrus-engine.
Absolutely interested! It may be added into a future build ;)
from citrus-engine.
Here is an example: http://dev.levelup.fi/ce/ The static background is rendered using Starling. I can post the source once I've had time to clean it up a bit.
from citrus-engine.
That's very cool! I would love to see how well we can add it to the engine.
from citrus-engine.
Just uploaded an example file and the changes made to CE here: https://github.com/hambergk/CitrusEngine-Starling-Away3D
Keep in mind though that I did it the quick and dirty way, hope it helps development of CE. Here is a example of the code in action:
http://dev.levelup.fi/ce/
from citrus-engine.
Thanks a lok Andreas for this code, I've updated the Away3DView class with your changes!
Also let me know your progress on your 3D game if you made one. The Away3D support isn't very advanced in the engine. I miss some time to give it the power it deserves...
For example here we create Away3D in the State class, that will be a problem if we change level and therefore state because we will recreate a Away3D instance. The previous one will be cleaned, but it may take some time to make the change especially on mobile.
The best practice would be to copy the Starling CE's template : create classes Away3DCitrusEngine and Away3DState. So Away3D will be managed out of the State class.
That's something on my to do list, for one day!
from citrus-engine.
Finally I'd some time to do that! Check the last update : http://citrusengine.com/v3-1-1-stage3d-interoperation/
And see the code example : https://github.com/alamboley/Citrus-Engine-Examples/blob/master/src/stage3dinteroperation/Main.as
Thank you very much ;)
from citrus-engine.
Great stuff, keep up the good work! ;)
from citrus-engine.
Related Issues (20)
- MediatorScene._poolObjects after scene cycle, has null. HOT 2
- Implement a 'remove()' method to PhysicsCollisionCategories.as HOT 1
- ObjectMakerStarling is using old QuadBatch HOT 4
- Feathers swc version problem
- rename _realState to _realScene in display list Scene
- Jump bug CE 3.1.12 + Nape HOT 2
- MathUtils
- ViewportMode.FULLSCREEN -> ViewportMode.SHOW_ALL
- GameInput : update CE's input package
- easy way to activate/deactivate objects
- Accessing undefined properties starling.contentScaleFactor HOT 7
- CitrusSoundGroup could be created like any other CE object, not only creating a custom class HOT 3
- FluidBox.as needs to be removed HOT 1
- SpriteArt/StarlingArt dragonBones code HOT 2
- CitrusStarlingJuggler (pausable juggler) per StarlingScene
- Get rid of linked list in the pooling system
- The classes should implement the functions of interface 'ISpriteView' HOT 1
- Camera onPostUpdate / enabled
- Create NapePhysicsCompound/Box2DPhysicsCompound
- Yay
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citrus-engine.