Building 3D Scenes

A step-by-step guide to building interactive 3D scenes with Omma.

This guide walks you through building a complete 3D scene from scratch using Omma's AI chat.

Setting Up Your Scene#

Start by describing the basic scene you want:

text
Create a 3D scene with a ground plane, ambient lighting, and orbit controls.
The ground should be a dark gray plane and the background should be a
dark gradient.

This gives you a foundation to build on.

Adding Objects#

Basic Shapes#

Add objects to your scene by describing them:

text
Add a metallic sphere floating 2 units above the ground. Give it a
polished chrome look with environment reflections.

Multiple Objects#

You can add multiple objects at once:

text
Add 5 cubes arranged in a row, each a different color from the rainbow.
They should all be the same size and evenly spaced.

Imported Models#

Reference 3D models from the library:

text
Add a low-poly tree model to the scene and place it on the right side
of the ground plane.

Lighting Your Scene#

Lighting is crucial for good-looking 3D scenes.

Ambient Lighting#

text
Add warm ambient lighting with a hemisphere light - sky color warm white,
ground color dark blue.

Dramatic Lighting#

text
Add a spotlight from the top-left pointing at the center of the scene.
Enable shadows and make the light slightly orange-tinted.

Studio Lighting#

text
Set up three-point lighting: a key light from the top-right, a fill
light from the left, and a rim light from behind.

Adding Animations#

Simple Rotation#

text
Make the sphere rotate slowly around the Y axis.

Complex Animations#

text
Add a bounce animation to the sphere - it should go up and down
smoothly using a sine wave. Also make the cubes rotate individually
at different speeds.

Interactive Animations#

text
When I click on any cube, it should scale up briefly and change to a
random color, then scale back down.

Camera Controls#

Orbit Controls#

The default orbit controls let you:

  • Left click + drag — Rotate the camera
  • Right click + drag — Pan the camera
  • Scroll — Zoom in/out

Custom Camera Movement#

text
Make the camera slowly orbit around the scene automatically. The user
should still be able to override with mouse controls.

Complete Example#

Here's a prompt that creates a complete scene:

text
Create a beautiful 3D scene of a small island floating in space.
The island should have:
- Green grass on top with a few low-poly trees
- Rocky brown sides
- A small waterfall flowing off one edge
- Warm sunset lighting from the side
- Particle effects for the water spray
- Slow automatic rotation
- Stars in the background

Use MeshStandardMaterial for all objects with appropriate roughness
and metalness values.

Best Practices#

Scene Building Tips

Follow these practices for the best results.

  • Start simple — Begin with basic geometry and add complexity gradually
  • Describe materials — Be specific about material properties (roughness, metalness, color)
  • Specify lighting — Good lighting makes a huge difference in scene quality
  • Add interactions — Click events and hover effects make scenes engaging
  • Consider performance — Keep polygon counts reasonable for smooth rendering