Code Monkey home page Code Monkey logo

fake3d's Introduction

Fake 3D Image Effect with WebGL

An interactive "fake" 3D effect for images with plain WebGL.

Fake 3D Image Effect

Article on Codrops

Demo

Credits

License

This resource can be used freely if integrated or build upon in personal or commercial projects such as websites, web apps and web templates intended for sale. It is not allowed to take the resource "as-is" and sell it, redistribute, re-publish it, or sell "pluginized" versions of it. Free plugins built using this resource should have a visible mention and link to the original work. Always consider the licenses of all included libraries, scripts and images used.

Misc

Follow akella: Twitter, Instagram, Facebook, GitHub

Follow Codrops: Twitter, Facebook, Google+, GitHub, Pinterest, Instagram

© Codrops 2018

fake3d's People

Contributors

akella avatar crnacura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fake3d's Issues

Multiple images without page reload

I'd like to implement this functionality (i.e. 3d effect) across several images on the same page without having to do a reload. After digging around in the code it seems possible - just requires a few changes to clean up on each go-round.

Vue/React analogue?

I have page that used this lib that I transform to Vue component.
Which vue-lib could be use used instead of this?
Or may be there possible to use this lib directly in vue-component?

With full build chain.

I really hope that these amazing project has full built chain.(like npm and webpack).

Video support

Hey there,

Thanks for the library, it's great!

Do you think that can work with a video too?
I would like to try but you think that it will be possible?

Best

Vertical tilt not workings in Mobile

Hi sir, horizontal movement working on device but vertical tilt effect not working. I also try with increasing tilt effect value but that also not work. I also open and check your demo link but that's also not working.

Can't load image...

Hello.
I read your article and I was really impressed with your work.
So I downloaded your Demo code for studying and opened it. but I can't load the image.
I got an error from the console.

Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The image element contains cross-origin data, and may not be loaded.

How can I fix this problem and see properly it on my local status?

by the way, Sorry to my poor English. I hope you to understand my situation and reply it
Thanks.

Blur areas with missing data?

This library is awesome. Some images are not very suitable to use for Fake3d though, and you get a double image effect in areas with missing data. Right now I put a limit on the vertical and horizontal thresholds but I have noticed that Facebook blurs these parts rather than showing the same data twice, which works rather well to a certain extent. Is it possible to do something similar with this code?

Question

Sorry for opening an issue while I just have a question.

First of all what you've done is great!

My question is - what are verticalThreshold and horizontalThreshold used for? What is their significance? I see that you use different numbers per different demo page.

Thanks!

Mime-type for GLSL shaders?

Hi!

In src.js there are lines like this:

import fragment from './shaders/fragment.glsl';
import vertex from './shaders/vertex.glsl';

Please tell me which mime-type to pass to use GLSL as ES6 imports?

Дякую!

Offset image to focus one area

hello and thanks for the great library! i have added a scroll event for my project and it works great. i was wondering, do you have a quick trick for offsetting the image so when cropped the canvas focuses a specific area? either in percent like 75% 100% or just "center right" or something like that.

any help is appreciated!

Function to reinit the 3d effect

Hello,

I'm trying to implement this effect on a barba.js website.

For those that don't know what is barba.js, it allow to navigate throught page without any reload, like a SPA.

As there is no page reload, the effect don't initialize properly. Barba.js give some events when the loading is finished to init all scripts, but it seems that this demo don't have any function that would allow to reinit the 3D effect when you want with a simple call.

Thank you

Alex

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.