-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panoramic camera support #45
Comments
+5 for fisheye !
…On Mon, 10 Feb 2020 at 14:46, Jakub Vondra ***@***.***> wrote:
Cycles in Blender support other camera models like fisheye, mirroball etc,
it could be useful to have those in Gaffer as well.
[image: Screenshot from 2020-02-10 22-41-26]
<https://user-images.githubusercontent.com/46250374/74197204-42877880-4c5f-11ea-86a2-03d5d9ead67a.jpg>
Not sure where these settings would live though.
cyclesAttributes or cyclesOptions?
Cheers
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#45?email_source=notifications&email_token=ABTWUK5BC2QQZNDPSNASOVLRCHKLDA5CNFSM4KSW6W6KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IMMZCXA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTWUK3IOOFAFRYDBKVPF73RCHKLDANCNFSM4KSW6W6A>
.
|
Sure, sounds good. |
I was just using a CameraTweaks node to specify custom options, this is much like how Arnold is treated right now, so no nice UI really (yet) but it did work from what I see. |
Hey @kubo-von and @sschwungsau This build should have a way to set these via a CameraTweaks node: I was able to do panoramas by adding the string parameter To set other parameters, it'll be doing a for-loop over custom parameters and will try to set the socket connection if the names match eg. "fisheye_fov" with a float value. They can be found here: https://github.com/boberfly/cycles/blob/74f4cbdee302eaacbdacf513bc76d7fe057bf220/src/render/camera.cpp#L59 ( eg. Cheers |
coolio ! thanks ! |
Awesome, thanks @boberfly ! |
Hey @boberfly Cheers |
Hey @kubo-von |
Hey @boberfly But at least for the fisheye_fov parameter I figured it expects radians not degrees like in blender UI Updated scene: Cheers |
Ahh radians alright, yeah I have had to make conversions of that in many places I can do this with those values also. |
Cool! |
Yeah I am thinking it's this. Not sure what to do about it though without modifying Cycles source code eg. flipping some stuff here: |
What about modifying the transform matrix of the camera when it's switched to panoramic before sending it to cycles ? Would that be possible ? I will try to find some matrix multiplication/modification which would fix the camera angle. |
Cycles in Blender support other camera models like fisheye, mirroball etc, it could be useful to have those in Gaffer as well.
Not sure where these settings would live though.
cyclesAttributes or cyclesOptions?
Cheers
The text was updated successfully, but these errors were encountered: