Future to the fantasy ★ ★
Titania
X3D Editor
Version
3.0

Importing 3D Objects

Find it: Choose File > Import

(or drag and drop the file icon from the desktop into the browser surface)

You can import 3D objects into your scene using a variety of methods. Titania supports a basic file formats, so you can take advantage of 3D clip-art libraries, and you can reuse objects created using other modeling packages. If you use the drag-and-drop method to import 3D objects, you can select multiple files and drag and drop them all into the browser surface.

Supported File Formats

You can import the following file formats into a Titania scene:

  • VRML 2.0
  • X3D Classic Encoding
  • X3D XML Encoding

All format can be compressed using GZip compression.

Importing Objects

Find it: Choose File > Import...

(or drag and drop the file icon from the desktop into the browser surface)

You can add 3D objects, 2D images, sounds, and movies to your scene, either by adding the object directly to your scene or by importing the object using an inline reference. If you import the object as an inline, a reference to the file containing the object is added to your scene, but the file itself isn't copied. There's no visible difference between an object imported as an inline and an object imported directly into the scene. Inlines are often used for complex geometry and for textures, to keep your file small and to reduce transmission time.

Importing Images

Find it: Choose File > Import...

(or drag and drop the file icon from the desktop into the browser surface)

Importing an Image

When you import an image, the image is »pasted« as a flat rectangle in the scene. The width and height of the rectangle depends on the resolution (usually in dpi) set in the image. If there is no resolution set in the image a resolution of 72 dpi is considered.

The image can be in any format ImageMagick supports (supported image formats). Typical web image formats are PNG, JPEG and GIF.

Textures

Often, you'll import images and then apply this new texture to the objects in your scene:

  1. Select an object
  2. Deselect File > Import As Inline
  3. Choose File > Import...
  4. Choose Images as File Filter
  5. Choose the image you want to import as texture

Instead of point 2 to 5 you can also drag and drop an image from the desktop into the main window.

Tip: Use small textures up to 128 × 128 pixel and remove the alpha channel if not needed, this speeds up load time and reduces file size. Texture sizes should be a power of two.

Importing a Movie

Find it: Choose File > Import...

(or drag and drop the file icon from the desktop into the browser surface)

Importing a movie works the same way as importing a image. The movie can be in any format GStreamer supports. Typical web movie formats are MP4 and FLV.

Importing Sounds

Find it: Choose File > Import...

(or drag and drop the file icon from the desktop into the browser surface)

You can import sounds into your file using the File > Import... option, or by dragging and dropping file icons directly from the desktop.

A global sound is created at the origin, pointing down the Z axis, and with default minimum and maximum ranges. The URL is set to the name of the file you imported, and the name is base name of the file. The loop field is set to TRUE, i.e. the sound immediately starts playing.

All sound files supported by GStreamer can be imported. Typical web audio format are MP3 and AAC.

After you import a sound, you'll need to create a trigger so that the sound will be played when the specified type of event occurs (clicking an object, entering a world, coming close to an object). Also, be sure to adjust the range of the sound so that it can be heard at the desired distances.