Publishing

This tutorial will show you how to publish a document to EXE for standalone distribution or HTML for web publishing.

Creating a Scene

First, we'll create a simple document that we want to publish.
Press the Add Scene button, choose a 3D scene, then press Add Mesh and add the chessboard.

Publishing to EXE

Right, now let's publish this simple document as an EXE.
Open the Tools menu from the main main at the top the editor.
In here you can see the different build options - click Build EXE.
In the dialog, click the Browse button to set the filename of the EXE should be built (e.g. test.exe on the desktop)
If you have the Pro Edition, you can set the icon for the EXE here too.
The Store Current Settings in Document button embeds these build settings for the current document, so the next time this document is opened the same settings will be used.
Click the Build button and the file will be created.
Double click the EXE file (on the desktop or wherever you built it to) and you'll see the chessboard. This EXE will run without the DX Studio Player, .Net Framework or other components. The only prerequisite is DirectX 9.0c which it will check for and prompt to download if necessary.

Publishing to HTML

Finally, let's try the HTML build.
Go to the Tools menu again, and select the Build HTML menu option.
Rather than a single file, the Build HTML tool writes several files, so you need to select a folder where to put them. Click the Browse button to select where you want to publish to (e.g. the Desktop).
By default, it will pick up the current document's name as a root for the HTML and document files, but you can change these if desired.
If you're going to upload the files to a web server straight away, it can be useful to supply the URL path of the destination folder so that the HTML will refer to the right place for the .dxstudio file. Don't check the Convert document... option this time though.
Leave all the other defaults and click the Build button.
An HTML page should appear with the player maximised in the page, displaying your document!

0 comments:

Post a Comment