Giter Site home page Giter Site logo

Comments (11)

alamboley avatar alamboley commented on May 14, 2024

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.

DieTapete avatar DieTapete commented on May 14, 2024

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.

hambergk avatar hambergk commented on May 14, 2024

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.

hambergk avatar hambergk commented on May 14, 2024

FYI just modified CE to support this kind of behavior in case somebody is interested.

from citrus-engine.

alamboley avatar alamboley commented on May 14, 2024

Absolutely interested! It may be added into a future build ;)

from citrus-engine.

hambergk avatar hambergk commented on May 14, 2024

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.

alamboley avatar alamboley commented on May 14, 2024

That's very cool! I would love to see how well we can add it to the engine.

from citrus-engine.

hambergk avatar hambergk commented on May 14, 2024

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.

alamboley avatar alamboley commented on May 14, 2024

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.

alamboley avatar alamboley commented on May 14, 2024

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.

hambergk avatar hambergk commented on May 14, 2024

Great stuff, keep up the good work! ;)

from citrus-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.