본문 바로가기

11월 26일 20:12 기준 · 10분마다 새 소식을 확인합니다

광고나 제휴로 순서를 바꾸지 않습니다 · pick 기준 보기 ›
소식 받기
코딩 · 개발

3D 프랙탈 입자 시스템 기획

Three.js 기반의 복잡한 프랙탈 3D 파티클 연출 코드 및 수학적 공식을 설계할 때 사용합니다.

추천 툴
ChatGPTAI 분류
쓰인 기법
역할 부여 · 요구사항 명세

프롬프트 원문

ChatGPT로 실행
I want you to act as a Generative Artist specializing in fractal-based 3D particle structures and recursive geometry.

Task: Architect a generative system that builds complex, self-similar fractal structures made entirely of light points (particles).

Design Specifications:

Use a recursive algorithm (like a Mandelbulb or Sierpinski gasket) to define the initial coordinates of the particle cloud.

Implement a "Pulse Logic" where the fractal expands and contracts rhythmically using a Sinewave function.

Add a "Depth of Field" (DoF) simulation where particles further from the focal plane become blurred, creating a macro-photography aesthetic.

Enable real-time parameter tweaking for the fractal's "Iteration" and "Power" variables via a GUI.

Suggest a color-mapping strategy based on the recursive depth of each particle to emphasize the fractal’s complexity.

Please provide the mathematical formula for the point distribution and the Three.js setup for the PointsMaterial and Depth effect.
한국어 풀이 보기(참고용)
프랙탈 기반 3D 파티클 구조와 재귀적 지오메트리를 전문으로 하는 제너레이티브 아티스트 역할을 해주세요.

과제: 빛의 점(파티클)으로만 이루어진 복잡한 자가 유사 프랙탈 구조를 생성하는 제너레이티브 시스템을 설계하세요.

설계 명세:

- 재귀 알고리즘(Mandelbulb 또는 Sierpinski gasket 등)을 사용하여 파티클 클라우드의 초기 좌표를 정의합니다.
- 사인파 함수를 사용해 프랙탈이 주기적으로 확장 및 축소하는 '펄스 로직'을 구현합니다.
- 초점면에서 멀어진 파티클이 블러 처리되어 접사 촬영 느낌을 내는 '피사체 심도(DoF)' 시뮬레이션을 추가합니다.
- GUI를 통해 프랙탈의 'Iteration' 및 'Power' 변수를 실시간으로 조율할 수 있게 합니다.
- 프랙탈의 복잡성을 강조하기 위해 각 파티클의 재귀 깊이에 기반한 컬러 매핑 전략을 제안합니다.

포인트 분포의 수학 공식과 PointsMaterial 및 Depth 효과를 위한 Three.js 설정을 제공해 주세요.
  • 활용Three.js 프로젝트 초기화 시 바로 사용할 수 있는 셰이더 코드와 구조를 받아보세요.
  • 활용피사체 심도 효과와 펄스 애니메이션 주기를 필요에 맞게 조정하세요.

출처 · prompts.chat · Architect a generative system that builds complex, self-similar fractal structures made entirely of light points (particles). — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.

텍스트 결과

Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).

실행 입력값 보기
I want you to act as a Generative Artist specializing in fractal-based 3D particle structures and recursive geometry.

Task: Architect a generative system that builds complex, self-similar fractal structures made entirely of light points (particles).

Design Specifications:

Use a recursive algorithm (like a Mandelbulb or Sierpinski gasket) to define the initial coordinates of the particle cloud.

Implement a "Pulse Logic" where the fractal expands and contracts rhythmically using a Sinewave function.

Add a "Depth of Field" (DoF) simulation where particles further from the focal plane become blurred, creating a macro-photography aesthetic.

Enable real-time parameter tweaking for the fractal's "Iteration" and "Power" variables via a GUI.

Suggest a color-mapping strategy based on the recursive depth of each particle to emphasize the fractal’s complexity.

Please provide the mathematical formula for the point distribution and the Three.js setup for the PointsMaterial and Depth effect.

빛 파티클 기반 3D 프랙탈 제너레이티브 시스템의 핵심 설계안입니다.

  1. 수학적 수식 (3D Mandelbulb 변형 및 Pulse Logic)

파티클의 위치는 구면 좌표계 반복 수식으로 계산됩니다:

  • v = (x, y, z), r = |v|
  • θ = atan2(sqrt(x²+y²), z) * Power + (sin(Time * Speed) * Amplitude) <-- Pulse 적용
  • ϕ = atan2(y, x) * Power
  • v_{n+1} = r^{Power} * (sin(θ)cos(ϕ), sin(θ)sin(ϕ), cos(θ)) + v_0

전체 구조가 수평/수직 축으로 삼각함수 파동에 따라 유기적으로 호흡하듯 팽창·축소됩니다.

  1. 색상 매핑 전략 (Recursive Depth Coloring)

재귀 수렴 속도 및 iteration(n) 깊이에 따라 HSL 색상을 매핑합니다:

  • Hue = (n / MaxIteration) * 0.85 (중심부는 고온의 Magenta, 외곽은 차가운 Cyan)
  • Luminance = 0.5 + 0.5 * sin(n * 0.1)

깊은 층위일수록 강한 발광 효과(Additive Blending)를 주어 복잡성을 강조합니다.

  1. Three.js 구현 (PointsMaterial & DoF Setup)
import * as THREE from 'three';
import { EffectComposer, BokehPass } from 'three/examples/jsm/postprocessing/...';

// 파티클 재질 설정
const material = new THREE.PointsMaterial({
  size: 0.03,
  vertexColors: true,
  transparent: true,
  blending: THREE.AdditiveBlending,
  depthWrite: false
});

// DoF (Depth of Field) 마크로 라이트 포커스 효과
const composer = new EffectComposer(renderer);
const bokehPass = new BokehPass(scene, camera, {
  focus: 1.0,      // 초점 거리
  aperture: 0.025, // 조리개 (아웃포커싱 강도)
  maxblur: 0.01
});
composer.addPass(bokehPass);

GUI(lil-gui 등)로 Power와 Iteration을 조정하면 파티클 BufferAttribute 위치 배열을 재계산하여 리얼타임 렌더링합니다.

mopick 개선안

원문을 더 잘 동작하게 고쳐 쓴 프롬프트

원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.

AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님

원문80
개선안95

원문의 문제 → 개선안에서 고친 점

  • AI 역할레슨 01 배우기 ›

    원문 · 없음AI 에게 맡길 역할이 정해져 있지 않아 답의 관점 · 수준이 그때그때 달라질 수 있었습니다.

    개선 · 역할을 정함Act as an expert Generative Artist and Creative Technologist specializing in Three.js and

  • 입력 칸레슨 05 배우기 ›

    원문 · 없음바꿔 넣을 자리가 표시돼 있지 않아 쓸 때마다 원문을 직접 고쳐야 했습니다.

    개선 · 2개[version: r128+] · [50,000-100,000]

  • 작업 순서레슨 07 배우기 ›

    원문 · 없음작업 순서가 정해져 있지 않아 AI 가 순서를 스스로 정해야 했습니다.

    개선 · 7단계

고친 이유 (개선안을 만든 AI 의 설명)

  1. 1Three.js 버전 및 핵심 패스(BokehPass) 명시
  2. 2파티클 수 제한과 60FPS 성능 제약조건 추가
  3. 3수식, 코드, 최적화 단계로 출력 형식 구체화

원문

I want you to act as a Generative Artist specializing in fractal-based 3D particle structures and recursive geometry.

Task: Architect a generative system that builds complex, self-similar fractal structures made entirely of light points (particles).

Design Specifications:

Use a recursive algorithm (like a Mandelbulb or Sierpinski gasket) to define the initial coordinates of the particle cloud.

Implement a "Pulse Logic" where the fractal expands and contracts rhythmically using a Sinewave function.

Add a "Depth of Field" (DoF) simulation where particles further from the focal plane become blurred, creating a macro-photography aesthetic.

Enable real-time parameter tweaking for the fractal's "Iteration" and "Power" variables via a GUI.

Suggest a color-mapping strategy based on the recursive depth of each particle to emphasize the fractal’s complexity.

Please provide the mathematical formula for the point distribution and the Three.js setup for the PointsMaterial and Depth effect.

개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요

Act as an expert Generative Artist and Creative Technologist specializing in Three.js and shader programming.

**Task:** Architect a 3D fractal particle system dynamic visualization using Three.js [version: r128+].

**Specifications:**
1. **Math & Distribution:** Define explicit mathematical formulas (e.g., Mandelbulb or Sierpinski gasket) to generate [50,000-100,000] light particles. Map particle colors dynamically based on recursion depth.
2. **Animation:** Implement continuous harmonic contraction/expansion ('Pulse Logic') using sine wave functions over time.
3. **Post-Processing:** Integrate Depth of Field (DoF) via `EffectComposer` / `BokehPass` to achieve a macro-photography blur aesthetic.
4. **Interactivity:** Provide a `lil-gui` or `dat.GUI` panel to tweak Iteration, Power, and Speed in real-time.

**Output Format:**
1. **Mathematical Breakdown:** Equations for point distribution and color mapping.
2. **Implementation Code:** Complete Three.js code containing scene setup, `THREE.Points` geometry/material, animation loop, DoF passes, and GUI controls.
3. **Optimization Notes:** 2-3 key strategies to maintain 60 FPS performance.

같은 분야 프롬프트 코딩 · 개발

더 보기 ›