[PySpace] Add CLI options (fractal, size, quality) and an offline render mode

Abierto
#405 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
66/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

Start with PySpace/ray_marcher_demo.py, especially the hard-coded settings at lines 22, 25, 255, and 264–266 and the per-frame FPS print at line 469. Read how the current loop selects fractals, configures the camera and handles frames; then try the documented xvfb-run command. Done means the listed options work, rendering one frame creates out/frame0000.png, and the process exits successfully.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area: pyspace good first issue priority: P3 size: S type: enhancement

Summary

Choosing a fractal, window size or camera quality requires editing the script. The main loop also prints the FPS to stdout every frame. A small CLI and a headless "render N frames to PNG" mode would make the project easy to demo, screenshot for the docs, and smoke-test in CI.

Location

  • PySpace/ray_marcher_demo.py:22,25,255,264-266 (hard-coded size, fps, fractal, camera)
  • PySpace/ray_marcher_demo.py:469 (print(clock.get_fps()) each frame)

Evidence

A 30 s run printed 61 lines of output, most of them a bare FPS value (1.2556504011154175).

Expected

python ray_marcher_demo.py --fractal mandelbox --size 1280x720 --aa 2 works, and --render out/ --frames 1 writes a PNG and exits.

Proposed fix

Add argparse with --fractal {infinite_spheres,butterweed_hills,mandelbox,mausoleum,menger,tree_planet,sierpinski_tetrahedron,snow_stadium,test_fractal}, --size, --fps, --aa, --render DIR --frames N. Show the FPS in the window caption instead of printing it.

Acceptance criteria

  • Each example fractal selectable from the CLI
  • xvfb-run -a python ray_marcher_demo.py --fractal menger --render out --frames 1 writes out/frame0000.png and exits 0

Repository audit, November 2026 · Phase 9 · New features · evidence: reproduced · ref fractals-equations-037


Generated by Claude Code

Lenguaje dominante
C++
Estrellas
2
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ibra-kdbra/Math-Problems

Todos los issues de ibra-kdbra/Math-Problems

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.