Jump to content


Transform SOP node from scene object.


  • Please log in to reply
3 replies to this topic

#1 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 18 May 2011 - 06:27 PM

Hi,

I want to be able to transform a Shape SOP so that it's directly overtop of a scene object.

My thought is to transform the scene object's location into camera space, and then use those coordinates but I can't figure out how to do that.

Does anyone know how to get a Shape SOP to track the movement of a scene object that was rendered?

Thanks,
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#2 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 25 May 2011 - 06:03 PM

Sorry, meant to say COP nodes.

I still can't figure this out. I have to position some sprites over top of some objects in the scene. Can't figure out how to translate a point in the scene into a 2D screen location for compositing?

I did find that you can get the view transformation matrix from a viewport, but not directly from a camera.

Seems strange to me that this isn't easily done in Houdini.
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#3 Jason

Jason

    King Tapir

  • Administrators
  • 3,708 posts
  • Joined: 08-November 00
  • Name:Jason Iversen

Posted 25 May 2011 - 07:38 PM

View Posthopbin9, on 25 May 2011 - 06:03 PM, said:

Sorry, meant to say COP nodes.

I still can't figure this out. I have to position some sprites over top of some objects in the scene. Can't figure out how to translate a point in the scene into a 2D screen location for compositing?

I did find that you can get the view transformation matrix from a viewport, but not directly from a camera.

Seems strange to me that this isn't easily done in Houdini.

Yeah, I do wish they'd add more support for camera matrices.  But could you describe your problem with (edited) images or a hipfile perhaps? I'm having a hard time really understanding what you're after.
jason iversen
++odforce guy, and supervisor @ r+h, jiversen-at-rhythm
odforce g+ page: https://plus.google.com/103473736257525043693

#4 graham

graham

    Houdini Master

  • Moderator
  • 666 posts
  • Joined: 13-September 06
  • Location:Santa Monica, CA
  • Name:Graham Thompson

Posted 25 May 2011 - 08:42 PM

Getting the view transform from a viewport is the same as getting the world transform from your camera object.
I write python and break things.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users