Skip to content
This repository was archived by the owner on Mar 28, 2026. It is now read-only.

Latest commit

ย 

History

History
561 lines (419 loc) ยท 13.4 KB

File metadata and controls

561 lines (419 loc) ยท 13.4 KB

Ultra-Advanced Tech Backgrounds ๐Ÿš€

Overview

11 cutting-edge animated backgrounds featuring WebGL shaders, neural networks, raymarching, fluid simulation, volumetric lighting, 3D depth layers, and advanced particle systems - all integrated with your NextGenXplorer theme.


๐ŸŒ Ultra-Tier Backgrounds (WebGL/Advanced)

1. Neural Vortex Background โญ MOST ADVANCED

Tech: WebGL Shaders, Mouse Interaction, Scroll Effects Best for: Hero sections, immersive landing pages

import { NeuralVortexBackground } from "@/components/ui/neural-vortex-background";

<div className="relative h-screen">
  <NeuralVortexBackground
    speed={0.001}
    interactive={true}
  />
  <div className="relative z-10">Your content</div>
</div>

Features:

  • ๐Ÿง  Neural network shader algorithm
  • ๐Ÿ–ฑ๏ธ Real-time mouse interaction
  • ๐Ÿ“œ Scroll-reactive colors
  • ๐ŸŽจ Auto-theme color adaptation

Props:

  • primaryColor - [R, G, B] in 0-1 range (default: theme orange)
  • secondaryColor - Secondary color blend
  • tertiaryColor - Tertiary color accent
  • speed - Animation speed (default: 0.001)
  • interactive - Mouse interaction (default: true)

Theme Colors:

  • Light: Orange + Cyan + Purple
  • Dark: Orange + Deep Cyan + Deep Purple

2. Neutrino Shader Background โšก

Tech: WebGL2, Advanced Particle Shader, GPU Acceleration Best for: Tech showcases, modern SaaS pages

import { NeutrinoShaderBackground } from "@/components/ui/neutrino-shader-background";

<div className="relative h-screen">
  <NeutrinoShaderBackground
    intensity={1.0}
    speed={1.0}
  />
  <div className="relative z-10">Your content</div>
</div>

Features:

  • โš›๏ธ Advanced particle simulation shader
  • ๐ŸŽจ Theme-reactive color system
  • ๐Ÿ’จ Customizable speed and intensity
  • ๐Ÿ”ฅ GPU-accelerated rendering

Props:

  • intensity - Effect strength (default: 1.0)
  • speed - Animation speed multiplier (default: 1.0)
  • className - Additional CSS classes

Theme Colors:

  • Uses 3-color gradient system
  • Orange โ†’ Amber โ†’ Light Yellow

3. Geometric Depth Background ๐ŸŽญ

Tech: Framer Motion, 3D Transforms, Layered Depth Best for: About pages, portfolio sections

import { GeometricDepthBackground } from "@/components/ui/geometric-depth-background";

<GeometricDepthBackground>
  <div className="container mx-auto py-20">
    {/* Your content with depth background */}
  </div>
</GeometricDepthBackground>

Features:

  • ๐ŸŽจ 5 floating geometric shapes
  • ๐ŸŒŠ Smooth wave animations
  • ๐Ÿ’Ž Glass morphism effects
  • ๐Ÿ“ Perspective depth layers

Props:

  • children - Content to overlay
  • primaryColor - Main color override
  • accentColors - Array of gradient colors
  • className - Additional styles

Default Colors:

  • Orange/Amber/Yellow gradient variations
  • Auto-adjusts opacity for light/dark mode

4. Fluid Swirl Shader ๐ŸŒ€

Tech: WebGL, Fluid Simulation, Polar Coordinates Best for: Dynamic hero sections, creative portfolios

import { FluidSwirlShader } from "@/components/ui/fluid-swirl-shader";

<div className="relative h-screen">
  <FluidSwirlShader
    intensity={0.36}
    speed={1.0}
  />
  <div className="relative z-10">Your content</div>
</div>

Features:

  • ๐ŸŒŠ Real-time fluid dynamics simulation
  • ๐Ÿ”„ Swirl effect with polar coordinate transformations
  • ๐ŸŽจ 5-iteration fluid simulation loop
  • ๐Ÿ“ฑ Touch-enabled for mobile interaction

Props:

  • intensity - Effect strength (default: 0.36)
  • speed - Animation speed (default: 1.0)
  • className - Additional CSS classes

Theme Colors:

  • Orange โ†’ Amber โ†’ Yellow gradient system
  • Smooth color transitions based on simulation

5. Neon Raymarcher Background ๐Ÿ’Ž

Tech: WebGL, Raymarching, Distance Fields, 3D Fractals Best for: Tech showcases, futuristic landing pages

import { NeonRaymarcherBackground } from "@/components/ui/neon-raymarcher-background";

<div className="relative h-screen">
  <NeonRaymarcherBackground intensity={1.2} />
  <div className="relative z-10">Your content</div>
</div>

Features:

  • ๐Ÿ”ฎ Real-time 3D fractal rendering (Menger Sponge)
  • ๐Ÿ“ Raymarching with distance fields
  • ๐ŸŒŸ Fresnel effects and dynamic lighting
  • ๐Ÿ–ฑ๏ธ Mouse-controlled camera movement

Props:

  • intensity - Light intensity (default: 1.2)
  • className - Additional CSS classes

Technical Details:

  • 100 raymarching steps for precision
  • Rotating 3D elements with orbital motion
  • Shadow casting and diffuse lighting
  • Theme-integrated orange/amber/yellow palette

6. Volumetric Beams Background โ˜€๏ธ

Tech: WebGL, God Rays, Volumetric Lighting, FBM Noise Best for: Atmospheric scenes, dramatic hero sections

import { VolumetricBeamsBackground } from "@/components/ui/volumetric-beams-background";

<div className="relative h-screen">
  <VolumetricBeamsBackground
    intensity={0.8}
    beamCount={50}
  />
  <div className="relative z-10">Your content</div>
</div>

Features:

  • โ˜€๏ธ God rays / Crepuscular rays effect
  • ๐Ÿ’จ Volumetric fog and atmospheric effects
  • โœจ Animated dust particles in light beams
  • ๐ŸŽญ Multiple light sources with blending

Props:

  • intensity - Light beam strength (default: 0.8)
  • beamCount - Number of ray samples (default: 50)
  • className - Additional CSS classes

Technical Details:

  • Fractal Brownian Motion (FBM) for volumetric patterns
  • 3D volumetric beam calculations
  • Mouse-reactive light source positioning
  • Smooth lerp-based mouse tracking

7. Advanced Particle Field ๐ŸŒŒ

Tech: WebGL, 3D Particles, Matrix Transformations, Life Cycles Best for: Space themes, dynamic backgrounds, interactive experiences

import { AdvancedParticleField } from "@/components/ui/advanced-particle-field";

<div className="relative h-screen">
  <AdvancedParticleField particleCount={2000} />
  <div className="relative z-10">Your content</div>
</div>

Features:

  • โญ 2000+ particles with individual life cycles
  • ๐ŸŽฅ Orbital camera with smooth rotation
  • ๐ŸŽฏ Mouse attraction/repulsion physics
  • ๐Ÿ’ซ Size attenuation based on distance

Props:

  • particleCount - Number of particles (default: 2000)
  • className - Additional CSS classes

Technical Details:

  • Spherical particle distribution
  • Perspective projection with matrix math
  • Per-particle velocity and size attributes
  • Pulsing glow effects with fresnel-like shading

๐ŸŽจ Advanced-Tier Backgrounds (Canvas/SVG)

8. Animated Grid Background

Wavy 3D grid with traveling light particles

9. Gradient Wave Background

Smooth animated gradient waves

10. Particle Background

3D floating particle system

11. Pulsar Grid Background

Interactive mouse-reactive dots

(See BACKGROUND_GUIDE.md for details on these)


๐ŸŽฏ Quick Integration Guide

Option 1: Full-Page Background (Recommended)

Replace your layout background in layout.tsx:43:

// Remove this:
<div className="absolute top-0 left-0 w-full h-full bg-background bg-[linear-gradient(...)] z-[-1]"></div>

// Add this:
<NeuralVortexBackground className="z-[-1]" />

Option 2: Section-Specific Backgrounds

// Homepage hero
<section className="relative h-screen">
  <NeuralVortexBackground />
  <div className="relative z-10">Hero content</div>
</section>

// About section
<GeometricDepthBackground>
  <div className="container">About content</div>
</GeometricDepthBackground>

// Tech showcase
<section className="relative h-screen">
  <NeutrinoShaderBackground intensity={1.2} />
  <div className="relative z-10">Showcase</div>
</section>

Option 3: Page-Specific Routing

// src/app/page.tsx
<NeuralVortexBackground />

// src/app/about/page.tsx
<GeometricDepthBackground />

// src/app/products/page.tsx
<NeutrinoShaderBackground />

๐ŸŽจ Color Customization

Neural Vortex Custom Colors

<NeuralVortexBackground
  primaryColor={[1.0, 0.58, 0.0]}    // Orange RGB (0-1)
  secondaryColor={[0.0, 0.7, 0.9]}   // Cyan
  tertiaryColor={[0.5, 0.0, 0.6]}    // Purple
  speed={0.0015}
  interactive={true}
/>

Geometric Depth Custom Colors

<GeometricDepthBackground
  accentColors={[
    "from-orange-500/[0.15]",
    "from-red-500/[0.15]",
    "from-amber-500/[0.12]",
  ]}
/>

Theme-Aware Usage

All backgrounds automatically adapt to your theme:

import { useTheme } from "next-themes";

const { theme } = useTheme();

// Colors auto-adjust based on theme state
<NeuralVortexBackground />  // โœ… Auto-adapts
<NeutrinoShaderBackground /> // โœ… Auto-adapts
<GeometricDepthBackground /> // โœ… Auto-adapts

โšก Performance Guide

Browser Requirements

Ultra Tier:

  • WebGL or WebGL2 support required
  • Modern browsers (Chrome 56+, Firefox 51+, Safari 15+)
  • GPU acceleration recommended

Advanced Tier:

  • Canvas 2D support (all modern browsers)
  • Hardware acceleration beneficial

Performance Tips

  1. One Background Per Page - Don't stack multiple WebGL backgrounds
  2. Adjust for Mobile:
import { useBreakpoint } from "@/hooks/use-breakpoint";

const { isMobile } = useBreakpoint();

{isMobile ? (
  <AnimatedGridBackground /> // Lighter option
) : (
  <NeuralVortexBackground /> // Full experience
)}
  1. Reduce Intensity on Low-End Devices:
<NeutrinoShaderBackground
  intensity={isMobile ? 0.5 : 1.0}
  speed={isMobile ? 0.5 : 1.0}
/>
  1. Conditional Loading:
{process.env.NODE_ENV === 'production' && <NeuralVortexBackground />}

๐ŸŽฎ Interactive Features

Neural Vortex Interactions

  • Mouse Movement: Creates vortex distortion around cursor
  • Scroll: Changes color blend ratios
  • Touch: Mobile-friendly touch tracking

Disable Interactions

<NeuralVortexBackground
  interactive={false} // Disables mouse/touch
/>

๐Ÿ“Š Comparison Matrix

Background Tech GPU Interactive Theme Complexity
Neural Vortex WebGL โœ… โœ… โœ… Ultra
Neutrino Shader WebGL2 โœ… โŒ โœ… Ultra
Geometric Depth Framer โŒ โŒ โœ… Ultra
Fluid Swirl WebGL โœ… โœ… โœ… Ultra
Neon Raymarcher WebGL โœ… โœ… โœ… Ultra
Volumetric Beams WebGL โœ… โœ… โœ… Ultra
Particle Field WebGL โœ… โœ… โœ… Ultra
Animated Grid Canvas โŒ โŒ โœ… Advanced
Gradient Wave SVG โŒ โŒ โœ… Advanced
Particle Canvas โŒ โŒ โœ… Advanced
Pulsar Grid Canvas โŒ โœ… โœ… Advanced

๐ŸŽฌ Live Demo

Visit the interactive demo:

npm run dev

Navigate to: http://localhost:9002/background-demo

Switch between all 11 backgrounds in real-time!


๐Ÿ› Troubleshooting

WebGL Not Working

// Add fallback detection
useEffect(() => {
  const canvas = document.createElement('canvas');
  const gl = canvas.getContext('webgl') || canvas.getContext('webgl2');

  if (!gl) {
    console.warn('WebGL not supported, using fallback');
    // Use Canvas-based background instead
  }
}, []);

Performance Issues

  • Reduce intensity prop to 0.5-0.7
  • Lower speed to 0.5
  • Use Advanced-tier backgrounds on mobile
  • Disable interactive mode

Theme Not Applying

  • Ensure ThemeProvider wraps your app
  • Check next-themes is installed
  • Verify useTheme() hook availability

๐Ÿ“š Next Steps

  1. Try the demo: npm run dev โ†’ /background-demo
  2. Choose your background: Based on page purpose and performance needs
  3. Integrate: Add to layout.tsx or specific pages
  4. Customize: Adjust colors, speed, intensity
  5. Test: Verify performance across devices

๐ŸŽจ Recommended Combinations

Homepage Hero:

<NeuralVortexBackground speed={0.001} interactive={true} />

About/Team Page:

<GeometricDepthBackground />

Product Showcase:

<NeutrinoShaderBackground intensity={1.2} speed={1.0} />

Creative Portfolio:

<FluidSwirlShader intensity={0.4} speed={0.8} />

Tech/Gaming Landing:

<NeonRaymarcherBackground intensity={1.3} />

Dramatic Hero:

<VolumetricBeamsBackground intensity={1.0} beamCount={60} />

Interactive Experience:

<AdvancedParticleField particleCount={3000} />

Blog/Content:

<AnimatedGridBackground gridSize={40} />

All 11 backgrounds are production-ready, fully responsive, and optimized for your NextGenXplorer theme! ๐Ÿš€


๐ŸŽจ New Ultra-Advanced Backgrounds Summary

Fluid Swirl Shader

  • Technique: Polar coordinate transformations + fluid dynamics
  • Best For: Dynamic, flowing hero sections
  • Performance: Excellent on modern GPUs
  • Unique Feature: 5-iteration fluid simulation with spin effects

Neon Raymarcher

  • Technique: Raymarching with distance fields (Menger Sponge fractal)
  • Best For: Futuristic tech showcases
  • Performance: GPU-intensive, incredible visual quality
  • Unique Feature: Real-time 3D fractals with shadow casting

Volumetric Beams

  • Technique: God rays + FBM noise + volumetric fog
  • Best For: Atmospheric, dramatic scenes
  • Performance: Moderate (adjustable beam count)
  • Unique Feature: Multiple light sources with dust particles

Advanced Particle Field

  • Technique: WebGL particles with 3D projection matrices
  • Best For: Space themes, interactive experiences
  • Performance: Excellent (2000+ particles at 60fps)
  • Unique Feature: Life cycles, orbital camera, mouse physics