Skip to content

sajithamma/vlca-builder

Repository files navigation

Volcano Metaverse Builder

React Fiber based builder for vlca.no (decentralised storage)

Build Status

Demo URL

https://vlca-builder.vercel.app/

Screenshot

alt Screenshot

Prerequisites

You need to install:

Install Steps

git clone git@github.com:sajithamma/vlca-builder.git
cd vlca-builder
//checkout to a new branch with your name
git checkout -b <yourname>
//example:  git checkout -b john
npm install

Run

npm run dev

Note: NodeJs server will run at port 8000, access http://localhost:3000 from the browser to see the default scene)

Change / Add new models

Commit the changes

git status
git add 'filename'
git commit -m "your message here"
git push origin <your-branch-name>
//example:  git push origin john

Some Examples of React Three Fiber

Cube / Box

 <mesh >
        <boxBufferGeometry attach="geometry" args={[10, 10, 10]} />
        <meshStandardMaterial attach="material" color="blue" />
</mesh>

Load a GLTF Model

const gltf = useGLTF('/assets/gltf/boat/scene.gltf');
<group ref={boatRef} scale={4} position={[-100, 19, -50]}>
    <Suspense fallback={<Loading />}>
        <primitive object={gltf.scene} dispose={null} />
    </Suspense>
 </group>

Cone

  <mesh position={[0, 2, 0]} castShadow>
        <coneBufferGeometry args={[2, 8, 8]} />
        <meshStandardMaterial color="red" metalness={0.7} roughness={0.1} />
    </mesh>

Circle

 <mesh rotation={[Math.PI / 2, 0, 0]} position={[0, 1, 0]}>
    <circleBufferGeometry attach="geometry" args={[100, 64]} />
    <meshBasicMaterial attach="material" map={texture} side={THREE.DoubleSide} />
</mesh>

Positional/ Directional Audio

    const sound = useRef();
    const [listener] = useState(() => new THREE.AudioListener());
    const [buffer] = useState(() => useLoader(THREE.AudioLoader, url));
    <positionalAudio ref={sound} args={[listener]}  ></positionalAudio>

Also Refer

About Volcano

Volcano Islands is a world where social media, entertainment, and gaming merge into an interconnected, interoperable virtual experience. We are aiming to bring a paradigm shift in how humans interact in the world of entertainment. https://vlca.no

About

Volcano Metaverse Land Builder using React Fiber. It is a decentralised storage service for Volcano Metaverse project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published