Beginner's Guide / Maya

Verge3D is a versatile piece of software which you can utilize differently depending on your personal preferences. This guide describes just one of possible ways of how you can build your workflow, so take it as a friendly recommendation. The only prerequisite is that you should have some experience with Maya on top of which Verge3D works.

Installation

The installation procedure is thoroughly described here.

Sneak Peek

To make sure that Verge3D is installed correctly, you can render a basic model in the web browser by using the Sneak Peek menu option:

Sneak Peek menu in Maya

... or the button located on Verge3D shelf:

Sneak Peek shelf button in Maya

This function will perform an export to a temporary folder and will run the default web browser with interactive rendering. You may use Sneak Peek for quick tests any time you are working on your projects.

App Manager

Although you can start working on graphics first and create a Verge3D project later, we encourage you to get used to the App Manager from the beginning. By doing so you ensure that your files are properly organized and stored within the same folder which is important for integrity of your project, especially if you plan to transfer it to a third party.

Another benefit of leveraging the App Manager beforehand is that you will always have a functioning web application which you can run/reload in the browser without the need to go to your scene files first.

App Manager main screen

The App Manager opens up in the web browser when you select the Run App Manager option in the Verge3D menu (or click the corresponding shelf button).

Running app manager from Maya App manager shelf button in Maya

The default system browser will be running - you can change it in your OS settings. Any modern browser will work yet we recommend the latest version of Google Chrome which is fast, standards-compliant and offers good web development tools.

You can create a new project using the button on the left bar.

Button to create a new project

Type a project name (or just leave my_awesome_app) and click Create App. Leave the default configuration options as they are for now.

Dialog to create My Awesome App

Once a new application is created, it will appear in the list.

Running Your App

You can run your app any time by clicking the Verge3D icons, either the blue or the green one. The blue icon launches an app in its final form, with its Puzzles scenario and the programming code (if present). On the contrary, the green icon only opens the exported scene.

Buttons to run My Awesome App

A freshly created app loads and displays just a cube. You can look around with the left mouse button pressed, and zoom in and out with the mouse wheel.

Running My Awesome App in the browser

If instead of the cube it shows something like "This site can’t be reached" this means that the development server is down, probably because you updated Verge3D to a new version. In this case you should launch Maya, or, if the program is already running, start the App Manager again.

Although very rare, another warning can be shown: "Ouch! Your graphics card does not support WebGL." This can happen if you're using an outdated or unsupported browser, or your video card and/or drivers are blacklisted by the browser. Try installing latest Google Chrome/updating your OS/downloading latest drivers, or just find another computer to work on.

Export

By clicking on the M icon you can open up the main .ma/.mb file of your application.

Button to open Maya scene of My Awesome App

The save files can also be opened as usual via the FileOpen dialog or simply by double-clicking on them in the application folder. FileOpen may sometimes be more efficient since it does not spawn a new instance of Maya.

It is important to understand that an application only loads files exported in glTF format, rather than Maya's save files. So every time you change something in your source file, you must export from it in order to see the modified scene in your app.

Exporting can be performed from the Verge3D menu of the main menu bar (or by using the corresponding shelf button). You might want to assign a shortcut for this operation since you may perform it quite often.

Exporting Maya scene to glTF App manager shelf button in Maya

Export your scene to the root of the corresponding application folder, in glTF format.

Selecting name for exported glTF asset

To test it out, add some objects to your scene, export to glTF and run your app by clicking the blue Verge3D logo icon in the App Manager.

For quicker iterations, you can keep your application always running in a browser tab. Hit "F5" on your keyboard after you re-export your scene so that it reloads in the browser. Use the "Alt+Tab" ("⌘+Tab" on Mac) shortcut to instantly switch between Maya and the browser.

Puzzles

Until now we used Verge3D as a fancy web exporter, which generates live 3D views running in the browser. With Puzzles, Verge3D's visual scripting tool, you can add behavior scenarios so that your 3D scene becomes a truly interactive web application.

Button to run Puzzles logic of My Awesome App

Click the Puzzles button near your app name in the App Manager. This will run your app with the Puzzles editor attached on top of it.

Puzzles editor screen

On the left the toolbox with some categories ("Events", "Selectors", "Objects", etc) is located. The categories are expanded upon mouse click revealing puzzles which you can drag out to the workspace. By connecting various puzzles with each other, you can create a scenario of how your 3D objects will behave upon user input.

You can quickly obtain help for any puzzle by hovering the mouse cursor over it or by using the right-click menu.

Puzzles toolbox

To do something meaningful for the beginning, drag out the when clicked puzzle from the Events category and select some object in the light-green dropdown.

Adding when clicked puzzle from the toolbox

This puzzle causes your app to wait until the user clicks on the specified object, and then do... nothing unless you add something in the do slot.

Drag out the hide puzzle from the Objects and insert it to that slot. Select the same object ("pCube1") in its dropdown.

when clicked and hide puzzles in action

Now, once the user clicks on the 3D object, it should disappear. Click the Run button in order to launch your program and check if it works by clicking on the cube.

Button to run puzzles

In order to make your scenario a persistent part of your application, be sure to save it.

Button to save puzzles

Once you finished with Puzzles, you can run your now-interactive app using the blue icon in the App Manager.

Congratulations, you have become a programmer!

Publishing

On your own website...

You've created a web application and probably want the billions of Internet users to come and check it out. If you own a website, this won't be a problem - simply upload the entire folder with your application to your server (via FTP, for example). Once deployed, you can provide a link to the app's HTML file somewhere on your website, or embed it in a web page with the iframe HTML element:

<iframe width="1024" height="640" src="https://www.example.com/my_awesome_app/my_awesome_app.html"></iframe>

Using WordPress...

The task is even more simplified if you are running the WordPress CMS on your website - you can use the free Verge3D WordPress plugin to upload and embed Verge3D apps.

On Verge3D Network...

But what if you haven't had the chance to become a web master? No problem - by clicking a button in the App Manager you can upload your app to the Verge3D Network, a cloud-based storage and CDN hosted on Amazon servers.

Button to upload My Awesome App to Verge3D Network

After the uploading is complete, a screen will show up with a direct link which you can share by whatever means (in a blog post, social media, comments, email, you name it). It will also generate HTML code for embedding your app in third-party websites just like you do it with YouTube videos.

Dialog to share a link to My Awesome App

Activating License

You can take the trial for a spin for indefinitely long period of time. However, for use in production you will need a license. The license information is sent via email (the key below is a random example).

E-mail with Verge3D license key Activating Verge3D for Maya license

The license key will activate your Verge3D instance and will remove the trial watermark from all your apps.

License activation status dialog

What's Next

Proceed to the Workflow chapter for a more advanced guide on using Verge3D.

Got Questions?

Feel free to ask on the forums!