|
tS7.6 - Custom Camera Widget
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.
tS7.6 - Custom Camera Widget // The Garage
Post by trueBlue // Aug 25, 2008, 3:26pm
trueBlue
Total Posts: 1761
|
Here is a Custom Camera Widget.
Camera FOV
LMB = View from Camera
Ctrl + MMB = Exit view from Camera
LMB + Drag = Adjust FOV
MMB Wheel = Adjust FOV
RMB = Show Camera's panel in the Stack
14610
Camera Rotate
Ctrl + LMB = Rotate in XYZ
LMB = Tilt Left & Right
MMB = Rotate Left & Right
RMB = Tilt Up & Down
14611
Camera Stand
LMB = Move in X
MMB = Move in Y
RMB = Move in Z
14612
Camera Back
LMB = Move Around
MMB = Move Forward & Backwards
RMB = Move Up & Down
14613
Load the Camera Widget 2 Installer into the Link Editor and select the Install button. To uninstall select the Uninstall button.
Here is a custom Camera created for this camera widget that enables you to scale the camera and widget:
http://forums1.caligari.com/truespace/attachment.php?attachmentid=16654&d=1228581045 |
Post by RichLevy // Aug 25, 2008, 3:44pm
RichLevy
Total Posts: 1140
|
Hey True
Is it possible to get real FOV values out to us in the real world, something that closely resembles real world camera values? I haven't looked at your camera widget yet, but I have looked at the fov values before and they mean nothing to anyone :) You have to do a lot of guessing in order to get a real world FOV value (as in degrees of view). I realize this is different with the types of cameras you use, but anything is better than nothing.
thanks
Rich |
Post by trueBlue // Aug 25, 2008, 4:06pm
trueBlue
Total Posts: 1761
|
Sorry I would not know how to convert that. :o |
Post by RichLevy // Aug 25, 2008, 4:33pm
RichLevy
Total Posts: 1140
|
If I can come up with a formula, would you be able to apply it to your widget or into the LE? I remember coming up with something a while back that was reasonably close for at least one lens :D
It would go a long way for making TS be tricked into doing real camera mapping as opposed to the faking we have to do now.
Rich |
Post by trueBlue // Aug 25, 2008, 4:51pm
trueBlue
Total Posts: 1761
|
Sure..right now FOV is set between 0.150 and 3.000. |
Post by hultek43 // Aug 25, 2008, 10:55pm
hultek43
Total Posts: 234
|
There is a formula here from a while back:jumpy:,and there exists the possibility to create it in TS> http://forums.caligari.com/discus/messages/1580/9548.html? |
Post by trueBlue // Dec 6, 2008, 6:35am
trueBlue
Total Posts: 1761
|
Here is a Camera I created for the Custom Camera Widget. I've added a script that will scale the Camera's widget and shape.
It would be nice to get some feedback on the Custom Camera Widget with regards to it's use. Is there something that you would like to see added or changed? |
Post by parva // Dec 6, 2008, 7:00am
parva
Total Posts: 822
|
offtopic but:
I still don't understand what the value for FOV means?
I know just horizontal, vertical and diagonal FOV. Why no degrees?
I found this FOV calculator (http://www.howardedin.com/articles/fov.html) for cameras but no idea how to use it for truespace, still don't get the measurement tS use.
A camera would need:
- H,V and D FOV as well as the the Focal Length (35mm and so on). |
Post by trueBlue // Dec 6, 2008, 7:41am
trueBlue
Total Posts: 1761
|
Clintonman suggest that tS Camera's FOV is the angle in radians.
http://forums1.caligari.com/truespace/showpost.php?p=87233&postcount=7 |
Post by trueBlue // Dec 6, 2008, 9:10am
trueBlue
Total Posts: 1761
|
So if that is the case then you would want to convert tS Camera's FOV to degrees?
angle in degrees = angle in radians * 180 / Pi
http://www.analyzemath.com/Calculators_2/convert_radians_degrees.html |
Post by parva // Dec 6, 2008, 11:13am
parva
Total Posts: 822
|
cool, thank you trueblue.
Yes the degree would be better imho.
At least it would made it easier to convert into focal length :)
and finally we could create a camera with mm settings for a lense.
Here are the H-FOV settings and the lense in mm:
(user could choose from these presets)
90° - 18mm
84° - 20mm
73,7° - 24mm
65,5° - 28mm
54,4° - 35mm
39,6° - 50mm
23,9° - 85mm
15,2° - 135mm
10,3° - 200mm
would that be possible? :) |
Post by trueBlue // Dec 6, 2008, 11:42am
trueBlue
Total Posts: 1761
|
Honestly I have not a clue what is right and what is wrong here.
I created a jScript Object as follows:
function OnComputeOutputs(params)
{
var FOV = params.ConValue('FOV');
D = FOV * 180/3.14159265
params.ConValue('FOVout') = FOV
params.ConValue('Degrees') = D
}
Then just filter this script between Input and Output for the FOV
and exported the Degrees.
The below camera is the CubicCam created from the other thread.
It has nothing to do with the Custom Camera Widget in this thread. |
Post by RichLevy // Dec 6, 2008, 1:31pm
RichLevy
Total Posts: 1140
|
FOV= 2arctan(d/2f)
FOV= field of view in radians/degrees
d= dimension of the sensor
f=focal length
sensor can be a film camera (think hollywood camera here), dslr 35mm camera, crop body 35mm dslr camera.
a 35mm full frame dslr is
24mm vertical
36mm horizontal
43.3 diagonal
formula is
d/f=FOV in radians
180d/pi*f=FOV in degrees
I think I have that correct... I abbrevated to make the message short :)
Rich |
Post by nigec // Dec 23, 2008, 2:56pm
nigec
Total Posts: 314
|
This was done with trueBlue's cubic widget
Its the 6 images 1024, converted to a cube DSS, and put together as a scene with Awakening.. its also got AVI textures and a 3D animated object.. all in all it isn't impressive to look at, i did the scene to see if the AVI and 3D would look ok, but if you do cubic games AVI and 3D animation is very rare ;)
thanks for taking the time to do the widget :) |
|