Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Anamorphosis challenge

Still a little green? Ask your beginner's questions here

Anamorphosis challenge

Postby patenteux » Wed Nov 29, 2017 10:15 am

Hi All,

You remember in 2007 when Johnny Chung Lee published his amazing wiimote hack to create a virtual 3D desktop?

Image

I want to build on the concept. I've managed to get it to work, but is kludgy. Is there a better way to apply the anamorphosis warp directly in camera? I've tried deforming the geometry of the scene, or rendering out the scene and projecting the texture onto some new geometry and re-shooting it, but both are sub-optimal.

phpBB [video]


Is there a way to skew a scene directly in-camera?

Thanks all!
patenteux
 
Posts: 12
Joined: Wed Jan 21, 2015 12:49 am

Re: Anamorphosis challenge

Postby ishelanskey » Wed Nov 29, 2017 5:14 pm

I've done a similar project and got very frustrated with the clunkiness of rendering a scene out then applying it to other geometry and re-rendering.

There is no simple way to do this directly in the camera - however I had luck rendering to a cubemap then passing that and head tracking data into a glslTOP using gnomonic projection ( https://en.wikipedia.org/wiki/Gnomonic_projection ) to create the anamorphosis effect.

Here's the results from my project - https://ianshelanskey.com/category/technology/room-space-augmented-reality/

I'll try digging up some of the code for you.
ishelanskey
 
Posts: 30
Joined: Fri Jan 10, 2014 12:29 pm

Re: Anamorphosis challenge

Postby malcolm » Wed Nov 29, 2017 11:18 pm

Not 100% sure if it's still functional in the latest builds, but I did a .tox that did this here:
viewtopic.php?f=22&t=6790
User avatar
malcolm
Staff
 
Posts: 4223
Joined: Tue Nov 13, 2007 1:11 am

Re: Anamorphosis challenge

Postby patenteux » Sun Dec 03, 2017 10:58 am

Wow! Malcolm, that is so very cool! I don't have the Kinect on hand right now, but I tried it with a constant chop for the UV, and it works seamlessly.

The calculatePerspective Execute DAT does exactly what I needed. I couldn't have done this myself.

Thanks a million, you made my day!
LP
patenteux
 
Posts: 12
Joined: Wed Jan 21, 2015 12:49 am

Re: Anamorphosis challenge

Postby patenteux » Sun Dec 03, 2017 11:02 am

Hi Ian,

I didn't know Gnomonic projection was what it was called. I'll have to look into the glslTOP. I'll keep you posted. Now back to work!

Your project looks pretty cool, BTW!

Thanks,
LP
patenteux
 
Posts: 12
Joined: Wed Jan 21, 2015 12:49 am

Re: Anamorphosis challenge

Postby tdProj » Tue Sep 25, 2018 10:30 pm

malcolm wrote:Not 100% sure if it's still functional in the latest builds, but I did a .tox that did this here:
http://derivative.ca/Forum/viewtopic.php?f=22&t=6790

Hey Malcolm,

Your .tox still works for Kinect 2, very cool. Could you describe what DAT Tables "projMat" and "transMat" do, and how their values are determined? It seems to control initial camera position, as well as view size and resolution.

Also as someone relatively new to creative coding and wanting to learn Kinect, I saw elburz suggest starting with Shiffman's Processing & Kinect videos. Would you have anything else to add to that?

Thanks
tdProj
 
Posts: 1
Joined: Thu Jul 05, 2018 11:23 pm


Return to Beginners

Who is online

Users browsing this forum: Google [Bot] and 15 guests