Camera Projection - Image Upside Down

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

Moderators: ChrisHekman, aoktar

Post Reply
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

Hello,
I am trying to get Camera Projection working in Octane. I have created a Cube and a camera for projection. I painted over the rendered image from the camera projection:
Paintover
Paintover
I've been following this tutorial.

To get the texture projecting properly in the tutorial, the steps are:
  1. Create an Image Texture Node
  2. Create a UV Transform Node
  3. Create a Texture Projection Node
  4. In the UV Transform Node, change the Scale X to 0.5 and then calculate Y with this formula: (0.5 * width) / height
  5. In the Texture Projection Node, change Texture Projection to 'Perspective'
  6. In the Texture Projection Node's Position, change to World Space
  7. In the Texture Projection Node's Perspective object link, add projection camera
I have followed these steps as can be seen in this screenshot:
Material
Material
For some reason, however, my textures are coming out misplaced and upside-down:
Render
Render
Here is my scene file.

I've been able to correct this particular example file by rotating the UVs in Z by 180 degrees, but that doesn't always work on my other files with the same setup.

Can anyone please tell me what is going wrong? Thank you!
User avatar
bepeg4d
Octane Guru
Posts: 10323
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi,
please try these steps:

- set the UV Transform X scale to -1, and the y scale to -1*weight/height
- use the Projection Z scale to zoom in and zoom out
9538D490-516D-4F54-94EA-9457C5F21F97.jpeg
The Camera Projection position should be orthogonal to the cube, now it is not.

ciao Beppe
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

bepeg4d wrote:Hi,
please try these steps:

- set the UV Transform X scale to -1, and the y scale to -1*weight/height
- use the Projection Z scale to zoom in and zoom out
9538D490-516D-4F54-94EA-9457C5F21F97.jpeg
The Camera Projection position should be orthogonal to the cube, now it is not.

ciao Beppe
Hi Beppe,
Thank you for the reply. I'm sorry, but this isn't what I was hoping for:
  • This method seems really inaccurate. How can I get the right values every time? I don't want to be guessing with a scale factor that goes to the millionth's place decimal.
  • As with Cinema 4D's camera mapping, I should be able to project an image that isn't orthogonal to to the cube.
Post Reply

Return to “Maxon Cinema 4D”