Jump to content


Photo

How To Work With Cinema 4ds Position Pass In Fusion


  • Please log in to reply
19 replies to this topic

#1 holgerneuhaeuser

holgerneuhaeuser

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 101 posts

Posted 07 February 2014 - 06:22 PM

Hi there,

has anybody here succeeded in getting the position pass that c4d exports to work?

I try to connect the position pass with the camera export via the ztoworld tool. But the tool somehow doesn´t accept the position pass image.

Another thing that I got aware of is: the colors of the pass look different to the position pass images in the eyeon videos.

Much more green and cyan.

See attachment

Has anybody an idea how to convert the image into the right format?

Thanks
Holger

P.S.: somehow uploading of the image doesn´t work

#2 Dunn

Dunn

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 303 posts

Posted 07 February 2014 - 07:49 PM

Hey Holger.
You can try this plugin for C4d : http://aescripts.com...ntposition-c4d/
Its a Name your price plugin ( 0 -to -whatever but you have to register )
maybe it works out for you.

°Dunn

#3 holgerneuhaeuser

holgerneuhaeuser

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 101 posts

Posted 07 February 2014 - 08:32 PM

Thanks Dunn

but since c4d Version 13, there is a position pass exporter natively in cinema4d.

The problem is, that I simply don´t get it to work in ZtoWorld.

I tried to generate a z-buffer out of a position pass and a camera (both exported from c4d) using the worldtoZ button.

Problem is, that the tool turns redlighted at the moment i connect the loader with the position pass to it.

The position pass is 32 bit tif format.

I am simply stuck at this point.

Holger

#4 Dunn

Dunn

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 303 posts

Posted 07 February 2014 - 08:57 PM

Maybe export your file as Openexr 32bit and in the loaders Channel list change
X Position to R, Y Position to G, Z Position to B

#5 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 08 February 2014 - 04:47 AM

You need to use a ChannelBoolean to put the position pass RGB channels to the proper Position XYZ channels.
It would certainly help to have a screenshot of the pass, maybe you can upload one to postimage.org or some other hosting site. The values need to be positive and negative float.

And then: what do you need the ztoworld tool for? It creates a position pass from a depth channel.

#6 holgerneuhaeuser

holgerneuhaeuser

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 101 posts

Posted 08 February 2014 - 06:59 AM

Hi Tiilt, thanks the booleans tool Info took me half way to success.

Now the only question is which color channel belongs to which direction.

I´ve put the position pass image on my hidrive account, here´s the link

https://www.hidrive....om/lnk/yDYTZAzX

Isn´t there a standard which color should be linked to which axis?

(Answering your question why I use the ZtoWorld tool at all: I just forgot to render out a z buffer, so I try to get a z channel by converting the position pass and the camera to one, using the ZtoWorld tool. The animation is very long so I try to avoid rerendering. Simply no free rendermachine at the moment)

Thanks for your help
Holger

#7 holgerneuhaeuser

holgerneuhaeuser

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 101 posts

Posted 08 February 2014 - 07:22 AM

Here´s another image from the sequence which could be better to judge which color is which coordinate

https://www.hidrive....om/lnk/v54TZ5P7

Thanks
Holger

#8 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 08 February 2014 - 09:29 AM

The links don't work for me :-(

The standard is R = X, G = Y, B = Z. But one source of problems is the fact that 3D apps are using different coordinate systems. Fusion is Y up, Maya as well, but 3D Studio Max is Z up. I don't know what Cinema is using. There's a converter macro on vfxpedia for Z-Up to Y-Up if you need it.

#9 holgerneuhaeuser

holgerneuhaeuser

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 101 posts

Posted 08 February 2014 - 09:39 AM

Thanks, Tilt
here´s another link that may work better
http://s26.postimg.o...sitionpass2.jpg

Cinema4ds coordinate system is also Y up.

Thanks
Holger

#10 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 08 February 2014 - 10:31 AM

looks correct. green seems to go up (Y). but the values on that pass must be in the 100s or 1000s because it clips pretty much immediately around the origin. That's also no problem. Are there finer gradients when you press the viewer's normalize button?

#11 holgerneuhaeuser

holgerneuhaeuser

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 101 posts

Posted 08 February 2014 - 11:43 AM

No... no finer gradients when using normalize

#12 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 08 February 2014 - 11:48 AM

the RGB values in your position pass are clipped at 1.0 then? Can you confirm that with the color inspector?

Can you render EXRs and see if that problem persists?

#13 holgerneuhaeuser

holgerneuhaeuser

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 101 posts

Posted 08 February 2014 - 11:56 AM

Yes, that a trace I´m checking at the moment, I think exporting the file as a 32 bit tiff doesnt work. Will try exr

Thanks

#14 holgerneuhaeuser

holgerneuhaeuser

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 101 posts

Posted 09 February 2014 - 04:20 AM

Thanks for the help, I finally got it to work:

Position pass settings in C4d were on the wrong scaling (had to be 0.01 instead of default 1, which I don´t really understand, cause the scene had real life measures)

Z direction had to be set to inverted

#15 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 09 February 2014 - 05:06 AM

You're welcome. Does that mean that tiffs worked after all? Or did you have to render EXRs? Because even if the scaling is correct now, the clipping might still be there.

Inverted Z... seems like indeed Cinema4D's coordinate system is a left-handed one. Man, there are as many coordinate systems out there as there are 3D applications. Why is that?! :mf_prop:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users