Projecting lat long to ground using UVs

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  05 May 2012
Projecting lat long to ground using UVs

I have a panoramic 360̊x180̊ image in equirectangular (lat long) format mapped to a sphere as my environment. I would like to map this same image to a ground plane so that a camera placed roughly where the pano was taken renders the ground perfectly with no distortions. (ie. no matter if I render with the ground plane visibility on/off the rendered image is exactly the same.)



The trick is that I don't want to use useBackground shader as I want to be able translate the camera slightly in the scene and I also want the geometry to be loadable in any 3D application and "just work". I figure I will need to project the UVs onto the geometry to do this.

My assumption was that I could project UVs spherically with the projection center placed at the nodal point of the camera but this doesn't seem to work.

Does anyone have any ideas of how to manipulate the geometry and/or UVs of a ground plane so that a standard lat long image will map to it without distortion from the camera perspective?
Attached Images
File Type: jpg ground_plane.jpg (54.9 KB, 70 views)
File Type: jpg ground_plane_uv.jpg (57.2 KB, 70 views)
 
  share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 01:53 PM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.