[Sidefx-houdini-list] ndc to world matrix

katrin schmid Katisss at gmx.de
Thu Jul 29 11:42:33 EDT 2010


hi,
thanks for that, its surprisingly
hard to find. I was wondering if there a way of querying
worldTransform() in time for an animated camera?
Regards,
katrin

-------- Original-Nachricht --------
> Datum: Thu, 29 Jul 2010 08:06:59 -0700
> Von: Graham Thompson <captainhammy at gmail.com>
> An: sidefx-houdini-list at sidefx.com
> Betreff: Re: [Sidefx-houdini-list] ndc to world matrix

> The functions dealing with view transforms were added for Houdini 11
> so they aren't available in previous versions.
> 
> You can kind of hack it by creating a dummy camera node, calling
> hou.GeometryViewport.saveViewToCamera on that camera, extract the
> transform from the camera then delete it.
> 
> viewer = toolutils.sceneViewer()
> viewport = viewer.curViewport()
> cam = hou.node("/obj").createNode("camera")
> viewport.saveViewToCamera(cam)
> xform = cam.worldTransform()
> cam.destroy()
> 
> On Thu, Jul 29, 2010 at 7:40 AM, katrin schmid <Katisss at gmx.de> wrote:
> > hi,
> > so i found this here:
> >>>>>>>>>
> > Get the viewport's settings object
> > settings = viewport.settings()
> >
> > Among the most useful methods on the settings object are viewTransform()
> and setViewTransform(), which get and set the viewport’s transformation
> matrix respectively.
> > http://www.sidefx.com/docs/houdini9.5/ref/windows/edittool
> >>>>>>>>>
> >
> > Unfortunately i cant find viewTransform() in houdini 10 python
> > or figure out how to get it. Anybody knows?
> > Thank you,
> > karin
> >
> >
> > -------- Original-Nachricht --------
> >> Datum: Wed, 28 Jul 2010 10:00:12 +0200
> >> Von: "katrin schmid" <Katisss at gmx.de>
> >> An: sidefx-houdini-list at sidefx.com
> >> Betreff: Re: [Sidefx-houdini-list] ndc to world matrix
> >
> >> hi,
> >> a python module inside a render node,
> >> i will use whatever works :)
> >> Regards,
> >> katrin
> >>
> >> -------- Original-Nachricht --------
> >> > Datum: Wed, 28 Jul 2010 00:57:09 -0700
> >> > Von: Alex Lim <list at poh-yee.com>
> >> > An: sidefx-houdini-list at sidefx.com
> >> > Betreff: Re: [Sidefx-houdini-list] ndc to world matrix
> >>
> >> > Hi Katrin, is this in VOP net or VEX code? There is a Transform VOP
> that
> >> > should let you convert from world to NDC. Will this work for you?
> >> >
> >> >
> >> > Cheers,
> >> > Alex
> >> >
> >> >
> >> >
> >> > On 7/28/2010 12:37 AM, katrin schmid wrote:
> >> > > hi,
> >> > > i am trying to write information into an exr's metadata
> >> > > and be interested in the worldToNDC matrix.
> >> > > Do i need to calculate it all myself?
> >> > > Best Regards,
> >> > > katrin
> >> >
> >> > _______________________________________________
> >> > Sidefx-houdini-list mailing list
> >> > Sidefx-houdini-list at sidefx.com
> >> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >>
> >> --
> >> GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
> >> Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
> >> _______________________________________________
> >> Sidefx-houdini-list mailing list
> >> Sidefx-houdini-list at sidefx.com
> >> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >
> > --
> > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

-- 
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl



More information about the Sidefx-houdini-list mailing list