Camera projection problem

Forums: Camera projection problem
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Camera projection problem

Postby imago10 » Wed Oct 17, 2018 2:22 pm

imago10 Wed Oct 17, 2018 2:22 pm
Hello!

I have simple geometry with Camera Projection on it. And in C4D everything looks fine but in Octane Live Viewer/Picture viewer it looks very distorted. I try to subdivide geometry - this helps a little. But it's possible to have Camera Projection texture like in C4D on small subdiv geometry? Generating UVW doesn't help. Any tips?

Thanks,
Lukas
Attachments
cameraproblem.PNG
imago10
Licensed Customer
Licensed Customer
 
Posts: 30
Joined: Tue Mar 17, 2015 2:09 pm

Re: Camera projection problem

Postby imago10 » Fri Oct 19, 2018 10:08 am

imago10 Fri Oct 19, 2018 10:08 am
Ok I can't find solution. I think it's Cinema - Octane. Bug.
imago10
Licensed Customer
Licensed Customer
 
Posts: 30
Joined: Tue Mar 17, 2015 2:09 pm

Re: Camera projection problem

Postby niestudio » Fri Oct 19, 2018 2:59 pm

niestudio Fri Oct 19, 2018 2:59 pm
can you post your scene?
OSX 10.12.4 | Intel 12 core @ 3.33 ghz | 128 gb ram | NVIDIA GeForce GTX 1080TI | Ubuntu Linux slave with 3x 1080ti
niestudio
Licensed Customer
Licensed Customer
 
Posts: 265
Joined: Fri Aug 21, 2015 10:03 pm

Re: Camera projection problem

Postby aoktar » Fri Oct 19, 2018 5:43 pm

aoktar Fri Oct 19, 2018 5:43 pm
imago10 wrote:Ok I can't find solution. I think it's Cinema - Octane. Bug.

Bug hmm. Not..! It's doing a cameramapping to uv conversion to simulate that. You need a better subdivision.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15968
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: Camera projection problem

Postby imago10 » Sat Oct 20, 2018 9:31 am

imago10 Sat Oct 20, 2018 9:31 am
OK but in Cinema 4D everything looks fine. So Octane need high dense mesh for camera projection?
imago10
Licensed Customer
Licensed Customer
 
Posts: 30
Joined: Tue Mar 17, 2015 2:09 pm

Re: Camera projection problem

Postby aoktar » Sat Oct 20, 2018 10:12 am

aoktar Sat Oct 20, 2018 10:12 am
imago10 wrote:OK but in Cinema 4D everything looks fine. So Octane need high dense mesh for camera projection?

I believe that I tried to describe technical background. You need a better subdivided surface due the approach. Try with a pure plane with more division.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15968
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: Camera projection problem

Postby noisyboyuk » Sat Oct 20, 2018 9:01 pm

noisyboyuk Sat Oct 20, 2018 9:01 pm
I've just come here for the same reason. My image is zig-zagging when re-projected using "Camera Mapping" as the camera projection (and linking the camera which I wish to project from).

Out of curiosity, why would you need to have more subdivisions just to project a texture onto a plane? Is there a way to do it so you don't have to use a more dense mesh?

I recall using Perspective in the Octane project node about a year ago for a big VFX job and that worked out pretty well but now I'm trying to replicate the technique I am struggling. For some reason the image comes out scaled up pretty large and flipped over. It would be good if there were a preset in the projection node which sets it up for camera projection without having to dial in scaling values etc.

Thanks :)
noisyboyuk
Licensed Customer
Licensed Customer
 
Posts: 103
Joined: Thu Apr 21, 2016 5:28 am

Re: Camera projection problem

Postby noisyboyuk » Sat Oct 20, 2018 9:22 pm

noisyboyuk Sat Oct 20, 2018 9:22 pm
Just a follow up.

I managed to use the Perspective mode in Octane's projection node using my camera to project from which then let me use whatever subdivision level I wanted.

To do this I set it to Perspective, then the Position setting to World Space. Then I set the scale values to:

X = 1
Y = 0.56
Z = -4

CINEMA 4D_2018-10-20_22-30-24.png


CINEMA 4D_2018-10-20_22-21-22.png
CINEMA 4D_2018-10-20_22-21-22.png (6.23 KiB) Viewed 4321 times



I managed to find an old project I did where I had set up exactly this same set up but the issue which gets me close enough but I'm never going to remember those exact settings whenever I need to do a camera projection and it's a but inaccurate.

After reading the manual I saw that it takes the world space coordinates and divides the X and Y coordinates by the Z coordinate which I'll be honest I don't fully understand the reason for this. I'd love to hear why this particular setup is useful and why the x and y coordinates should be divided by z for projection.

Like I say, it would be enormously helpful to others I think if there was a different setting which is more similar to C4D's own Camera Mapping setting (which is useful as it has film back settings and pixel aspect ratio settings etc).

Thanks :)
noisyboyuk
Licensed Customer
Licensed Customer
 
Posts: 103
Joined: Thu Apr 21, 2016 5:28 am

Re: Camera projection problem

Postby noisyboyuk » Sat Oct 20, 2018 10:36 pm

noisyboyuk Sat Oct 20, 2018 10:36 pm
Well I'm even more confused now after looking at the Camera Projection example scene. In the values are totally different. I can't seem to work out the precise formula to get the projection to work accurately every time without having to manually dial in scale values and eyeball it.

Any advice would be amazing :)
noisyboyuk
Licensed Customer
Licensed Customer
 
Posts: 103
Joined: Thu Apr 21, 2016 5:28 am

Re: Camera projection problem

Postby aoktar » Sun Oct 21, 2018 8:00 pm

aoktar Sun Oct 21, 2018 8:00 pm
noisyboyuk wrote:Well I'm even more confused now after looking at the Camera Projection example scene. In the values are totally different. I can't seem to work out the precise formula to get the projection to work accurately every time without having to manually dial in scale values and eyeball it.

Any advice would be amazing :)

Test and compared the both of C4D's camera mapping and Octane's perspective projection methods. These values are giving exactly same outputs.
Attachments
a1.jpg
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15968
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Next

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 30 guests

Wed Apr 24, 2024 11:59 pm [ UTC ]