Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real-time image deformation #284

Open
DJTen opened this issue Nov 18, 2014 · 1 comment
Open

Real-time image deformation #284

DJTen opened this issue Nov 18, 2014 · 1 comment

Comments

@DJTen
Copy link

DJTen commented Nov 18, 2014

I am making a web site for a person who takes photographs of houses that are for sale. Sometimes his customers want a 360 degree panorama of a particular room. I decided to use Reel to handle displaying the panorama images. This guy uses a wide angle lens to capture a lot of the room, then he has some software that will stitch the images into one wide panorama image. It works well, but the lines of the room (edges of walls, ceilings, etc.) end up looking curved. I am wondering if it would be possible to add some image deformation into Reel, so that I could, in real time, straighten out the curved wide-angle images while displaying the panorama. I also think it would look more like you are actually there in the room, rather than just watching some image slide by in front of you.

@niravraval
Copy link

I tried to added images run time in data-images... I am using base64 images as an image source, but its not worked well. but if you have an image as a data source directly you can definitely add run-time if that is what you needed. you need to just reassign the .reel() to the image.

var aImage[] = new array(),
img = document.getElementById('imgFront'),
imgIndex = 0;

for (var i = startIndex; i <= endIndex; i++) {
aImage[imgIndex] = new Image();
aImage[imgIndex].src = loadImage(i);
img.images.push(aImage[imgIndex]);
imgIndex += 1;
}
$("#imgFront").reel();

this is how I am adding image when user click on any product. So, I think you can achieve what you required, let me know if it helps or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants