[Sidefx-houdini-list] Delayed Read Archive Question

Michael K O'Brien mobrien at pixar.com
Fri Jul 18 19:06:10 EDT 2008


That's close to the way I call it. The first arg is the string pointing to
your archive. I also pass in the deallocation argument (the last arg).

            RtString* aFileNameBuf = 
            aFileNameBuf[0] = strdup(aFileName.c_str());


Are you seeing the calls in the rib file? Are you sure the bound is within
the camera frustum?

The other thing you can do is swap out an RiReadArchive call, which is
simpler, to help debug:

            RiReadArchive(const_cast<char*>(aFileName.c_str()), 0, RI_NULL);


Michael K O'Brien
mobrien at pixar.com

JEN: Just because it's Taco Bell doesn't mean it's not dinner!

> -----Original Message-----
> From: sidefx-houdini-list-bounces at sidefx.com [mailto:sidefx-houdini-list-
> bounces at sidefx.com] On Behalf Of Jaideep Khadilkar
> Sent: Friday, July 18, 2008 4:54 AM
> To: Houdini Mail List
> Subject: [Sidefx-houdini-list] Delayed Read Archive Question
> HI...........
> I am writing a Procedural Primitive for Renderman.
> The attempt is to write a fur procedural for renderman.
> In my DSO, I am creating multiple curves using , RiCurvesV() function.
> It is working. It creates multiple curves with given points. Now, instead
> of curves,
> I want to place a custom geometry, with LOD. So I am using Delayed Read
> Archive.
> My code is something like this..
> RtString args[] = {"/home/jaideepk/grass_1.rib"};
> RtBound mybound = {-1, 1, -1, 1, -1,1} ;
> RiProcedural((RtPointer)args, mybound, RiProcDelayedReadArchive,NULL);
> Is it the right way to call archive? I am getting a blank output.
> My grass_1.rib file is in RIB binding and not C_Binding. Is that wrong??
> Plz Help
> -------Jaideep
>       Bring your gang together. Do your thing. Find your favourite Yahoo!
> group at http://in.promos.yahoo.com/groups/
> _______________________________________________
> 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