Real/virtual cameras

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Real/virtual cameras // Archive: Tech Forum

1  |  

Post by Emmanuel // Apr 13, 2006, 6:36am

Emmanuel
Total Posts: 439
pic
Hello all,



This morning, I took a picture from an airplane, for a housing estate project. I have loaded the architecture 2D plans in tS, and spent all the afternoon at trying to get my virtual camera at the same place and same focal lenght... with no luck.

My camera focal was at 100 mm (=+/-22° view angle ; I think I should set tS camera's Z at +/- 2.050 meters)

But I have also to manage the X, Y, Z locations for the camera, and even the roll ! ...I am pulling my hair out.

Any ideas ?

Post by daybe // Apr 13, 2006, 6:51am

daybe
Total Posts: 562
pic
hmmm, not sure if this will help or not but it looks as though the photo has a bit of a fisheye effect due to curvature of the earth, perhaps this is why you can't match them up. How about taking the photo and try to unwarp it. Just a thought, not sure what else you can do.

Post by frank // Apr 13, 2006, 7:57am

frank
Total Posts: 709
pic
Emmanuel:


It is quite tough to get the virtual camera in tS to match the backplate.


First I would recommend setting up a new window from the camera view. The window size should be the exact size of the background image OR at least proportionate to it.


Use the right mouse button when adjusting scale from the virtual camera's POV and watch it in realtime. Pull in/out until you get the scale about right and then work on the translation and rotation.


Sorry I can't give any more specifics.

Post by Emmanuel // Apr 13, 2006, 8:38am

Emmanuel
Total Posts: 439
pic
Frank, I tried your vd2ts for the first time, with hopes it could help : I made a sequence with 3 shots, loaded it in Voodoo tracker and ran your program. The script editor came with a KeyErrorTSP3 and stoped. I can see in the script that all the cubes were at the same location though. 3 shots must be too short to create a camera...


Finally, here is how I managed :

I draw an X over the picture to mark its center. In tS, I created a sphere at the location of that mark, on the 2D plans. I used the Look At tool to make the camera always looking at this point. Then, I moved the camera, Found the right angle and set the roll/zoom. It is better but not perfect : as Daybe said, there is a fisheye effect. But I don't know how to unwrap the photo accurately.

I think I will render as it, and finish the job using Photoshop's perspective tool...


Thanks for all the comments :)

Post by hultek43 // Apr 13, 2006, 11:09am

hultek43
Total Posts: 234
Post from ~4 years ago. Took a while to find it.;) Hope it helps you. http://forums.caligari.com/discus/messages/1580/9548.html?

Post by Emmanuel // Apr 16, 2006, 9:55am

Emmanuel
Total Posts: 439
pic
I just finished the job. I you want to take a look at it, the full size is here : http://emmanuel.asset.free.fr/pics/rendu_aerien.jpg

Finally, I used a tool called PTLens to make a lens correction from the photo. Once adjusted, the photo and tS scene could match almost perfectly!

Post by xmanflash // Apr 16, 2006, 4:03pm

xmanflash
Total Posts: 335
I just finished the job. I you want to take a look at it, the full size is here : http://emmanuel.asset.free.fr/pics/rendu_aerien.jpg
Finally, I used a tool called PTLens to make a lens correction from the photo. Once adjusted, the photo and tS scene could match almost perfectly!

Hi Emmanuel, Thanks for that - very useful - do you know of a tutorial on how to get a housing plan to sit on the ground like that? - is it an imported eps or a bitmap?

Post by Emmanuel // Apr 16, 2006, 8:57pm

Emmanuel
Total Posts: 439
pic
A tutorial would be very simple :

I just import an EPS file from AutoCAD/ArchiCAD and scale it in tS to match the real scale.

I create a new layer to hold that plan and I lock it. Then, I draw my buildings over it. When the job is ready, I hide the plan layer and render the rest.


BTW, I didn't downloaded the 7.1 update yet. Could someone say if the tS6layers control (show all but one, hide all but one, lock all but one...) are back in tS7.1 ? In tS7.0, the "lock/unlock all" was missing...

Post by Emmanuel // Apr 30, 2006, 10:31pm

Emmanuel
Total Posts: 439
pic
To close that topic, I upload some other pictures of the same scene :

Post by TomG // May 1, 2006, 4:45am

TomG
Total Posts: 3397
NIce work! Thanks for sharing!


Tom
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn