Code Monkey home page Code Monkey logo

Comments (14)

JoelProminic avatar JoelProminic commented on May 22, 2024

If we want to launch Away Builder as an external application, we may encounter issues with the Apple Sandbox. We should make sure that we can make this work before we spend too much time with the rest of the design.

If we need to use a special entitlement, make sure that it is reported in this issue and added to the ITunesConnect page.

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024

Piotr and I was discussing on an upcoming release by the end of this month (per our initial goal to release between 1/2 months). This issue may requires investigation and may not be go in this next upcoming release. I'm removing the 'nextrelease' tag for now, we can add this again later if we need to.

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024

Command-line option to open a file to Away Builder:

C:\Program Files (x86)\Away Builder>"Away Builder.exe" "c:\Users\Devsena\Documen
ts\Untitled Library 1.awd"

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024
  • New project template option created for Away3D
  • Opening new project creation dialog and creating project with demo Away3D file
  • New plugin file
  • Away3D setup section in Moonshine > Settings

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024
  • Plugin file changed location to desktop project
  • Moonshine opens the .awd file after new project been created
  • Moonshine opens Away3D Builder without file parameter as well

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024
  • Project now also opens from recent opened project lists well

from moonshine-ide.

piotrzarzycki21 avatar piotrzarzycki21 commented on May 22, 2024

@rat-moonshine ,

Quick question - it will be committed into some separate branch, or you will commit it to the master after release 1.6.0 ?

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024

Here's the complete list of the implementation:

  • A new menu option introduced - Others > Build an Away 3D model, which shall opens the Away3D builder standalone
  • A new template option introduced - Away3D Project; User shall go through usual create project dialog and create a project with a demo .awd file to his/her system (at this moment its an any awd file - this shall needs to update as a proper template file)
  • In both above steps, if Away3D Builder not already setup, Moonshine will take the user to new section Moonshine > Settings > Away3D, where s/he can setup the path for Away3D Builder
  • Once opened an Away3D file it'll get added to recent opened section as well; User can open the file/project from the recent opened section also

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024

Quick question - it will be committed into some separate branch, or you will commit it to the master after release 1.6.0 ?

I'm working on a different branch. Once 1.6.0 released it shall be merged to master.

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024

Codes were taken to 'master' after fixing initial conflicts.

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024

We need project file from Walker to bundle within Moonshine as default template for Away3D project.

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024

Walker provided the following Away3D project zip for integration in Moonshine:
Away3DExample.zip

This zip is consists of many other files and this involves compilation of the project (which was out of scope in the previous requirement), Walker explained how this project is suppose to work:

Based on the comment-block in the main source file (Away3DExample.as), you can find all the necessary dependencies and configurations to make the source file able to be run:

Author: Walker Dalton
Version: 1.0
Description:
    Away3D Example implementation of loading an AWD model (model built with Away Builder)
Dependencies:
    - AIR SDK v26.0
    - Away3D v4.0
Notes:
    - The 'wmode' param MUST be set to direct to make use of 3D API
    - Check the Application Descriptor file for necessary & recommended params for Away3D (Away3DExample-app.xml)

Away3DExample.iml is used by IntelliJ to define the SDKs that the project relies on, which are two SDKs mentioned above. (This can be removed in opt for your Moonshine configuration)
Away3DExample-app.xml is necessary to define an essential param (As described in the comment-block above), which is the wmode param of 'direct'.

src/Away3DExample.as is the main source file which contains all the code to make this a working example.
src/assets/Away3DExample.awd is the model file created by Away3D Builder and used by the main source file to render a model. Note: It can be opened and loaded directly into Away3D Builder with no additional steps needed.

@JoelProminic is able to give the project a run after some changes in Moonshine, following was his findings:

I talked to Walker about his demo project, and I was able to convert this to a Moonshine project:
2017_11_29__Away3DExample.zip
I used the .as3proj file from a Actionscript AIR project. You may want to do some cleanup for this.

The "out" directory was the compiled output from IntelliJ. ".idea" and "Away3DExample.imi" were project files from IntelliJ.

The away3d-core-fp11_4_1_6.swc library is required. I added it to my project in the lib directory.

I also moved the application descriptor file and made some minor updates to match the Actionscript AIR project.

After these changes the project can be compiled and launched like a normal AIR project. I think this is how we will want the Away3D project template to work.

However, the AWD files are generated using Away Builder. Generating these files are outside of the scope of Moonshine, but I see you have some logic to open the AWD file in Away Builder (after the application path is configured). You could continue using this logic if the user double-clicks to open a .awd file in the sidebar.

Note that the src/assets/Away3DExample.awd is an asset created specifically for this example project. This will probably not be useful for users creating a new application, but it is helpful to show where the new assets should be placed.

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024

I've done integration of the template project for Away3D (thank you @JoelProminic for investigation on running inside Moonshine, this help to boost the integration faster).

However, even there are identical codes between the template project and the demo project supplied by Joel, one runs and one not. Project created through the new template completes its compilation, but is throwing error while run on AIR window. I'm not clear yet why it's happening, I'm still looking for a reason:

image

from moonshine-ide.

rat-moonshine avatar rat-moonshine commented on May 22, 2024
  • Away3D project template now runs in AIR window as well
  • File with extension .awd opens by Away3D Builder (if configured in Settings/Away3D section)

from moonshine-ide.

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.