Re: [info-performer] 3D texturing

Date view Thread view Subject view Author view

From: Lawrence E Bertoldi (lberto++at++adelphia.net)
Date: 11/28/2003 06:29:21


So do you have an example that I could use to see what I'm doing
wrong?

I'm still thinking that it dose not work on linux
Has anyone tried it on Linux?

I have set up the texgen using the "c" coord of ax+by+cz+d in the R plane.
tgen->setPlane(PF_R,0.0,0.0,0.5,0.0);
(I also tried setting "c" component to a constantly varying number between 0
and 1 using a sin function)

I load the texture
tex->loadFile(filename);

I get the image data
tex->getImage(&image,&comp,&ns,&nt,&nr) returns
image,4,512,1024,1

I write back the image for a 3D texture
tex->setImage(image,4,512,512,2);
now
tex->getImage(&image,&comp,&ns,&nt,&nr) returns
image,4,512,512,2
but no texture

if I set "nr = 1" the image shows up so I know the texture image is good and
writing back

I really would like to get this working if anybody has an idea I'm open!

Praveen Bhaniramka wrote:

> Hi Lawrence,
>
> 3D textures should work just fine with Performer 3.0 AND 2.5. I am not so
> sure about the volume demo however.
>
> Alternatively, you can either write the code yourself using OpenGL or use
> the OpenGL Volumizer loader that ships with Performer (libpfvz). The latter
> requires you to simply specify your 3D texture data and takes care of all
> the volume rendering for you using Volumizer.
>
> Cheers,
> Praveen
>
> ----- Original Message -----
> From: "Lawrence E Bertoldi" <lberto++at++adelphia.net>
> To: <info-performer++at++sgi.com>
> Sent: Wednesday, November 26, 2003 9:51 AM
> Subject: [info-performer] 3D texturing
>
> > I'm building a wave model and I am trying to use 3d texturing.
> >
> > After having little success, I tried to check out the volume demo in
> > Performer/src/pguide/libpf/C++
> > Looking at the image file they build, I have concluded that it dose not
> > work because all I see
> > is the white cube, no black or gray.
> > So I built a 512 x 1024 texture, load it, do a getImage on it.
> > The returned image is as expected,
> > cmp = 4
> > sx = 512
> > sy = 1024
> > sz = 1
> > Now I do a setImage setting sx = 512, sy = 512, sz = 2
> > No matter what I set the texGen planes to the texture wont show up!
> > If i set sz = 1 the texture shows up no matter how I have the texgen
> > set!
> > I have tried this on 2.5.1 and 3.0 Linux with gforce 4 and fx2000/3000
> > So my question is::
> > Dose 3d texturing under Performer 2.5.1 or 3.0 work?
> > Dose it work on 3.1 or should I go directly to OpenGL!
> >
> >
> > -----------------------------------------------------------------------
> > List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> > Open Development Project: http://oss.sgi.com/projects/performer/
> > Submissions: info-performer++at++sgi.com
> > Admin. requests: info-performer-request++at++sgi.com
> > -----------------------------------------------------------------------
> > I/ITSEC 2003 Friends of Performer Meeting:
> > Wednesday December 03, 6:30-8:30pm, Peabody Hotel, Florida I Ballroom
> > -----------------------------------------------------------------------
> >
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
> I/ITSEC 2003 Friends of Performer Meeting:
> Wednesday December 03, 6:30-8:30pm, Peabody Hotel, Florida I Ballroom
> -----------------------------------------------------------------------


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sun Nov 30 2003 - 17:33:11 PST