OSL Til Shift Lense

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

baltort
Licensed Customer
Posts: 72
Joined: Mon Jul 07, 2014 4:00 pm

Thanks Milan,

If you believe this one works, then it must be good! :P

I think we have caught the z-flip (lightwave does the same). The factor of 100: is that Octane working in metres and C4D working in centimetres? I'll add a scale factor onto the C4D version if so.

Different aperture values for X and Y? Sounds exciting. Do you mean ramping the aperture size over the UV of the image frame, or just using an elliptical aperture? Both are doable. Both are weird. Bring it on!

J.
User avatar
bepeg4d
Octane Guru
Posts: 10321
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Thanks to Milan, that has corrected again the xpresso, here is a working version of the Tilt OSL Camera for c4doctane:
tiltcameraoslc4d.zip
(87.22 KiB) Downloaded 300 times
Thanks again to James and Milan for sharing this amzing camera... enjoy it!
ciao Beppe
User avatar
KeeWe
Licensed Customer
Posts: 295
Joined: Wed Nov 27, 2013 11:32 am

Wow, thanks a lot. Gonna try it out as soon as I have some spare time. Great community work, even platform independent. :)

Edit: just had a quick look at it, what I discovered:

How come the FOV in the Live Viewer doesn't match with the Viewport? See the attached Screenshots:
OSL Cam_01.JPG
No_OSL Cam_01.JPG
6850k // 32 GB // 1080, 1080 Ti, 2080 Ti // Win 10 // C4D 19.068
Nando_The_Fly_Design
Licensed Customer
Posts: 20
Joined: Mon Jun 20, 2016 4:39 pm

Excuse my ignorance @bepeg4d, what is the difference between this OSL camera example and using the C4d tilt camera?

I did the test with the C4D camera and the result is almost identical.

Greetings.

Attached is an example "Octane Camera (FM)":
Attachments
TiltCameraOSL (without expresso FM).rar
(97.32 KiB) Downloaded 226 times
User avatar
bepeg4d
Octane Guru
Posts: 10321
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

@KeeWe: yes correct, but I don’t know why, sorry.

@ Nando_The_Fly_Design: have you tried to rotate the focal point in the xpresso rig?
771C007E-BA48-4817-8E97-009CD7407B98.jpeg
ciao Beppe
baltort
Licensed Customer
Posts: 72
Joined: Mon Jul 07, 2014 4:00 pm

KeeWe wrote:Wow, thanks a lot. Gonna try it out as soon as I have some spare time. Great community work, even platform independent. :)

Edit: just had a quick look at it, what I discovered:

How come the FOV in the Live Viewer doesn't match with the Viewport? See the attached Screenshots:
Hi KeeWe,

There is a process by which an OSL camera can 'read' the FOV settings of your host camera, but it appears to be broken in Lightwave (not sure about other hosts). To get around this problem, I added a FOV input into the OSL camera. You have to control this directly rather than relying on the host camera providing that info. Have you tried adjusting the OSL FOV to match your C4D camera's FOV?

Cheers,

James.
Nando_The_Fly_Design
Licensed Customer
Posts: 20
Joined: Mon Jun 20, 2016 4:39 pm

OOOK Understood, @bepeg4d thanks for the patience and for sharing.

Greetings!
sbstnc
Licensed Customer
Posts: 120
Joined: Mon Jul 25, 2016 1:21 am

Does rendering with the OSL lens use more memory in any way?

I can render a high res image with the regular camera - only 4706x6656, which is odd because I thought Octane could render 8kx8k.
But if I try the same resolution with the OSL tiltshift camera (same settings, position, tag settings only difference is slightly rotated plane of focus) C4D hangs and dies.

Mac, 4.04R2, C4DR20.059, recommended Nvidia/CUDA drivers, 2x1080TI and also networked

Scene VRAM is only 3.5gb at that res according to the regular camera render, I can't see what VRAM use is on OSL at that res.
sbstnc
Licensed Customer
Posts: 120
Joined: Mon Jul 25, 2016 1:21 am

Narrowed down the problem - I can render a 6k image on one single machine using the OSL tilt shift lens.

If I try to use netrender, the image starts to render, then chunks of it go black and glitched, then the whole image goes black and glitched - at ANY resolution.
So netrender seems to not like the OSL lens. Why would this be?
Netrender is fine on exactly the same shot at any res up to 6k using a regular camera (thin lens). Just not the OSL camera.

Right now I am doing some print stills but this means if I want to use the tilt shift for animation (phase 2 of this project) then I can't make use of render nodes?

Any tips here as to why OSL lens and net render won't play nice would be greatly appreciated.
Post Reply

Return to “Maxon Cinema 4D”