Esacode

Docs / Blocks / Visualizers

3D view (WebGPU)

A high-quality real-time 3D view drawn on the viewer's own graphics card with WebGPU: physically based materials, image-based lighting, soft shadows, ambient occlusion, bloom and temporal anti-aliasing, chosen by what the graphics card can do; plays animated 3D files on a timeline.

A view in the browser (JavaScript) Visualizers Version 0.13 Code you can open and adapt

How it works

The real-time alternative to the 3D view, for when the picture matters: it draws with WebGPU on the graphics card of whoever looks at it (WebGL 2 where WebGPU is missing) and picks its quality from that card. High (most NVIDIA, AMD and Apple graphics): temporal anti-aliasing, ambient occlusion at full resolution, bloom, soft 4096-pixel shadows, sharp on high-density screens.

Medium (integrated graphics): ambient occlusion at half resolution, bloom, multisampling, 2048-pixel shadows. Low (WebGL 2, software or weak graphics): the scene with shadows and nothing on top. If the picture runs slower than about 35 frames a second it steps down by itself; Quality forces one. The badge in the corner says which renderer, tier and graphics card it uses.

Connect 3D files (GLB and glTF, with their animations, materials and textures; OBJ, STL, PLY), for example the animated GLB the 3D view bakes from a replay: they stand on the floor, the camera frames them (several files one at a time, chosen from a list in the corner and loaded only when chosen, or side by side), and their animations play on the timeline at the bottom (play, pause, scrub, speed).

Materials: as authored keeps the file's materials; enhanced makes them read as real ones from their names (paint and body: car paint with a clear coat; glass and window: glass you see through; chrome and metal: polished metal; rubber and tyre; concrete and asphalt; plastic), the same names the Ray-traced render block uses.

Lighting: studio (a soft room), sky (a sun and sky, with the sun's height in Sun height) or night (dark, lit by a key light). With nothing to show yet (before the files arrive, or with nothing wired) it shows the esacode logo, faint, in its middle, as an empty view.

Inputs

InputTakesWhat it is
3D files
scene
Files or Stream
glb, gltf, obj, stl, ply
3D files: GLB or glTF (animations play on the timeline), OBJ, STL, PLY Takes several connections.

Settings

SettingDefaultWhat it does
Quality
quality
auto auto: from the graphics card, and one step down when the picture runs slow
One of: auto, high, medium, low
Lighting
lighting
studio The EsaSim stage, the same as the Ray-traced render's Lighting: studio (key, fill, rim and top soft boxes), sky (the sun at Sun height and a physical sky), sunset (a low warm sun), night (moonlight, a cool rim and a warm key light). The lights stand at the same places around the model, scaled to its size.
One of: studio, sky, sunset, night
Field of view (degrees)
fov
35 As the Ray-traced render's: the same lens gives the same picture
From 5 to 120
Sun height (degrees)
sun
35 With sky lighting: how high the sun is (0 = sunset, 90 = noon overhead)
Exposure
exposure
1
Materials
materials
enhanced enhanced: car paint, glass, metal, rubber and concrete from the materials' names
One of: enhanced, as authored
Show the floor
floor
on
Bloom
bloom
0 How much bright parts glow (0 = none, as the Ray-traced render and the 3D view)
Camera
camera
orbit turntable: the camera circles slowly until you take it
One of: orbit, turntable
Several files
several
one at a time one at a time: a list in the corner chooses which file to show; side by side: all of them in a row
One of: one at a time, side by side
First model
model
empty One at a time: the file shown first, by name or part of it (ToyCar), or its number in the list; empty: the first. Only the file shown is loaded.
Link views
link
on Moving this view moves the other 3D views on the page the same way (and choosing a model chooses it in them), so the same detail can be compared in each
Model list in the view
own_list
on The list in the corner to choose the model; off when a Model list block beside the views chooses for all of them
Render this view button
render_button
on While a run goes on: a button that asks a Ray-traced render with Follow the views on for the model shown, from this camera
Render follows
render_follow
model and camera While a run goes on, with a Ray-traced render that follows the views: what this view asks it to render, with its camera and its shape: the model shown when it changes and when the camera stops (model and camera), only when the model changes, or only with the button
One of: model and camera, model, button only
Show the renderer badge
badge
on
3D mouse, Picture, Record and settings
tools
on The buttons over the top right: fly with a 3D mouse, save a picture, record a video, and the view's settings (kept with the view)
Frames per second
show_fps
off How many frames a second the view draws, by its buttons (also in the settings)
Load after the classic view
after_classic
on With a 3D view (classic) on the page: it loads a chosen model first, then this view, then the worker's render is asked, so they do not share the download. Off: all at once

Where it runs

In the browser, on the flow's View page and in the run's results, in a sandbox without network access. It needs no worker.

More in Visualizers