ASHUTOSH KUMAR SINGH

MISSION BRIEF: GALACTIC-SCALE CINEMATIC MOD DESIGN

You are a Lead Graphics Engineer and Systems Architect specializing in Java 21 / NeoForge 1.21.1. Your goal is to design "Astralepsis", a high-end cinematic mod that brings true, physics-defying cosmic scale to the game, featuring multi-stage orbital cutscenes and reality-warping abilities that completely transcend standard gameplay constraints.

---

1. CORE ARCHITECTURE & RENDERING PIPELINE

  • Interdimensional Uplink (The Core Item): A floating, non-Euclidean geometric artifact held in the player's hand that reacts dynamically to ambient lighting and player movement.
  • Seamless Camera Transition System: Completely intercept the client player view using custom viewport interpolation. Transitions must smoothly glide from ground level, past the cloud layer, through a simulated ionosphere, and directly into deep space or galactic coordinates without loading screens.
  • Post-Processing Shader Stack: Integrate custom GLSL/Compute shaders for atmospheric entry heat glow, gravitational lens distortion, chromatic aberration, and shockwave distortion rings.

---

2. COSMIC POWERS & MULTI-STAGE CUTSCENE MATRIX

Design 5 hyper-scale cosmic abilities. Each power must feature a 3-Stage Cinematic Sequence (Space Setup -> Atmospheric Entry/Descent -> Cataclysmic Impact/Aftermath):

#### 🌌 Power 1: SS-C1 "Supernova Remnant" (Stellar Death)

  • Stage 1 (Deep Space): Camera pulls back past the asteroid belt to frame a dying blue supergiant star collapsing inward. The star detonates, casting blinding light across the screen and launching a high-velocity particle wave toward the target planet.
  • Stage 2 (Descent): The atmosphere turns an incandescent violet-blue as a shockwave compresses the clouds into a massive toroidal ring.
  • Impact & FX: The target zone is flash-melted into radioactive glowing plasma fields and crystalline star-metal. Entities caught in the radius are atomized into stardust particles.
  • Sound FX: A low, sub-audible vacuum frequency sweep followed by a delayed, ground-shattering cosmic shockwave rumble.

#### 🕳️ Power 2: SS-C2 "Kerr Ring Singularity" (Rotating Black Hole)

  • Stage 1 (Deep Space): Camera shifts into a distant galaxy where two primordial black holes collide. An accretion disk flares with blinding gold and magenta photon rings.
  • Stage 2 (Descent): A swirling, light-bending vortex drops from the upper stratosphere, distorting the entire screen geometry and pulling starlight into a central dark abyss.
  • Impact & FX: Extreme gravitational shear. Blocks, terrain layers, and structures are spaghettified—ripped vertically upward into a towering funnel before collapsing into an ultra-dense singularity point.
  • Sound FX: An escalating mechanical-organic drone that shifts into a terrifying high-pressure acoustic suction noise.

#### ☄️ Power 3: SS-C3 "Oort Cloud Harbinger" (Primordial Ice Comet)

  • Stage 1 (Deep Space): Camera orbits a dark, freezing expanse at the edge of the solar system. A massive, kilometre-wide ice monolith breaks orbit, propelled by pressurized volatile gases.
  • Stage 2 (Descent): The comet screams through the atmosphere leaving a massive tail of glowing cyan plasma and meteoritic debris that splits the sky wide open.
  • Impact & FX: Instant absolute zero flash-freeze. A massive glacial crater forms, lined with deep cryogenic ice spikes, permanent frost fog, and physics-defying floating ice shards.
  • Sound FX: Deafening sonic booms, cracking glaciers, and a resonant, echoing crystalline chime.

#### ⚡ Power 4: SS-C4 "Gamma-Ray Burst" (Cosmic Laser)

  • Stage 1 (Deep Space): Camera positions behind a neutron star cluster locked in a magnetic binary dance. The magnetic poles align, focusing a concentrated beam of pure gamma radiation across light-years.
  • Stage 2 (Descent): A piercing, razor-thin shaft of green-white light burns through the clouds instantly, illuminating the entire terrain in strobe-like flashes.
  • Stage 3 (Impact): The ground doesn't just break—it vaporizes cleanly down to the bedrock layer, leaving a perfectly cylindrical, glowing glass-lined silo that reaches into the underworld.
  • Sound FX: A high-pitched electromagnetic hum akin to a particle accelerator operating at maximum capacity, followed by a thunderous atmospheric snap.

#### 🪐 Power 5: SS-C5 "Dyson Swarm Fragment" (Orbital Megastructure)

  • Stage 1 (Deep Space): Camera pans across an incomplete ring-shaped megastructure orbiting a sun. A localized energy collector detaches, angling its solar sails toward the planet.
  • Stage 2 (Descent): A golden, geometric array of mirror panels drops down in formation, interlocking in mid-air to form a floating geometric matrix above the target zone.
  • Impact & FX: Focused solar convergence. A web of golden laser lines crisscrosses the target area, slicing terrain into clean mathematical blocks that disintegrate into floating light quanta.
  • Sound FX: Harmonic mechanical locking sounds, deep bass pulses, and a choir-like synthesized resonance.

---

3. TECHNICAL & CODE INTEGRATION REQUIREMENTS

  • Provide complete structural code outlines for the Client-Side Camera Interceptor, Shader Pipeline Bridge, and Cinematic State Machine.
  • Detail how the particle systems handle thousands of concurrent GPU-accelerated particles without frame drops.
Kodari AI
KodariNov 2 at 3:33 pm 3
Astralepsis
Astralepsis is a cinematic cosmic powers mod for NeoForge 1.21.1, delivering five hyper-scale abilities with multi-stage orbital cutscenes. Each power—Supernova Remnant, Kerr Ring Singularity, Oort Cloud Harbinger, Gamma-Ray Burst, and Dyson Swarm Fragment—features a three-stage sequence: deep space setup, atmospheric descent, and cataclysmic impact. The mod integrates a seamless camera transition system with custom viewport interpolation, a post-processing shader stack for atmospheric glow and gravitational lensing, and a cinematic state machine orchestrating events. GPU-accelerated particle systems render thousands of concurrent effects without frame drops, while synchronized sound design enhances immersion. The core Interdimensional Uplink item reacts dynamically to lighting and movement, serving as the catalyst for these reality-warping cosmic events.

Astralepsis: cinematic architecture

Astralepsis should separate what the player sees from what the server changes. The client renders an authored cosmic sequence; the server validates activation and applies a bounded, staged impact. That separation makes seamless space travel possible without moving the player or loading distant dimensions.

Core systems

  • Interdimensional Uplink: a craftable, animated artifact. Its apparent floating geometry and lighting response are client-side; activation and cooldowns are server-authoritative.

  • Cinematic director: advances each power through space setup, descent, and impact. A shared timeline drives camera, effects, particles, and audio.

  • Camera interceptor: temporarily overrides the rendered viewpoint, interpolating between authored poses while preserving the real player position.

  • Shader bridge: composes optional screen-space effects and restores rendering state afterward. Unsupported hardware falls back to simpler effects.

  • Impact executor: applies terrain and entity effects incrementally on the server, with radius, height, and per-tick work limits.

  • Network synchronization: the server broadcasts a validated power, target, seed, and start time. Clients derive matching visuals locally.

A survival recipe could combine a nether star, echo shards, end crystals, and netherite. Each activation should also consume a rare resource or impose a substantial cooldown: these powers can permanently alter a world.

Structural code outlines

These are design outlines, not a ready-to-compile NeoForge implementation. Camera hooks, rendering APIs, and packet registration must be selected against the 1.21.1 source before implementation.

Cinematic state machine

Java
enum Stage {
    SPACE_SETUP,
    DESCENT,
    IMPACT,
    FINISHED
}

record CinematicSpec(
    String powerId,
    long seed,
    long serverStartTick,
    double targetX,
    double targetY,
    double targetZ
) {}

interface CinematicScene {
    long durationTicks(Stage stage);
    CameraPose cameraAt(Stage stage, float progress);
    EffectFrame effectsAt(Stage stage, float progress);
}

final class CinematicDirector {
    private final CinematicScene scene;
    private Stage stage = Stage.SPACE_SETUP;
    private long stageStartTick;

    void update(long tick) {
        while (stage != Stage.FINISHED
                && tick - stageStartTick >= scene.durationTicks(stage)) {
            stageStartTick += scene.durationTicks(stage);
            stage = next(stage);
        }
    }

    float progress(long tick, float partialTick) {
        if (stage == Stage.FINISHED) return 1.0f;
        return Math.clamp(
            (tick - stageStartTick + partialTick)
                / scene.durationTicks(stage),
            0.0f, 1.0f
        );
    }

    private static Stage next(Stage stage) {
        return switch (stage) {
            case SPACE_SETUP -> Stage.DESCENT;
            case DESCENT -> Stage.IMPACT;
            case IMPACT, FINISHED -> Stage.FINISHED;
        };
    }
}

The client should initialize from the server’s start tick, so late-arriving packets begin at the correct point rather than replaying the sequence. Cancellation, disconnect, dimension change, and resource reload must all restore normal camera and rendering state.

Client-side camera interceptor

Java
record CameraPose(
    double x, double y, double z,
    float yaw, float pitch, float roll, float fieldOfView
) {}

final class CinematicCamera {
    private CameraPose savedPose;
    private boolean active;

    void begin(CameraPose currentPose) {
        savedPose = currentPose;
        active = true;
    }

    CameraPose sample(CinematicScene scene, Stage stage, float progress) {
        if (!active) return savedPose;
        return scene.cameraAt(stage, smoothstep(progress));
    }

    CameraPose end() {
        active = false;
        return savedPose;
    }

    private static float smoothstep(float t) {
        return t * t * (3.0f - 2.0f * t);
    }
}

The “space” portions should render a separate cinematic backdrop, not rely on distant world chunks being available. Blend from the actual world into atmosphere and orbital imagery, then back toward the loaded target area. Interpolate orientation with quaternions in the implementation to avoid abrupt rotation and gimbal artifacts.

Shader pipeline bridge

Java
record EffectFrame(
    float heat,
    float lensing,
    float chromaticAberration,
    float shockwave,
    float flash
) {}

interface ShaderBackend extends AutoCloseable {
    boolean available();
    void resize(int width, int height);
    void render(EffectFrame effects, float partialTick);
    void reload();
    @Override void close();
}

final class ShaderPipelineBridge {
    private final ShaderBackend backend;

    void render(EffectFrame effects, float partialTick) {
        if (backend.available()) {
            backend.render(effects, partialTick);
        }
        // Otherwise render a reduced, non-shader fallback.
    }
}

The intended order is scene capture → lens distortion → heat distortion → shockwave → chromatic aberration → flash/composite. Compute shaders are optional, not assumed: OpenGL capabilities vary, and Minecraft’s normal rendering path does not guarantee compute support. Resource reload, resizing, and shader failure need explicit cleanup and fallback handling.

Five cinematic timelines

Power
Space setup
Descent
Server impact and aftermath
SS-C1 Supernova Remnant
Blue supergiant collapses, flashes, and emits a wave.
Violet-blue atmospheric glow and an expanding cloud ring.
Damage entities and transform a bounded surface area into luminous, crystalline terrain. Vacuum sweep precedes a delayed rumble.
SS-C2 Kerr Ring Singularity
Two dark silhouettes merge amid gold and magenta rings.
A descending vortex bends the scene toward its center.
Incrementally remove or transform eligible blocks; render rising debris client-side before collapse. Drone builds into suction.
SS-C3 Oort Cloud Harbinger
An icy monolith breaks from a dark distant field.
Cyan tail, debris, and sonic flashes.
Form a bounded ice crater and spikes; render floating shards and frost fog locally. Layer booms, ice cracks, and chimes.
SS-C4 Gamma-Ray Burst
A binary star alignment focuses a beam.
A green-white shaft and brief flashes.
Excavate a configurable cylinder down to the
dimension’s minimum build height
, preserving protected and unbreakable blocks by default; line its walls with glass. Hum ends in a snap.
SS-C5 Dyson Swarm Fragment
A collector detaches from an orbital ring.
Golden panels assemble above the target.
Apply a bounded geometric terrain pattern and display crossing beams and light particles. Mechanical locks lead into bass and choral tones.

The apparent scale can be enormous, but actual block changes should remain bounded and respect protection integrations where available. A client cinematic must never be trusted to choose arbitrary coordinates, bypass permissions, or force-load unlimited chunks.

Particle performance

Thousands of particles are a budget target, not a guarantee of zero frame drops:

  • Use batched, instanced rendering rather than a separate draw call per particle.

  • Store compact particle attributes in GPU buffers; use a compute update only when supported, otherwise use a bounded CPU update or simpler instanced path.

  • Use seeded procedural emission so clients can reconstruct effects from a small network message instead of receiving individual particle packets.

  • Cull off-screen and distant particles; reduce density dynamically based on measured frame time and user settings.

  • Reuse buffers and particle slots, avoid per-frame allocations, and cap both particle count and transparent overdraw.

  • Profile on target hardware: translucent full-screen effects can be more expensive than the particle simulation itself.

Implementation status: this is the requested architecture and code outline, not a finished playable mod. The Uplink recipe and the five impacts require actual registration, assets, networking, rendering integration, and server-side implementation before they can be obtained or used in survival.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code