Camera As an Object
-
-
@thomthom said:
This plugin? http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=15491&p=119728
haha, yes, that guy, your other personality, the one who knows how to command vray from Sketchup
now, seriously, Im kinda lost... why you cant deal with the vray camera the same way your other plugin did?
-
That's ok, I talk to myself all the time.
The thing is, if you see how my plugin works, it doesn't actually interact with V-Ray. You have to manually feed info about V-Ray Output aspect ratio into the dialog box, it then returns a value you have to paste back into the Camera's zoom. If I where able to interact with V-Ray's settings it would have just been a button saying 'Sync'.
V-Ray doesn't store it's data in the normal way other plugins do. It stores it as binary data which I have to decode. The problem is, since it's binary, I have to work out what each data chuck are and what it relates to. I sat for hours with a hex editor to decipher the V-Ray light data. But that was just a small data chunk. The main V-Ray settings are much more data and much much harder to work out.
And there's another problem. V-Ray reads the data in the file only when the model is opened. From then on it never reads again, only writes on each save. So even if I did manage to modify some V-Ray settings V-Ray would never take notice and just overwrite it.
The only thing I do have a chance to modify is the lights.
That's why we have to wait for V-Ray for Sketchup 2 and hope that it got proper scripting support.
-
Can't shout loud enough for an update along the lines of the 'Film and stage' plugin.
thomthom - On showing one of my set designs to a very important music director, as i was showing off my set to him in sketchup,
he said 'what does my angle look like if i put my camera here'. I showed him. he then said 'now zoom in. show me what it looks if i zoomed in from there?'. 'Pan left and right' - he lost interest after that as my camera went all looney tunes.
Is sketchup able to do this - zooming in along that positional line panning from that start position? have correct lense showing accurate information (I know that this info, at least is available and has been posted before).or is this what you've just said above?
-
@cmeed said:
Is sketchup able to do this - zooming in along that positional line panning from that start position?
Not quite sure what you mean here.
-
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 )
Advertisement