Command Palette

Search for a command to run...

Loading component...

Components paid Interactive3d Hero

Interactive3d Hero

Interactive 3D voxel painter with Three.js that allows users to create and manipulate 3D cubes on a grid. Features real-time mouse interaction, cube placement/removal, camera controls.

Best Viewed on

For best experience clickto open in full screen mode

Dependencies

Interaction Type

Click to add cubes on the grid
Hold Shift + Click to remove cubes
Drag to rotate camera, scroll to zoom

CLI UNAVAILABLE

pro component, try copying the source code from top right corner

How to use

import { InteractiveMeshCanvas } from "@/components/v1/skiper36";

// Customizing the voxel painter
const CustomVoxelPainter = () => {
  return (
    <div className="h-screen w-full">
      <InteractiveMeshCanvas
        backgroundColor="#1a1a1a"
        textColor="#ffffff"
        cubeColor="#ff6b6b"
        rollOverColor="#4ecdc4"
        cubeSize={30}
        gridSize={800}
        initialCubesCount={8}
        enablePan={true}
        enableZoom={true}
        enableRotate={true}
      />
    </div>
  );
};
Props
Description

className

CSS classes for the container element

backgroundColor

Background color of the 3D scene

textColor

Color of the grid lines

gridSize

Size of the grid (width and height)

gridDivisions

Number of grid divisions

gridOpacity

Opacity of the grid lines

cubeSize

Size of each cube

cubeColor

Color of placed cubes

rollOverColor

Color of the hover preview cube

rollOverOpacity

Opacity of the hover preview cube

cameraPosition

Initial camera position {x, y, z}

enablePan

Enable camera panning

enableZoom

Enable camera zooming

enableRotate

Enable camera rotation

initialCubesCount

Number of initial cubes to place randomly

Attribution

Source code

Click on the top right
to view the source code

Keep in mind

Most components here are recreations of the best out there. I don't claim to be the original creator. This is my attempt to reverse-engineer, replicate, and often add a few extra features. I've tried to credit everyone, but if I missed something, let me know.

Contact

Additionlly, if you find any bug or issue, feel free to
Drop a dm.

License & Usage:

  • Free to use and modify in both personal and commercial projects.
  • Attribution to Skiper UI is required when using the free version.
  • No attribution required with Skiper UI Pro.