Re: [info-performer] 3D texturing

Date view Thread view Subject view Author view

From: Paolo Farinelli (paolo++at++sgi.com)
Date: 11/30/2003 19:17:51


Hi Lawrence,

I just tried running the volume demo using the latest pf3.1 images.

On a Linux RH9 SMP system with geForce3 graphics, the volume
demo did work, but extremely slowly (as if it is somehow falling
back to sw rendering!).

I have filed a bug for this problem: #905561

However, on a Linux RH8 system with ATI FireGL graphics it runs
very well, and on a WIN32 system with geForce4 it runs quite well.

If you could try to run the volume demo on your system against the
beta version of Performer3.1 (which you can download from
http://www.sgi.com/products/evaluation/Linux_performer_3.1_EA/),
I would be interested to know if your problem is solved (or reduced)
by using the new libraries.

Thank you for your feedback.
Best Regards,
Paolo

Lawrence E Bertoldi wrote:

>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!
>>>
>>>

-- 
Paolo Farinelli                                           paolo++at++sgi.com
Member of Technical Staff, OpenGL Performer              1-650-933-1808
Silicon Graphics        1600 Amphitheatre Pkwy, Mountain View, CA 94043


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sun Nov 30 2003 - 19:18:03 PST