Giter Site home page Giter Site logo

samueldsr99 / pictures-showcase Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 12.86 MB

Showcase of pictures using Threejs + gsap with postprocessing effects and custom shaders for GPU optimization.

Home Page: https://pictures-showcase.vercel.app

HTML 1.86% JavaScript 65.38% GLSL 31.88% CSS 0.89%
threejs chromatic-aberration shaders postprocessing glsl

pictures-showcase's Introduction

Pictures showcase

Final project for the module Webgl in Practice at Harbour.Space.

Showcase of pictures using Threejs + gsap with postprocessing effects and custom shaders for GPU optimization.

Static Chromatic aberration Picture details

Description

Whenever a user moves the mouse far from the center of the screen (biased by a circular area), the camera starts to move in the direction of the mouse, causing a bend of the images in the same direction and a chromatic aberration effect. Once the user clicks on an image, the camera moves to the image position and it starts to zoom in. While in this state, users are not able to move the camera.

Features

  • Postprocessing (Chromatic aberration).
  • Interactivity through mouse movement and collision detection (Raycaster).
  • Custom shader materials (Image bending).
  • Soft transitions (gsap).
  • Proper images tone mapping (RGB) and treatment for keeping the original aspect ratio.
  • Proper DPR management for high-resolution displays.
  • Directional light (just for reflecting light on the material of the icosahedron).

Implementation details

  • Images are always rendered in random positions but keeping a grid-like structure (grid positions -+ noise).
  • Bending effect is applied on the borders of the images that are close to the mouse direction (rather than from the UV center as seen in class).
  • Icosahedron follows the camera position after some delay.

pictures-showcase's People

Contributors

samueldsr99 avatar

Stargazers

Enmanuel Verdesia Suárez avatar Carlos Yoan Mollinea Perez 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.