On May 6, 3:59 pm, Daniel Seddon <
dansed...@gmail.com> wrote:
> #include "Ptexture.h"
> #include "PtexReader.h"
You should only need to include Ptexture.h. PtexReader is an internal
header.
> ptex->open( ptxPath, perr, true);
open is a static method, meaning that it doesn't need an object to
call it. The bigger problem though, and the reason for your crash, is
that you're never setting the value of ptex. Try this instead:
ptex = PtexTexture::open( ... )
In the end you'll also need to release the texture by calling ptex-
>release(). You can use PtexPtr to do this automatically. See the
PtexPtr docs and reply back if you want more info. You can also take
a look at rtest.cpp or ptxinfo.cpp for samples of how to use the api.
Good luck!
Brent