Projects, rendering, and export

Note

For illustrated, step-by-step instructions, choose a feature:

Images · Projects · Video · 3D and structure export

This earlier combined reference remains available for existing links.

v_ase separates the editable scientific project, lightweight offline sharing, rendered media, and reusable geometry exports. Choose the output based on what the recipient must recover.

Render Area

Image, video, and HTML use one persistent Render Area. Its visible boundary and gray outside mask define the exact saved composition.

  • The camera is fixed in the scene by default. Lock camera to viewport optionally keeps the render area on screen while navigation changes the composition.

  • Matching camera icons in the viewport and Renderer panel share the Objects visibility state. Turning one on fits the saved camera beside the right panel; turning it off hides the camera and releases viewport lock.

  • Align camera to current view separately replaces the stored camera pose.

  • Select the wire camera or crop-frame camera button for G/R/S move, rotation and frame scaling. Enter applies; Escape cancels.

The Render Area owns aspect ratio, dimensions, projection/camera, overlay choices, quality, and crop. Picking inside it uses the same camera, so pointer selection remains aligned with visible atoms.

Save Project

Render → Project save has two complete-project outputs.

Compact .vase

The default is the smallest editable source of truth. It stores:

  • structure or trajectory frames, cell, PBC, labels, arrays, and constraints;

  • portable stored calculator results;

  • current frame and compatible analysis state;

  • camera, appearance, bonds, lighting, display, and Render Area settings;

  • validated volumetric datasets and their display definitions.

The archive is self-contained and does not reference the original input file. Volumetric arrays use validated compressed members; project loading does not execute an arbitrary pickle payload.

Recompute energy and forces after editing coordinates. A saved project can restore older results alongside the new geometry. Save and share.

The archive stores per-frame cell origins in its manifest. ASE .traj alone does not preserve celldisp; use .vase or project HTML when the displaced cell guide must reopen exactly. Older projects without this optional field retain a zero origin.

Project HTML

Enable Include interactive rendered view to change the output to .html. It embeds the complete .vase recovery data plus an offline interactive 3D viewer and optimized poster. The same file can be inspected without Python and later reopened in v_ase:

v_ase gui project.html

The HTML is larger than .vase because it contains renderer assets, scene data, poster pixels, and a Base64 project archive. After reopening in a workspace tab, Save retains the HTML output profile and its approved target. A child-tab reload restores both the latest visual state and its saved baseline, including a clean state after Save As.

HTML View

HTML View is the share-oriented alternative. It creates a self-contained offline, view-only document that supports orbit, pan, zoom, and trajectory playback but exposes no scientific editing controls.

Project embedding is off by default, producing the lightest handoff. Enable the embed option only when the same file must also recover the editable project. A lightweight HTML without embedded recovery data cannot be opened as an editable v_ase document, and v_ase reports that distinction explicitly.

The poster and live WebGL canvas use the same Render Area rectangle. Finder/ Quick Look can display the poster without executing WebGL; in a browser the live scene replaces it after the first prepared frame. Scalar-field meshes and planes are visible in the poster only. To share an editable field, embed the project or save a .vase archive.

Structure and data output

Output

Contents and intended use

POSCAR

Current physical ASE structure in VASP format

ASE Pickle

Current Atoms, labels, constraints, arrays, and safe stored calculator results

RDF CSV

Radius, total distribution, and requested label-pair curves

Commensurate CSV

Candidate angles/matrices, area ratios, residual strain, search metadata

Registry CSV

Complete translation grid, plane basis, Cartesian vectors, metric values

The CLI -o/--output path writes the finalized physical structure through ASE; --output-format overrides ambiguous output detection.

Image output

Images support:

  • optimized PNG;

  • JPEG;

  • lossless WebP; and

  • a single-page 300 dpi PDF containing the rendered pixels.

The semantic renderer normalizes width/height to 64–8192 pixels. The chosen dimensions and Render Area camera determine the exact output; JPEG and PDF are opaque, while PNG/WebP can retain supported transparency.

Lossless WebP and optimized PNG preserve the requested pixel dimensions and RGBA result. PNG recompression is used only when it is smaller than the browser source.

Video output

Trajectory video supports H.264 MOV and MPEG-4 AVI at a constant requested frame rate. The browser captures each rendered frame, then the bundled imageio-ffmpeg runtime transcodes the final portable file.

At interpolation multiplier 1x, every source frame appears exactly once. For N source frames and multiplier m, the output has (N - 1) * m + 1 frames. Optional MIC interpolation uses adjacent cells and shared periodic axes; it never mutates the source trajectory.

The video background is opaque white. Visible analysis overlays are refreshed for each output frame rather than copied from one source frame.

3D scene output

Blender

Blender uses the visible Render Area camera or the current viewport camera when the Render Area is off. The script preserves framing, roll, materials, Sun controls and visible repetitions, smooth-shades atom spheres and omits graph overlays.

The generated Python scene uses grouped/instanced atom geometry, bond styles, optional cell, trajectory animation, camera, and lighting. Optimized output avoids one Blender object per atom; select individual-object output only when atom-by-atom Blender editing is required.

Water surfaces are included from 0.4.9. Render → 3D geometry → Blender downloads v_ase_blender_scene.py. In Blender’s Scripting workspace, open that file in the Text Editor and choose Run Script. Run generated scripts only from trusted projects. The export sets up the scene; use a new Blender file if you have an unrelated scene open.

The water object, v_ase_water_surface, is an editable mesh with smooth normals, color, opacity, roughness and lit/unlit material. Its physical mesh matches the viewport’s density grid, smoothing and subdivision. Only displayed water copies are included; hidden molecular atoms/bonds stay hidden, while ions and solids remain atomistic. Source coordinates and molecule IDs are unchanged.

For trajectories, running the script installs frame handlers that replace the current mesh, including frames with no water or changed topology. Scrub Blender’s timeline after running it. Save a .blend for a static editable scene. To resume procedural trajectory playback after reopening, run the generated script again; the animation is not baked as independent mesh objects for every frame.

Export rejects more than four million refined water triangles in a frame or two million combined surface vertices/sites across animation frames. Lower water subdivision, repetitions, or export a shorter source trajectory. The scientific isovalue is not automatically altered. Water export uses existing NumPy/SciPy; Blender needs neither ASE nor a running v_ase server to run the generated file.

For a field isosurface or planar section, use v_ase image export. The Blender script does not carry these scalar-field geometries. In a trajectory without water, polyhedra, displayed repetitions or explicit bond bridges, the standard Blender path animates atoms with matching labels and order. Bonds and unit-cell edges follow each saved frame in individual-object and instanced output. Constraint glyphs represent the frame active at export. Run the generated script again after reopening to restore the timeline handlers.

OBJ/MTL

OBJ export is a static scene packaged with MTL plus camera/metadata sidecar information. It has no optional Python dependency.

Rhino 3DM

3DM export uses block-instanced atoms and bonds, metadata, materials, and saved views. Install the optional dependency first:

python -m pip install "v_ase-gui[rhino]"

Visual settings preset

Style → Visual presets exports and imports reusable presentation settings. Apply to Open Tab… sends the preset to a chosen destination in the same window. That tab keeps its structure and atom-specific settings. Use Undo in the destination to restore its previous appearance. A personal visual default automatically applies compatible settings to new structures and tabs.

Use .vase when scientific document state must be exact; use a preset when only a reusable house style is intended.

Save lifecycle and progress

Where the browser File System Access API is available, v_ase opens the native destination picker before expensive rendering or scene generation. Canceling the picker cancels the operation. Chrome may show its own permission notice for the selected destination; v_ase receives write access only to that user-chosen file.

Image and video progress is monotonic across render, capture, upload, encode, download, and final write. Completion reaches 100% only after the destination is finished.

Automation exports

The semantic interface exposes 13 export kinds: image, video, poscar, pickle, blender, 3dm, obj, html, project, settings, rdf-csv, commensurate-csv, and registry-csv. Always read the live schema before building an automated request; see AI-agent integration.

Deterministic video frames

MOV and AVI exports encode one indexed raster per source or interpolated frame. Frame timestamps come from the chosen FPS, not the time taken to render. With N source frames and interpolation factor k, the output contains (N−1)k+1 frames, including both endpoints. Native dimensions must be even integers in 64..8192; FPS is 1..60, and interpolation is an integer from 1 through 64. The GUI retains its 256-pixel minimum input controls. Encoding never pads a typed request or invents a missing scientific frame. PNG uploads apply encoder backpressure so only one raster needs to be staged at a time. Video is opaque.

The original GUI frame is restored after export. Semantic edits and another capture wait until the video is complete. Closing the page aborts its encoder; failed sequences do not return a partial movie as a successful export.