Jump to content


Photo

3d Cam Data To 2d Space


  • Please log in to reply
12 replies to this topic

#1 dts74

dts74

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 158 posts

Posted 23 June 2006 - 02:43 AM

Hi is there any way of getting the 3d cordinates from an imported cam from 3d app to "convert" to a 2d tracker or transform node, becouse I find the in and outs of the 3d space to be a bit slow. And not allways need it, but will need the position of things from cam to point cloud.

/

#2 misha

misha

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 69 posts

Posted 24 June 2006 - 02:57 AM

Well, you could track a pattern placed on a object in 3d but...... We definitely need a convert 3dto2d motion script

#3 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 24 June 2006 - 04:48 AM

Well, you could track a pattern placed on a object in 3d but...... We definitely need a convert 3dto2d motion script

I made an example of expression to convert the coordinates.

You can improve it by adding the camera rotation support.

Attached Files



#4 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 24 June 2006 - 09:33 AM

Here is a macros containing the expressions.
Now it supports camera rotation.

Just connect your camera animation to corresponding parameters of the macros.

Attached Files



#5 shaily

shaily

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 380 posts

Posted 24 June 2006 - 10:00 AM

Hi is there any way of getting the 3d cordinates from an imported cam from 3d app to "convert" to a 2d tracker or transform node, becouse I find the in and outs of the 3d space to be a bit slow. And not allways need it, but will need the position of things from cam to point cloud.

/


there is more than just getting the xy coordinates when you talk about camera. its not just another object in the scene. A camera sees in perspective, there's a relative motion in objects, besides the lens too makes a huge difference

u can extract the 'rate of motion' from the camera though.
like misha said, place a pattern in 3d and track it, simplest of all.
besides u can export 2d tracks and import in fusion

if ur idea is just to get the 3d coordinates of your camera and use it for some reason i dont understand,try inversing the expression i did for path to offsets.

shaily.

#6 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 24 June 2006 - 10:11 AM

there is more than just getting the xy coordinates when you talk about camera. its not just another object in the scene. A camera sees in perspective, there's a relative motion in objects, besides the lens too makes a huge difference

Yes, I just reproduced relations between camera parameters and object position as they are in Fusion.
No perspective distortions.
If lens distortion needed, it can be done with other tools.

ike misha said, place a pattern in 3d and track it, simplest of all.

What if the object often leaves the frame?
You should solve it by increasing angle of view and resolution in 3D.
Besides, the track pattern should have sufficient resolution and quality.

#7 dts74

dts74

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 158 posts

Posted 25 June 2006 - 04:51 AM

Thank you all so much!
Misha...The track a pattern option is not an option at the moment since the object do leave the frame quite a bit and sometimes there are massive motionblur so there are no way to get a good track.
And Rerendering in higher rez..etc etc no option.

I will try the Mr Gringos script out, thanks man!
Shaily...what script are you talking about that one should try to invert?
I'm not to savvy with the expressions in fusion (or any software) since
I'm quite new to fusion coming from shake. And ..well math is not my main strength :blink:

In my very short research on this I found this:
http://www.shade.ca/...rticle.asp?i=11



Thanks to all

#8 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 25 June 2006 - 05:14 AM

I will try the Mr Gringos script out, thanks man!

I hope, it will help :)

In my very short research on this I found this:
http://www.shade.ca/...rticle.asp?i=11

Good topic.
If I found it yesterday, I wouldn't draw all these schemes by myself :)

#9 dts74

dts74

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 158 posts

Posted 25 June 2006 - 01:42 PM


I will try the Mr Gringos script out, thanks man!

I hope, it will help :)

In my very short research on this I found this:
http://www.shade.ca/...rticle.asp?i=11

Good topic.
If I found it yesterday, I wouldn't draw all these schemes by myself :)


Have not had the time to try it out yet, but could you be so kind to
more in detail explain how it's supposed to get connected?

And would it be possible to use this on an animated locator from a 3d software as well?
Sometimes some of the scene set up guys will parent/constrain locators to animated stuff they think
we will need in compositing, to save us time. ie a helicopter or missile.

#10 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 25 June 2006 - 07:31 PM

This macros just allows to replace Camera 3D, Merge 3D, Render 3D and Plane 3D with a Transform in some cases.
Displayed parameters allow to manipulate the camera and the object.
To import data from Maya you can connect the locator's transformations to color of some static objects there, render these objects and then use this pass in Fusion with Probe modifier.
Probe can be connected to the macros' parameters.

#11 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 30 March 2009 - 11:11 AM

Another example for the same subject
Attached File  3D_Data_to_Mask.comp   15.97KB   85 downloads

To import data from Maya you can connect the locator's transformations to color of some static objects there, render these objects and then use this pass in Fusion with Probe modifier.
Probe can be connected to the macros' parameters.

Of course, you can also import animation data from 3D by means of Locator3D

#12 SirEdric

SirEdric

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 835 posts

Posted 06 April 2009 - 01:26 AM

Hey there.

Maybe I got the question wrong,
but what about placing some 3DLocators in the scene where you need "tracking points"?

The 3dL will convert the 3D-Coordinates based on the imported camera
(including FOV and final render resolution) and you can connect any 2D-tool
(like XF centers, mask points or the corners of a corner positioner etc.)
directly to those values downstream of your 3DRender.

Have Phun.

Eric.

#13 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 06 April 2009 - 02:11 AM

Hi Eric!
Yes, in the latest example I used a L3d to get the position.
Rotation and scale are calculated in expressions. I think it's better than using a Tracker node for positions to angle-scale conversion.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users