Git Product home page Git Product logo

3d-mobile-website's Introduction

3D mobile Shopping website

  • this is a react 3D mobile website project, similar to the apple site.
  • some of the packages i we used in this are Vite(for the dev svr), webgi, types/three etc

3D model (WebGi)

  • there are plenty of sites out there, we can find our 3d model, for this i ve grabbed the model from the sketchfab site, and we can search and select the model that we want and download that as in GLB format.

  • Once we download our model we can go to the "webGi SDK- A 3d model viewer framework focussed on the photo-realistic rendering and developing ease.

  • we can simply import our 3d model in that viewer .

  • this could be useful for bunch of things for ex we can remove the shadow or the ground reflection of our obj.

  • and we can define the initial position of our obj(in camera view)

  • once we done with the changes again export that as in glb format

  • in the webgi starter code template, grab the file and lets make some change.

Try me

  • The Try me btn is the preview of our model where the users will ve controls over the obj

  • to impl this we need to ve a event listener, once we click it will fire up the parent comp(app.js), which will then fire up another fn ie webgi viewer comp.

  • note: as we know in order to reference a fn from the another comp we ve to use forwardRef()

  • In the preview mode we can be able to rotate the model, we ve to set the controls to true.

  • once we done with the preview we can be able to exit(btn) from the preview.

Resposive design

  • finally lets make this site as break pt to the mobile dev.

    Optimizing(loader)

    • currently the site is heavy, ie the performance is a concern with the heavy animations
    • so we wana give some time to the website to load itself(assets), and displays some nice aniamation for the users.
    • so that they don't ve to wait and look for the loadings,
    • for that we can create a "loader component"

deployment

3d-mobile-website's People

Watchers

Naresh kumar Sekar 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.