[Sidefx-houdini-list] About custom geometry render node

Guillaume Laforge guillaume.laforge.3d at gmail.com
Mon Sep 29 22:17:23 EDT 2014


For the record.

To do some stuff based on the primitive type (from the GU_Detail):

const GU_Detail &gdp,const GA_Range &range,
GT_PrimitiveHandle	prim = GT_GEODetail::makeDetail(&gdp,
&range);switch (prim->getPrimitiveType()){
    case GT_PRIM_POLYGON_MESH:
    case GT_PRIM_CURVE_MESH:
    ...
    ...}



Thanks guys!



On Mon, Sep 29, 2014 at 6:09 PM, Andrew Lyons <tstexture at gmail.com> wrote:

> I dont need help forgetting. Sounds like you are good.
>
> On 29 September 2014 15:01, Guillaume Laforge <
> guillaume.laforge.3d at gmail.com> wrote:
>
> > Oh, and just forget,
> >
> > Thanks for the advice Andrew !
> >
> > Cheers
> >
> > On Mon, Sep 29, 2014 at 6:01 PM, Guillaume Laforge <
> > guillaume.laforge.3d at gmail.com> wrote:
> >
> > > I don't want to do that :).
> > >
> > > Waiting for other solutions :P
> > >
> > > On Mon, Sep 29, 2014 at 5:58 PM, Andrew Lyons <tstexture at gmail.com>
> > wrote:
> > >
> > >> Ouch. You may be able to pre-process a scene before export in two
> > passes:
> > >>
> > >> 1./ Use python to query topology. Group types according to needed
> > >> conversion SOPs.
> > >> 2./ Use conversion SOPs to convert geometry groups.
> > >>
> > >> You could probably find a variant of the python needed to do the query
> > in
> > >> soho I'd guess - even if you didn't choose that route.
> > >>
> > >> Good luck!
> > >>
> > >>
> > >>
> > >> On 29 September 2014 14:50, Guillaume Laforge <
> > >> guillaume.laforge.3d at gmail.com> wrote:
> > >>
> > >> > Hi list,
> > >> >
> > >> > I'm looking at the best way to export an Houdini geometry in a
> > specific
> > >> > geometry format.
> > >> >
> > >> > For example, if the primitive is closed, I must create a polymesh
> > object
> > >> > and if open, a curve object (polymesh and curve types being defined
> in
> > >> the
> > >> > custom geometry library, not Houdini HDK of course).
> > >> >
> > >> > I don't want to do such query for each primitives (if such query
> > exist)
> > >> ...
> > >> >
> > >> > What is the best way to handle such geometry export from a custom
> ROP
> > >> node
> > >> > ? I'm specially interested by any non-SOHO way :).
> > >> >
> > >> > Thanks,
> > >> > Guillaume
> > >> >
> > >> > PS: It would be great if the Alembic ROP node source code was
> > public...
> > >> is
> > >> > it ?
> > >> > _______________________________________________
> > >> > Sidefx-houdini-list mailing list
> > >> > Sidefx-houdini-list at sidefx.com
> > >> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> ===================================================
> > >> Andrew D Lyons | Software Engineer | http://www.linkedin.com/in/tstex
> > >> ===================================================
> > >> _______________________________________________
> > >> 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
> >
>
>
>
> --
> ===================================================
> Andrew D Lyons | Software Engineer | http://www.linkedin.com/in/tstex
> ===================================================
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



More information about the Sidefx-houdini-list mailing list