Camera As an Object
-
by 'zoom in and zoom out like a camera' i mean sketchup zooms in and out by moving the camera towards the target (yes?)- I'd like it to mimic reality so it looks like its zooming in from that position and give accurate info when you pan left and right or move the camera up or down.
Does that help? -
Hm.. Haven't actaully looked intot this yet. But I had a quick look now. And it does appear that the Zoom tool moves the camera instead of actually zooming. However, there is an API to zoom and when I use that method I the camera seems to stay put and the FOV changes.
If you want to poke about with how SU treats the camera, open the Ruby console and type in
Sketchup.send_action 10624
That will give you a window with camera info.If you keep that open while you manipulate the view, Zom/Pan etc you can see some of SU's behaviour.
When you use the Zoom tool the Eye position moves.However, if you type in this command:
Sketchup.active_model.active_view.zoom 2.0
The eye doesn't move.(Note that if you tick "Fov=H" you can set the horizontal FOV as oppose to SU's default vertical.)
-
cool. Ok i'll have a play. I've never looked into the wonders of ruby before apart from asking you for things. Ok then I'll have a look. Unfortunately that will be tonight.
cheers
c -
When I get around to begin on this plugin, do you mind if I query you for input? I'm not really that familiar with the technical way cameras work, so it'd be good if I could get feedback with someone who is familiar with it.
-
please do. i'm all ready to get involved from my point of view although there is another person i think more knowledgeable about cameras on SCF. a thread about workflow and the F&S Plugin he listed camera focal lengths and allsorts of things I think he's in the business 'art director'??. he'll be another cohort of updating the F&SPlugin. c
-
@cmeed said:
please do. i'm all ready to get involved from my point of view although there is another person i think more knowledgeable about cameras on SCF. a thread about workflow and the F&S Plugin he listed camera focal lengths and allsorts of things I think he's in the business 'art director'??. he'll be another cohort of updating the F&SPlugin. c
Yes, I noticed his post. Though, I don't think he's a very active member?
-
worth a shout if it gets technical. but I'm here to give you a hand.
-
I hope this plugin begins soon. Btw, I have a huge scene and I am having the old VERY ANNOYING clipping problem with it... I cant even position the camera properly because when I get close to something it disappears, and the end result is that you are zooming in, the feature disappears and suddenly the mouse pointer is over something far away, and then you cant zoom closer to the object you want, because even a little more zoom results in a fast zoom towards the distant object, not the slow zoom towards the object close to you where the mouse pointer was BEFORE the object disappeared.
the CAMERA OBJECT could solve this problem, since you could position it from the ortographics views.
-
haha, I just came with a solution to the above problem... very idiotic, but it works... I created a bullseye plataform... which is in a group of its own. I move the plataform in ortographic view to where I want to put the camera... then I select the POSITION CAMERA TOOL and position it over the bullseye... then I turn the Bullseye plataform layer off
-
Ok, I hope some of the Plugin Programmers here on the forum see this...
anyway, I had an idea on how to do the plugin, even how to have integrated with the VRAY...
1 - basically, when you activate the plugin, it opens a window with several parameters and it also creates a camera object. The camera object is nothing more than a little camera model, as a LOCKED group. It also creates a new tab which will correspond to the current camera model.
2 - its not that the camera WILL REALLY be a camera. But through the camera model, you will GET the correspondent positioning, angle, etc of the model, which then will be translated to the real camera language of sketchup. You can move/spin/etc yourself the camera, in which case you will see the numbers change in the camera window, or you can change the numbers at the camera window (and see the camera move around). The camera window will have XYZ positioning both in relation to actual camera position as to also the 000 origin.
3 - camera FOV will be seens as a "lines" piramid (no faces, or a semi transparent face)), coming out of the camera lens. Again, it wont REALLY CHANGE things. We must find the correlation between cone angle and Sketchup numbers, so when we change the FOV numbers, the camera viewing cone will change accordingly. I will do some tests next week.
4 - finally, the DOF for VRAY wont really go to VRAY. You have to little red balls coming out of a straight line from the camera. Those represent the near DOF and the far DOF. You can change them along the line. If you press render, nothing will change in VRAY. But the camera window will have NUMBERS CHANGE as you move the sliders along the line. And its up for the USER to input those numbers inside VRAY DOF. The sliders are there for helping you see and plan the VRAY DOF you want.
-
It's like you read my mind. Like a carbon copy.
-
Nice work. Would you be able to get the camera to zoom like a real camera as apposed to the zooming in and out like skp does?
-
I believe so.
-
sweet.
-
guys, I am really interested in this plugin! I may be studying architecture. but nevertheless this would be a great new way to control the camera position in SketchUp (and we haven't even started considering the manifold opportunities for animation plugins to make use of all the camera information). especially the V-Ray bit is interesting for at the moment it is not very intuitive to fill in all the camera info in a window.
simply setting up a camera and instantly seeing the result (like in real life) is such a great thing. makes everything a lot easier.
(and maybe even Google would contribute it's part by introducing a DOF display mode within SketchUp for version 8 ) -
I was thinking it'd be nice to get a DOF calculator implemented into some sort of camera info window.
-
@thomthom said:
It's like you read my mind. Like a carbon copy.
hope you dont want me to pay copyright fees
about the zoom... what zoom REALLY is? Isnt it just FOV?
I dont think this will make sense IN SKETCHUP... but I remember some other 3D programs (cant remember right, I think Rhino3D was one of them) also had the CLIPPING issue Sketchup constantly has.
How did you usually solved the CLIPPING ISSUE? You would CHANGE THE CAMERA SIZE! Yup, the camera was a model that you could change the size. Making it smaller would most times end with the clipping issues.
-
I believe Scott has a plug-in or ruby that will display the camera as an object with the camera field of view shown. I seem to remember seeing it (the graphic representation of a camera) on one of his you-tube videos. Maybe Scott can chime in when he gets a chance.
-
That was probably the old Film and Stage plugin. It created a camera component that you could move and rotate and then click on it and set the view to that camera and it would then chance the view to that camera's view. You could set all the aspect ratios to the camera too. Quite a handy plugin. It had issues with dolly, pan, and zoom amongst other things if I recall that they seem to not want to fix.
Chris
-
Here 2 screen shots from the film and stage plugin (scroll down about 1/2 the page and look for Film and Stage Plugin, and yes it works on SU7, Mac's and on Vista too!).
In this image, the options at bottom "Create Camera", "Look Through Camera", and "Select Camera Type" are all part of the Film and stage Plugin. Notice the default provided camera types provided. The greyed out SketchUp window is because I have the aspect ratio set to "Video HD 16:9" camera.
If you right click on the camera and choose "Edit Camera" you get this box. You can also see the camera component that SketchUp placed in the model. It is moveable and rotateable, and then you can click on "Look Through Camera" to then see the new view. But again, dolly and pan while looking through the camera were intended to work, but never did fully work apparently.
And lastly, Thom brought up an interesting thread here in the forum a few weeks ago that was started by TBD and it shows how to bring up a camera control dialog box in Windows only. It is native to SU, but its not accessible through any menu system. To get it, open the ruby console - Windows>Ruby Console. Then type this in:
Sketchup.send_action 10624
Anyhow, I'm sure none of that is quite exactly useful, which is why there is such a good discussion about creating a new camera tool. But in the meantime, these tips might come in handy for someone,
Chris
Advertisement