Git Product home page Git Product logo

tiny-heavenn's Introduction

Tiny Heaven

The idea

Have you seen Joshua’s World? It’s an amazing website and I want to recreate an experience with the same idea. I’ve seen beautiful low poly plane on Sketchfab that I want to use in a project. I need a place to fly this plane thought. I was thinking about mountains but it’s hard to make it look good and there are rare free 3D designs.

Live

The method

Controls

The most important thing here is to have good controls. I had two options. My first plan was to go with the PresentationControls from drei. It’s the easiest way to implement the controls. When you drag, the camera doesn’t move but you basically control the island. It’s perfect because I don’t need to move the plane. Why would I go with the other option then? Well I don’t have as many options as I’d like. For example, I want to be able to control the dumping.

To do that, I came back to the basics. Orbitcontrols has way more options so let’s find a way to recreate the effect I want from scratch. First, let’s setup limits. I don’t want the user to be able to rotate vertically nor to be able to move away from the island. Everything is easy to setup due to the amount of options on the Orbitcontrols.

Plane position

Because I chose the Orbitcontrols, I need to find a way to move the plane at the same time. Fortunately, I can get the azimuth angle, I just need to update the plane’s position and rotation every time the camera moves.

Licences

Floating Island

Plante

tiny-heavenn's People

Contributors

waqartabish2807 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.