SEA3D Studio - Creating App

Messages
27th April 2016 - 01:12:25 AM
Introduction

Apps that communicate with Java Runtime, NW.JS, Node.JS and Adobe Air in a few code lines. This is our integration with SEA3D Studio that unites the best framework available for creating of Web content.

In SEA3D Studio Apps folder C:/SEA3DStudio/apps you can find several Apps in open-source:

NamespaceAdobe AirNW.JS / Node.JSJava Runtime
sea3d.assimpX
sea3d.closure_compilerXX
sea3d.formatter_codeX
sea3d.geometry_utils
sea3d.previewX
sea3d.sparticle_legacy
sea3d.threejs


This could help to get references.

Creating a new App

1. Create a new file

2. Create a Poonya Script

CreatePoonyaScript


After created renamed to Main (Optional)

3. Add includes in script

Remove all code and write:



This will include automatically the libraries to the App.

- airglobal18_0.swc
- SEA3D_Studio_SDK.swc

4. Add FileInfo Name/Author and App

Select the first file in Explorer. Default name is Asset and create a Name/Author.

CreateNameAutor


name : Title of project
user : Your Poonya username
author : Your name/site/company
version : VVSSBB | V = Version | S = Subversion | B = Buildversion
ns : username.app_unique_name ( namespace )

ns in this tutorial is sea3d.helloworld

AddAppScript


Click in App field and select the script created

Notice that the icon in the explorer has changed for a App file.

Adding App

AppFolder


Save the app as main.app.sea inside of folder.
The final result of the tutorial will be this:

AppFiles


All tutorial files you can find here:

https://github.com/sunag/sea3d_studio_sdk/tree/master/Apps/sea3d.helloworld

Add callback with NW.JS / Node.JS

All App based on NW.JS must start with an .html in this case create a file index.html.
It is necessary to add the script sea3d.app.js.



Now add a simple callback in Java Script.



Calling NW.JS by Poonya Script



Result

AlertHelloWorld


Source-code
https://github.com/sunag/sea3d_studio_sdk/tree/master/Apps/sea3d.helloworld

Starting automatically

C:/SEA3DStudio/settings.json in "apps" add the ns.



Publishing

Zip all dependencies for setup.zip e.g:
- index.html
- sea3d.app.js

After this include the setup.zip in your App in Extras as shown in the picture below:

AddExtraFile


ExplorerExtraFile


Your Zip file will be extracted automatically at installation.
Your App is ready to be published.

Click in File -> Save / Publish and complete the operation as shown in the images below.

PublishApp


UploadSettings


Installing App

How about install your APP :)

All Apps published were available in the SEA3D Store.

InstallApp


I hope you enjoy.

Help