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

オープン
#405 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
66/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C++
スター
2
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ibra-kdbra/Math-Problems のほかの issue

ibra-kdbra/Math-Problems の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。