From info-volumizer-owner@els.sgi.com Fri Nov  5 12:58:08 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iA5Kuevi3961207;
	Fri, 5 Nov 2004 12:56:40 -0800 (PST)
Received: from internal-mail-relay.corp.sgi.com (internal-mail-relay.corp.sgi.com [198.149.32.51])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iA5Kmcva3990555
	for <info-volumizer@els.sgi.com>; Fri, 5 Nov 2004 12:48:41 -0800 (PST)
Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15])
	by internal-mail-relay.corp.sgi.com (8.12.9/8.12.10/SGI_generic_relay-1.2) with ESMTP id iA5Kmcpj148557956
	for <info-volumizer@sgi.com>; Fri, 5 Nov 2004 12:48:38 -0800 (PST)
X-ASG-Debug-ID: 1099687696-3958-337-0
X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi
Received: from web54503.mail.yahoo.com (web54503.mail.yahoo.com [68.142.225.173])
	by cuda.sgi.com (Spam Firewall) with SMTP id 2BCB5D008E8A
	for <info-volumizer@sgi.com>; Fri,  5 Nov 2004 12:48:16 -0800 (PST)
Message-ID: <20041105204816.7531.qmail@web54503.mail.yahoo.com>
Received: from [65.173.1.35] by web54503.mail.yahoo.com via HTTP; Fri, 05 Nov 2004 12:48:16 PST
Date: Fri, 5 Nov 2004 12:48:16 -0800 (PST)
From: Yanhong Li <yanhong64@yahoo.com>
X-ASG-Orig-Subj: sample code for volview
Subject: [info-volumizer] sample code for volview
To: info-volumizer@sgi.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Barracuda-Spam-Score: 0.52
X-Barracuda-Spam-Status: No, SCORE=0.52 using per-user scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=10.0 KILL_LEVEL=1000.0 tests=FROM_ENDS_IN_NUMS
X-Barracuda-Spam-Report: Code version 2.64, rules version 2.1.495
	Rule breakdown below	pts        rule name                      description
	---- ---------------------- -------------------------------------------
	0.52 FROM_ENDS_IN_NUMS      From: ends in numbers
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com


Hi,

I downloaded Volumizer2.7 evaluation version for
linux. But I cannot find the source code for volview.
I remembered that SGI used to deliver the source code
with volumizer package. Do you stop doing it? or it is
because the trial version? 

Please relay to me directly since I never recieve any
messages since I subscribed this mailing list.

Thanks a lot for help!

Yanhong
-- 


		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


From info-volumizer-owner@els.sgi.com Fri Nov  5 13:13:04 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iA5LCa013988475;
	Fri, 5 Nov 2004 13:12:36 -0800 (PST)
Received: from sgindia.newdelhi.sgi.com (sgindia.newdelhi.sgi.com [134.14.90.2])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iA5LBeva3986034
	for <info-volumizer@els.sgi.com>; Fri, 5 Nov 2004 13:11:42 -0800 (PST)
Received: from praveenlaptop ([134.14.90.94]) by sgindia.newdelhi.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via SMTP id BAA52533; Sat, 6 Nov 2004 01:29:24 +0530 (IST)
Message-ID: <161001c4c37c$36515f40$4c5a0e86@praveenlaptop>
From: "Praveen Bhaniramka" <praveenb@sgi.com>
To: <info-volumizer@els.sgi.com>
Cc: <yanhong64@yahoo.com>
References: <20041105204816.7531.qmail@web54503.mail.yahoo.com>
Subject: Re: [info-volumizer] sample code for volview
Date: Sat, 6 Nov 2004 02:42:52 +0530
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Hi Yanhong,

We do not ship the source code for volview on 32-bit Linux. This is because
volview uses Multipipe SDK (MPK) and MPK is only shipped for IRIX and 64-bit
Linux (for the new SGI Prism systems). On 32-bit Linux, only the binaries
for volview are shipped and can be found under /usr/demos/Volumizer2/bin.

hth,
Praveen

PS. I looked up the info-volumizer subscribers and your name does appear. I
am curious as to why you do not receive messages send to the list. If the
problem persists, please let me know.

----- Original Message -----
From: "Yanhong Li" <yanhong64@yahoo.com>
To: <info-volumizer@sgi.com>
Sent: Saturday, November 06, 2004 2:18 AM
Subject: [info-volumizer] sample code for volview


>
> Hi,
>
> I downloaded Volumizer2.7 evaluation version for
> linux. But I cannot find the source code for volview.
> I remembered that SGI used to deliver the source code
> with volumizer package. Do you stop doing it? or it is
> because the trial version?
>
> Please relay to me directly since I never recieve any
> messages since I subscribed this mailing list.
>
> Thanks a lot for help!
>
> Yanhong
> --
>
>
>
> __________________________________
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.yahoo.com
>
>


From info-volumizer-owner@els.sgi.com Sun Nov 14 21:02:40 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iAF4vQeH4144681;
	Sun, 14 Nov 2004 20:57:26 -0800 (PST)
Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.200])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iAF2Dxva3992351
	for <info-volumizer@els.sgi.com>; Sun, 14 Nov 2004 18:14:21 -0800 (PST)
Received: by rproxy.gmail.com with SMTP id g11so302602rne
        for <info-volumizer@els.sgi.com>; Sun, 14 Nov 2004 18:13:57 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding;
        b=t8msCvTIXqnK0wk1z1G0g8q7wCZqNSIcbd2aWMk6giqwW1VNFFP255+yK4VPt5RDVsLd2me6BL33RYl+LpGijEkbnjbS0e6Ic0ZoMqzfuFKUMPeln+tqOgX31ilTxe3Vyctv3RPsU2GwzeoO+uyt1E/W4qydR7IXekZvQTH7MCM=
Received: by 10.38.4.61 with SMTP id 61mr1210036rnd;
        Sun, 14 Nov 2004 18:13:56 -0800 (PST)
Received: by 10.38.162.23 with HTTP; Sun, 14 Nov 2004 18:13:55 -0800 (PST)
Message-ID: <fafba5fe04111418136935ed5d@mail.gmail.com>
Date: Sun, 14 Nov 2004 21:13:55 -0500
From: Abhijit Lothe <alothe@gmail.com>
To: volumizer mailing list <info-volumizer@els.sgi.com>
Subject: [info-volumizer] License issues regarding volumizer
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

hi Praveen,
 I had installed Opengl Volumizer 2.7 windows version on one of my pcs
with a permanent license key. Since I am selling that computer , i
want to install the volumizer  on the new machine and delete it from
the old one. It is a windows pc with almost no changes other than the
memory size and speed of the CPU. The graphics card is also supported
by the volumizer. I would like to know how i can transfer the
permanent license from my old computer to the new one.

Thanks

Reagrds
Abhijit

From info-volumizer-owner@els.sgi.com Mon Nov 15 10:00:46 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iAFHxsND4205796;
	Mon, 15 Nov 2004 09:59:54 -0800 (PST)
Received: from bio.dist.unige.it (web.bio.dist.unige.it [130.251.10.200])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iAFHdXva4166525
	for <info-volumizer@els.sgi.com>; Mon, 15 Nov 2004 09:39:34 -0800 (PST)
Received: (qmail 24446 invoked by uid 1017); 15 Nov 2004 18:45:54 +0100
Received: from pivan@bio.dist.unige.it by web by uid 1014 with qmail-scanner-1.22-st-qms 
 (clamdscan: 0.73. spamassassin: 2.63.  Clear:RC:1(127.0.0.1):. 
 Processed in 0.641546 secs); 15 Nov 2004 17:45:54 -0000
X-Antivirus-BIOLAB-Mail-From: pivan@bio.dist.unige.it via web
X-Antivirus-BIOLAB: 1.22-st-qms (Clear:RC:1(127.0.0.1):. Processed in 0.641546 secs Process 24441)
Received: from localhost (HELO www.bio.dist.unige.it) (pivan@bio.dist.unige.it@127.0.0.1)
  by bio.dist.unige.it with SMTP; 15 Nov 2004 18:45:53 +0100
Received: from 130.251.10.6
        (SquirrelMail authenticated user pivan@bio.dist.unige.it);
        by www.bio.dist.unige.it with HTTP;
        Mon, 15 Nov 2004 18:45:53 +0100 (CET)
Message-ID: <4390.130.251.10.6.1100540753.squirrel@130.251.10.6>
In-Reply-To: <fafba5fe04111418136935ed5d@mail.gmail.com>
References: <fafba5fe04111418136935ed5d@mail.gmail.com>
Date: Mon, 15 Nov 2004 18:45:53 +0100 (CET)
Subject: Re: [info-volumizer] License issues regarding volumizer
From: pivan@bio.dist.unige.it
To: info-volumizer@els.sgi.com
User-Agent: SquirrelMail/1.4.3a
X-Mailer: SquirrelMail/1.4.3a
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Hi,

we had recently transferred a couple of licenses from an Octane2 to a
Fuel. You have to contact SGI support by mail or phone and ask them for a
form to print, fill and send via fax (they have just a "license transfer
form") . Then, they will mail you your brand "new" license(s)

best regards,

ivan

> hi Praveen,
>  I had installed Opengl Volumizer 2.7 windows version on one of my pcs
> with a permanent license key. Since I am selling that computer , i
> want to install the volumizer  on the new machine and delete it from
> the old one. It is a windows pc with almost no changes other than the
> memory size and speed of the CPU. The graphics card is also supported
> by the volumizer. I would like to know how i can transfer the
> permanent license from my old computer to the new one.
>
> Thanks
>
> Reagrds
> Abhijit
>



From info-volumizer-owner@els.sgi.com Mon Nov 15 10:00:46 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iAFHxsHL4150555;
	Mon, 15 Nov 2004 09:59:54 -0800 (PST)
Received: from hastur.corp.sgi.com (hastur.corp.sgi.com [198.149.32.33])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iAFHblva3852311
	for <info-volumizer@els.sgi.com>; Mon, 15 Nov 2004 09:37:48 -0800 (PST)
Received: from mtv-atc-012e--n.corp.sgi.com (mtv-atc-012e--n.corp.sgi.com [192.26.78.44])
	by hastur.corp.sgi.com (8.12.9/8.12.10/SGI_generic_relay-1.2) with ESMTP id iAFHbPwD61410564
	for <info-volumizer@els.sgi.com>; Mon, 15 Nov 2004 09:37:25 -0800 (PST)
Received: by mtv-atc-012e--n.corp.sgi.com with Internet Mail Service (5.5.2655.55)
	id <W7KDGZ0N>; Mon, 15 Nov 2004 09:37:47 -0800
Message-ID: <AC2D724DEEDEFE46B41B72DC49579A526B58CC@mtv-atc-012e--n.corp.sgi.com>
From: Thomas Tannert <ttannert@sgi.com>
To: "'info-volumizer@els.sgi.com'" <info-volumizer@els.sgi.com>
Subject: RE: [info-volumizer] License issues regarding volumizer
Date: Mon, 15 Nov 2004 09:37:47 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2655.55)
Content-Type: text/plain
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Hello Abhijit-

Thank you for the great question.  Let me try to answer this one for you.
The formal SGI policy on transferring software licenses is as follows:

SGI will allow transfer of a key for the same version of software from one
system to another with the same OS if the following conditions are met: 

1. The customer has an active software support contract for that specific
application. 
2. Both systems are owned by the same legal entity.
3. The application being transferred has not expired or been divested.

In order to make this happen, all you need to do is call your SGI support
number and request the transfer.  They will ask you for all the pertinent
information to complete the request.

If you do not have a valid support contract, you can call your sales
representative and purchase one and then begin the transfer process.  

Hope this helps-

Thomas Tannert  


-------------------------------------------- 

VSG Marketing - SGI 
1500 Crittenden Lane, M/S 526 
Mountain View, CA 94043 
E-mail: ttannert@sgi.com 
Phone: (650) 933 5237 


-----Original Message-----
From: owner-info-volumizer@els.sgi.com
[mailto:owner-info-volumizer@els.sgi.com] On Behalf Of Abhijit Lothe
Sent: Sunday, November 14, 2004 6:14 PM
To: volumizer mailing list
Subject: [info-volumizer] License issues regarding volumizer

hi Praveen,
 I had installed Opengl Volumizer 2.7 windows version on one of my pcs
with a permanent license key. Since I am selling that computer , i
want to install the volumizer  on the new machine and delete it from
the old one. It is a windows pc with almost no changes other than the
memory size and speed of the CPU. The graphics card is also supported
by the volumizer. I would like to know how i can transfer the
permanent license from my old computer to the new one.

Thanks

Reagrds
Abhijit

From info-volumizer-owner@els.sgi.com Mon Nov 15 12:24:04 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iAFKN1qw4198820;
	Mon, 15 Nov 2004 12:23:01 -0800 (PST)
Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.205])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iAFKISva4119377
	for <info-volumizer@els.sgi.com>; Mon, 15 Nov 2004 12:18:30 -0800 (PST)
Received: by rproxy.gmail.com with SMTP id g11so454957rne
        for <info-volumizer@els.sgi.com>; Mon, 15 Nov 2004 12:18:25 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references;
        b=Qd37D8CwjJJ0F0jtbMdjqhB/ElRKQQqC6Hm6LXYtdWJbJxlnP+9R6eGea+gt7tY/evspohlsxGGrDW/iw2sF97YHG8+eTk46tasaPASRw1IniU+6gnt3zttAL59R/J7M6C6yiBlLSzy/ouU3KU0z9Ifd+aM2ZK+mBWKS9z+cvMI=
Received: by 10.38.4.61 with SMTP id 61mr262178rnd;
        Mon, 15 Nov 2004 12:18:24 -0800 (PST)
Received: by 10.38.162.23 with HTTP; Mon, 15 Nov 2004 12:18:24 -0800 (PST)
Message-ID: <fafba5fe041115121870950b0f@mail.gmail.com>
Date: Mon, 15 Nov 2004 15:18:24 -0500
From: Abhijit Lothe <alothe@gmail.com>
To: info-volumizer@els.sgi.com
Subject: Re: [info-volumizer] License issues regarding volumizer
In-Reply-To: <4390.130.251.10.6.1100540753.squirrel@130.251.10.6>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
References: <fafba5fe04111418136935ed5d@mail.gmail.com>
	 <4390.130.251.10.6.1100540753.squirrel@130.251.10.6>
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Thank you all for the information.

-Abhijit


On Mon, 15 Nov 2004 18:45:53 +0100 (CET), pivan@bio.dist.unige.it
<pivan@bio.dist.unige.it> wrote:
> Hi,
> 
> we had recently transferred a couple of licenses from an Octane2 to a
> Fuel. You have to contact SGI support by mail or phone and ask them for a
> form to print, fill and send via fax (they have just a "license transfer
> form") . Then, they will mail you your brand "new" license(s)
> 
> best regards,
> 
> ivan
> 
> 
> 
> > hi Praveen,
> >  I had installed Opengl Volumizer 2.7 windows version on one of my pcs
> > with a permanent license key. Since I am selling that computer , i
> > want to install the volumizer  on the new machine and delete it from
> > the old one. It is a windows pc with almost no changes other than the
> > memory size and speed of the CPU. The graphics card is also supported
> > by the volumizer. I would like to know how i can transfer the
> > permanent license from my old computer to the new one.
> >
> > Thanks
> >
> > Reagrds
> > Abhijit
> >
> 
>

From info-volumizer-owner@els.sgi.com Thu Nov 18 13:55:35 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iAILs5Hp4250650;
	Thu, 18 Nov 2004 13:54:05 -0800 (PST)
Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iAILoCva4240577
	for <info-volumizer@els.sgi.com>; Thu, 18 Nov 2004 13:50:14 -0800 (PST)
Received: by rproxy.gmail.com with SMTP id g11so8461rne
        for <info-volumizer@els.sgi.com>; Thu, 18 Nov 2004 13:49:38 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding;
        b=FIJPXx/ttS/sHh0TX/b4FkHpwkx+B67oymdgmLI3lTqJnKyVHz4ZYgaoVsqxX9cGEzz4ssowaBVt0AJ/RI0NxFyIcH5RUWoAfYcmpP3g0vd4AmKrpb04WzFvSDA1Wi/fIGQLJfufLZ1N8/QcOfEy62v3l0YiOuKuqBZYLC3nVaM=
Received: by 10.38.67.26 with SMTP id p26mr105184rna;
        Thu, 18 Nov 2004 13:42:58 -0800 (PST)
Received: by 10.38.162.23 with HTTP; Thu, 18 Nov 2004 13:42:57 -0800 (PST)
Message-ID: <fafba5fe04111813427855c3c3@mail.gmail.com>
Date: Thu, 18 Nov 2004 16:42:57 -0500
From: Abhijit Lothe <alothe@gmail.com>
To: volumizer mailing list <info-volumizer@els.sgi.com>
Subject: [info-volumizer] use of color images
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Hello praveen,
 i would like to confirm if volumizer can directly display the RGB
volume avaible in the form of 2D RGB slices since the manual hasnt
given any example for RGB. it would be really helpful for new comers
like me if you could include one RGB volume example in the manual.

Thanks 

-Abhijit

From info-volumizer-owner@els.sgi.com Thu Nov 18 15:21:43 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iAINKkkl4170705;
	Thu, 18 Nov 2004 15:20:46 -0800 (PST)
Received: from sgindia.newdelhi.sgi.com (sgindia.newdelhi.sgi.com [134.14.90.2])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iAINGOva4211362
	for <info-volumizer@els.sgi.com>; Thu, 18 Nov 2004 15:16:26 -0800 (PST)
Received: from praveenlaptop ([134.14.90.94]) by sgindia.newdelhi.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via SMTP id DAA03028 for <info-volumizer@els.sgi.com>; Fri, 19 Nov 2004 03:34:05 +0530 (IST)
Message-ID: <003901c4cdc4$d4818a80$5e5a0e86@praveenlaptop>
From: "Praveen Bhaniramka" <praveenb@sgi.com>
To: <info-volumizer@els.sgi.com>
References: <fafba5fe04111813427855c3c3@mail.gmail.com>
Subject: Re: [info-volumizer] use of color images
Date: Fri, 19 Nov 2004 04:47:52 +0530
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Abhijit,

Volumizer's rendering pipeline does not distinguish between the data format
and data type of the volume data. Hence once you have passed the volume data
to Volumizer, you can render RGB data sets in the same way as LUMINANCE or
RGBA datasets.

However, it is important to note that RGB data sets do not have any
transparency associated with them. The rendered image might not necessarily
be what you would expect with typical LUMINANCE or RGBA data sets. So, if
you need alpha, depending on your graphics hardware, your best bet might be
to try and use a shader which introduces alpha in the final rendered image
(using a fragment program, for example). If you don't care about alpha, you
should be just fine using the default rendering pipeline.

hth,
Praveen

----- Original Message -----
From: "Abhijit Lothe" <alothe@gmail.com>
To: "volumizer mailing list" <info-volumizer@els.sgi.com>
Sent: Friday, November 19, 2004 3:12 AM
Subject: [info-volumizer] use of color images


> Hello praveen,
>  i would like to confirm if volumizer can directly display the RGB
> volume avaible in the form of 2D RGB slices since the manual hasnt
> given any example for RGB. it would be really helpful for new comers
> like me if you could include one RGB volume example in the manual.
>
> Thanks
>
> -Abhijit


From info-volumizer-owner@els.sgi.com Sat Nov 20 00:47:35 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iAK8k3Y24295354;
	Sat, 20 Nov 2004 00:46:03 -0800 (PST)
Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.202])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iAK89lva4233876
	for <info-volumizer@els.sgi.com>; Sat, 20 Nov 2004 00:09:48 -0800 (PST)
Received: by rproxy.gmail.com with SMTP id g11so259821rne
        for <info-volumizer@els.sgi.com>; Sat, 20 Nov 2004 00:09:46 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references;
        b=uroBy+CnGzNtAMMBDGUJjcIbxXz6X2mHJgvQ9LUklPypPkekxGqXCOldkY6eXWv7jLeZU/2g7aMr82BPRB+kQpjdfQ8bklZivNvVrWUbhpUAfZ9+IK+oGiC/3vLfKCuehmL3WBkx8p9dum3tz5H6disJ7+2VSgWEQDJ3NDXbfsA=
Received: by 10.38.181.38 with SMTP id d38mr72179rnf;
        Sat, 20 Nov 2004 00:09:46 -0800 (PST)
Received: by 10.38.162.23 with HTTP; Sat, 20 Nov 2004 00:09:46 -0800 (PST)
Message-ID: <fafba5fe041120000932077cb3@mail.gmail.com>
Date: Sat, 20 Nov 2004 03:09:46 -0500
From: Abhijit Lothe <alothe@gmail.com>
To: info-volumizer@els.sgi.com
Subject: Re: [info-volumizer] use of color images
In-Reply-To: <003901c4cdc4$d4818a80$5e5a0e86@praveenlaptop>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
References: <fafba5fe04111813427855c3c3@mail.gmail.com>
	 <003901c4cdc4$d4818a80$5e5a0e86@praveenlaptop>
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Thanks Praveen.
I am facing a problem using the RGB data. I am creating
vzParameterVolumeTexture object with an RGB data. The data was created
by reading 49 2-D TIFF images each of size 1024 X 1768 . They have 3
samples per pixel with 8 bits per sample.
I passed VZ_UNSIGNED_BYTE as the texture type and VZ_RGB as the
external type. My data is stored as a 1-D array of unsigned char with
dimensions 1024 X 1768 X 3. I used simple TM renderer and simple TM
shader to display the volume. But it gives runtime error and program
does not run. I am running it on windows platform (XP). I was not able
to figure out the error since it seems to be coming from the draw
function of vzTMRenderAction. Could you please help me in this matter.

Thanks . 
Regards
Abhijit


On Fri, 19 Nov 2004 04:47:52 +0530, Praveen Bhaniramka <praveenb@sgi.com> wrote:
> Abhijit,
> 
> Volumizer's rendering pipeline does not distinguish between the data format
> and data type of the volume data. Hence once you have passed the volume data
> to Volumizer, you can render RGB data sets in the same way as LUMINANCE or
> RGBA datasets.
> 
> However, it is important to note that RGB data sets do not have any
> transparency associated with them. The rendered image might not necessarily
> be what you would expect with typical LUMINANCE or RGBA data sets. So, if
> you need alpha, depending on your graphics hardware, your best bet might be
> to try and use a shader which introduces alpha in the final rendered image
> (using a fragment program, for example). If you don't care about alpha, you
> should be just fine using the default rendering pipeline.
> 
> hth,
> Praveen
> 
> 
> 
> ----- Original Message -----
> From: "Abhijit Lothe" <alothe@gmail.com>
> To: "volumizer mailing list" <info-volumizer@els.sgi.com>
> Sent: Friday, November 19, 2004 3:12 AM
> Subject: [info-volumizer] use of color images
> 
> > Hello praveen,
> >  i would like to confirm if volumizer can directly display the RGB
> > volume avaible in the form of 2D RGB slices since the manual hasnt
> > given any example for RGB. it would be really helpful for new comers
> > like me if you could include one RGB volume example in the manual.
> >
> > Thanks
> >
> > -Abhijit
> 
>

From info-volumizer-owner@els.sgi.com Sat Nov 20 01:36:54 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iAK9aI7E4264254;
	Sat, 20 Nov 2004 01:36:18 -0800 (PST)
Received: from sgindia.newdelhi.sgi.com (sgindia.newdelhi.sgi.com [134.14.90.2])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iAK9Z6va4240369
	for <info-volumizer@els.sgi.com>; Sat, 20 Nov 2004 01:35:08 -0800 (PST)
Received: from praveenlaptop ([134.14.90.94]) by sgindia.newdelhi.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via SMTP id NAA49727 for <info-volumizer@els.sgi.com>; Sat, 20 Nov 2004 13:52:48 +0530 (IST)
Message-ID: <002901c4cee4$6cfc35b0$5e5a0e86@praveenlaptop>
From: "Praveen Bhaniramka" <praveenb@sgi.com>
To: <info-volumizer@els.sgi.com>
References: <fafba5fe04111813427855c3c3@mail.gmail.com> <003901c4cdc4$d4818a80$5e5a0e86@praveenlaptop> <fafba5fe041120000932077cb3@mail.gmail.com>
Subject: Re: [info-volumizer] use of color images
Date: Sat, 20 Nov 2004 15:06:34 +0530
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Hi again,

I am not sure what you mean by "stored as a 1-D array of unsigned char with
dimensions 1024 X 1768 X 3". I assume that you mean 1024 X 1768 x 49 with 3
bytes each? The run-time error could be any number of reasons. Please try
the following -

    - Test your app with a smaller RGB data set (say 256 x  256 x 256) to
rule out the use of RGB data as the cause of the error.
    -  Make sure that system has enough memory for the data set to fit.
    - Look for errors reported by Volumizer. If there is an internal error
inside Volumizer, it calls the vzError::error() method, which prints an
error string to the console and calls abort. Run your app from a console,
and look at the error message for the source of the error.
    - Volumizer uses an environment variable VOLUMIZER_DEBUG_LEVEL to print
out debug messages to the console. The higher the value, more the debug
messages printed. That is another useful source of information for possible
cause of the error.

Of course, if the error or debug messages don't make any sense, you can send
them our way and we will try to take a look :) If you do so, please also
send more information about the system configuration, like memory size,
graphics card and driver version, etc.

Cheers,
Praveen

----- Original Message -----
From: "Abhijit Lothe" <alothe@gmail.com>
To: <info-volumizer@els.sgi.com>
Sent: Saturday, November 20, 2004 1:39 PM
Subject: Re: [info-volumizer] use of color images


> Thanks Praveen.
> I am facing a problem using the RGB data. I am creating
> vzParameterVolumeTexture object with an RGB data. The data was created
> by reading 49 2-D TIFF images each of size 1024 X 1768 . They have 3
> samples per pixel with 8 bits per sample.
> I passed VZ_UNSIGNED_BYTE as the texture type and VZ_RGB as the
> external type. My data is stored as a 1-D array of unsigned char with
> dimensions 1024 X 1768 X 3. I used simple TM renderer and simple TM
> shader to display the volume. But it gives runtime error and program
> does not run. I am running it on windows platform (XP). I was not able
> to figure out the error since it seems to be coming from the draw
> function of vzTMRenderAction. Could you please help me in this matter.
>
> Thanks .
> Regards
> Abhijit
>
>
> On Fri, 19 Nov 2004 04:47:52 +0530, Praveen Bhaniramka <praveenb@sgi.com>
wrote:
> > Abhijit,
> >
> > Volumizer's rendering pipeline does not distinguish between the data
format
> > and data type of the volume data. Hence once you have passed the volume
data
> > to Volumizer, you can render RGB data sets in the same way as LUMINANCE
or
> > RGBA datasets.
> >
> > However, it is important to note that RGB data sets do not have any
> > transparency associated with them. The rendered image might not
necessarily
> > be what you would expect with typical LUMINANCE or RGBA data sets. So,
if
> > you need alpha, depending on your graphics hardware, your best bet might
be
> > to try and use a shader which introduces alpha in the final rendered
image
> > (using a fragment program, for example). If you don't care about alpha,
you
> > should be just fine using the default rendering pipeline.
> >
> > hth,
> > Praveen
> >
> >
> >
> > ----- Original Message -----
> > From: "Abhijit Lothe" <alothe@gmail.com>
> > To: "volumizer mailing list" <info-volumizer@els.sgi.com>
> > Sent: Friday, November 19, 2004 3:12 AM
> > Subject: [info-volumizer] use of color images
> >
> > > Hello praveen,
> > >  i would like to confirm if volumizer can directly display the RGB
> > > volume avaible in the form of 2D RGB slices since the manual hasnt
> > > given any example for RGB. it would be really helpful for new comers
> > > like me if you could include one RGB volume example in the manual.
> > >
> > > Thanks
> > >
> > > -Abhijit
> >
> >


From info-volumizer-owner@els.sgi.com Tue Nov 23 05:37:53 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iANDaNgZ4303466;
	Tue, 23 Nov 2004 05:36:23 -0800 (PST)
Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.197])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iALHudva4303369
	for <info-volumizer@els.sgi.com>; Sun, 21 Nov 2004 09:56:41 -0800 (PST)
Received: by rproxy.gmail.com with SMTP id g11so373783rne
        for <info-volumizer@els.sgi.com>; Sun, 21 Nov 2004 09:56:38 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references;
        b=mcLLKOxXsVtvnydtj+HIvS143DxT7X6DWZMLKFRuyp0liY1vJiii0Vb7nnEnAUmWt3Db4bQGXGtTbQxeSmnyufqw5LQ6w+e1G5RtsUeNTXcw0j/vb4lHXS/T8KKXGzMhyA0LnD6HeI19I+lGea6XjvJO/Y8K4I9cvIoLq+zZDjU=
Received: by 10.38.68.47 with SMTP id q47mr513339rna;
        Sun, 21 Nov 2004 09:56:38 -0800 (PST)
Received: by 10.38.162.23 with HTTP; Sun, 21 Nov 2004 09:56:38 -0800 (PST)
Message-ID: <fafba5fe04112109564101db94@mail.gmail.com>
Date: Sun, 21 Nov 2004 12:56:38 -0500
From: Abhijit Lothe <alothe@gmail.com>
To: info-volumizer@els.sgi.com
Subject: Re: [info-volumizer] use of color images
In-Reply-To: <002901c4cee4$6cfc35b0$5e5a0e86@praveenlaptop>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
References: <fafba5fe04111813427855c3c3@mail.gmail.com>
	 <003901c4cdc4$d4818a80$5e5a0e86@praveenlaptop>
	 <fafba5fe041120000932077cb3@mail.gmail.com>
	 <002901c4cee4$6cfc35b0$5e5a0e86@praveenlaptop>
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Thanks Praveen,
 It worked after reducing the size of the dataset. I guess i will have
to use the clip texture to load the volume now. Thanks a lot for your
help

Regards
Abhijit


On Sat, 20 Nov 2004 15:06:34 +0530, Praveen Bhaniramka <praveenb@sgi.com> wrote:
> Hi again,
> 
> I am not sure what you mean by "stored as a 1-D array of unsigned char with
> dimensions 1024 X 1768 X 3". I assume that you mean 1024 X 1768 x 49 with 3
> bytes each? The run-time error could be any number of reasons. Please try
> the following -
> 
>    - Test your app with a smaller RGB data set (say 256 x  256 x 256) to
> rule out the use of RGB data as the cause of the error.
>    -  Make sure that system has enough memory for the data set to fit.
>    - Look for errors reported by Volumizer. If there is an internal error
> inside Volumizer, it calls the vzError::error() method, which prints an
> error string to the console and calls abort. Run your app from a console,
> and look at the error message for the source of the error.
>    - Volumizer uses an environment variable VOLUMIZER_DEBUG_LEVEL to print
> out debug messages to the console. The higher the value, more the debug
> messages printed. That is another useful source of information for possible
> cause of the error.
> 
> Of course, if the error or debug messages don't make any sense, you can send
> them our way and we will try to take a look :) If you do so, please also
> send more information about the system configuration, like memory size,
> graphics card and driver version, etc.
> 
> Cheers,
> 
> 
> Praveen
> 
> ----- Original Message -----
> From: "Abhijit Lothe" <alothe@gmail.com>
> To: <info-volumizer@els.sgi.com>
> Sent: Saturday, November 20, 2004 1:39 PM
> Subject: Re: [info-volumizer] use of color images
> 
> > Thanks Praveen.
> > I am facing a problem using the RGB data. I am creating
> > vzParameterVolumeTexture object with an RGB data. The data was created
> > by reading 49 2-D TIFF images each of size 1024 X 1768 . They have 3
> > samples per pixel with 8 bits per sample.
> > I passed VZ_UNSIGNED_BYTE as the texture type and VZ_RGB as the
> > external type. My data is stored as a 1-D array of unsigned char with
> > dimensions 1024 X 1768 X 3. I used simple TM renderer and simple TM
> > shader to display the volume. But it gives runtime error and program
> > does not run. I am running it on windows platform (XP). I was not able
> > to figure out the error since it seems to be coming from the draw
> > function of vzTMRenderAction. Could you please help me in this matter.
> >
> > Thanks .
> > Regards
> > Abhijit
> >
> >
> > On Fri, 19 Nov 2004 04:47:52 +0530, Praveen Bhaniramka <praveenb@sgi.com>
> wrote:
> > > Abhijit,
> > >
> > > Volumizer's rendering pipeline does not distinguish between the data
> format
> > > and data type of the volume data. Hence once you have passed the volume
> data
> > > to Volumizer, you can render RGB data sets in the same way as LUMINANCE
> or
> > > RGBA datasets.
> > >
> > > However, it is important to note that RGB data sets do not have any
> > > transparency associated with them. The rendered image might not
> necessarily
> > > be what you would expect with typical LUMINANCE or RGBA data sets. So,
> if
> > > you need alpha, depending on your graphics hardware, your best bet might
> be
> > > to try and use a shader which introduces alpha in the final rendered
> image
> > > (using a fragment program, for example). If you don't care about alpha,
> you
> > > should be just fine using the default rendering pipeline.
> > >
> > > hth,
> > > Praveen
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Abhijit Lothe" <alothe@gmail.com>
> > > To: "volumizer mailing list" <info-volumizer@els.sgi.com>
> > > Sent: Friday, November 19, 2004 3:12 AM
> > > Subject: [info-volumizer] use of color images
> > >
> > > > Hello praveen,
> > > >  i would like to confirm if volumizer can directly display the RGB
> > > > volume avaible in the form of 2D RGB slices since the manual hasnt
> > > > given any example for RGB. it would be really helpful for new comers
> > > > like me if you could include one RGB volume example in the manual.
> > > >
> > > > Thanks
> > > >
> > > > -Abhijit
> > >
> > >
> 
>

From info-volumizer-owner@els.sgi.com Tue Nov 23 05:45:31 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iANDj6TX4310734;
	Tue, 23 Nov 2004 05:45:06 -0800 (PST)
Received: from web54508.mail.yahoo.com (web54508.mail.yahoo.com [68.142.225.178])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with SMTP id iAN1kTva4244925
	for <info-volumizer@els.sgi.com>; Mon, 22 Nov 2004 17:46:31 -0800 (PST)
Received: (qmail 65626 invoked by uid 60001); 23 Nov 2004 01:46:28 -0000
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=yahoo.com;
  b=hKD5f1P5xqkD9Z8pacrrQ+lGUnrbjKqRixRyp4jjmEOIG45ucswWm5RoZTXmNMIE3lKOvGnGTDqYIVZSzB9hnjhj1Wau9VH6ylFPPBRWoMqH6z3ff56pWxD58p36R5dAe+mYOQpfyKNqDcVkJyghsEwuc03lvTbyRA2DODoZYOs=  ;
Message-ID: <20041123014628.65624.qmail@web54508.mail.yahoo.com>
Received: from [65.173.1.34] by web54508.mail.yahoo.com via HTTP; Mon, 22 Nov 2004 17:46:28 PST
Date: Mon, 22 Nov 2004 17:46:28 -0800 (PST)
From: Yanhong Li <yanhong64@yahoo.com>
Subject: Re: [info-volumizer] use of color images
To: info-volumizer@els.sgi.com
In-Reply-To: <002901c4cee4$6cfc35b0$5e5a0e86@praveenlaptop>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="0-575619357-1101174388=:62334"
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

--0-575619357-1101174388=:62334
Content-Type: text/plain; charset=us-ascii
Content-Id: 
Content-Disposition: inline


I have the same problem. I faked a 32x32x32 cube
texture as the input of  volumizer sample
code(/usr/share/Volumizer2/src/apps/simple/pguide/gult.cxx).
The program coredumped. Attached is the code and the
error message with VOLUMIZER_DEBUG_LEVEL set to 5. The
original code runs fine.

The gfx card I used is Nvidia GeForce6800 GT with
256MB memory os is Redhat Enterprise WS3.

Thanks for help,

Yanhong
--
--- Praveen Bhaniramka <praveenb@sgi.com> wrote:

> Hi again,
> 
> I am not sure what you mean by "stored as a 1-D
> array of unsigned char with
> dimensions 1024 X 1768 X 3". I assume that you mean
> 1024 X 1768 x 49 with 3
> bytes each? The run-time error could be any number
> of reasons. Please try
> the following -
> 
>     - Test your app with a smaller RGB data set (say
> 256 x  256 x 256) to
> rule out the use of RGB data as the cause of the
> error.
>     -  Make sure that system has enough memory for
> the data set to fit.
>     - Look for errors reported by Volumizer. If
> there is an internal error
> inside Volumizer, it calls the vzError::error()
> method, which prints an
> error string to the console and calls abort. Run
> your app from a console,
> and look at the error message for the source of the
> error.
>     - Volumizer uses an environment variable
> VOLUMIZER_DEBUG_LEVEL to print
> out debug messages to the console. The higher the
> value, more the debug
> messages printed. That is another useful source of
> information for possible
> cause of the error.
> 
> Of course, if the error or debug messages don't make
> any sense, you can send
> them our way and we will try to take a look :) If
> you do so, please also
> send more information about the system
> configuration, like memory size,
> graphics card and driver version, etc.
> 
> Cheers,
> Praveen
> 
> ----- Original Message -----
> From: "Abhijit Lothe" <alothe@gmail.com>
> To: <info-volumizer@els.sgi.com>
> Sent: Saturday, November 20, 2004 1:39 PM
> Subject: Re: [info-volumizer] use of color images
> 
> 
> > Thanks Praveen.
> > I am facing a problem using the RGB data. I am
> creating
> > vzParameterVolumeTexture object with an RGB data.
> The data was created
> > by reading 49 2-D TIFF images each of size 1024 X
> 1768 . They have 3
> > samples per pixel with 8 bits per sample.
> > I passed VZ_UNSIGNED_BYTE as the texture type and
> VZ_RGB as the
> > external type. My data is stored as a 1-D array of
> unsigned char with
> > dimensions 1024 X 1768 X 3. I used simple TM
> renderer and simple TM
> > shader to display the volume. But it gives runtime
> error and program
> > does not run. I am running it on windows platform
> (XP). I was not able
> > to figure out the error since it seems to be
> coming from the draw
> > function of vzTMRenderAction. Could you please
> help me in this matter.
> >
> > Thanks .
> > Regards
> > Abhijit
> >
> >
> > On Fri, 19 Nov 2004 04:47:52 +0530, Praveen
> Bhaniramka <praveenb@sgi.com>
> wrote:
> > > Abhijit,
> > >
> > > Volumizer's rendering pipeline does not
> distinguish between the data
> format
> > > and data type of the volume data. Hence once you
> have passed the volume
> data
> > > to Volumizer, you can render RGB data sets in
> the same way as LUMINANCE
> or
> > > RGBA datasets.
> > >
> > > However, it is important to note that RGB data
> sets do not have any
> > > transparency associated with them. The rendered
> image might not
> necessarily
> > > be what you would expect with typical LUMINANCE
> or RGBA data sets. So,
> if
> > > you need alpha, depending on your graphics
> hardware, your best bet might
> be
> > > to try and use a shader which introduces alpha
> in the final rendered
> image
> > > (using a fragment program, for example). If you
> don't care about alpha,
> you
> > > should be just fine using the default rendering
> pipeline.
> > >
> > > hth,
> > > Praveen
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Abhijit Lothe" <alothe@gmail.com>
> > > To: "volumizer mailing list"
> <info-volumizer@els.sgi.com>
> > > Sent: Friday, November 19, 2004 3:12 AM
> > > Subject: [info-volumizer] use of color images
> > >
> > > > Hello praveen,
> > > >  i would like to confirm if volumizer can
> directly display the RGB
> > > > volume avaible in the form of 2D RGB slices
> since the manual hasnt
> > > > given any example for RGB. it would be really
> helpful for new comers
> > > > like me if you could include one RGB volume
> example in the manual.
> > > >
> > > > Thanks
> > > >
> > > > -Abhijit
> > >
> > >
> 
> 



		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 

--0-575619357-1101174388=:62334
Content-Type: text/plain; name="glut.cxx"
Content-Description: glut.cxx
Content-Disposition: inline; filename="glut.cxx"

// Copyright © 2002 Silicon Graphics, Inc.  All Rights Reserved.
// 
// The recipient ("Recipient") of this software, including as modified
// ("Software") may reproduce, redistribute, use, and derive works from the
// Software without restriction, subject to the following conditions:
//
// · Redistribution of the Software in any form must reproduce this entire
// notice, including as modified in accordance with these provisions
// ("Notice");
//
// · Any Recipient who modifies and subsequently redistributes the Software
// shall add information to this Notice to sufficiently identify the
// Recipient's modifications;
//
// · Recipient may not use the name(s) of any previous Recipient to endorse
// or promote any products derived from the Software without prior express
// written permission from such previous Recipient.
//
// THE SOFTWARE IS PROVIDED "AS IS," WITHOUT ANY EXPRESS OR IMPLIED
// WARRANTY OR CONDITION, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OR
// CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
// PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  PATENT LICENSES, IF ANY,
// PROVIDED HEREIN DO NOT APPLY TO COMBINATIONS OF THIS PROGRAM WITH OTHER
// SOFTWARE, OR ANY OTHER PRODUCT WHATSOEVER.  IN NO EVENT WILL THE
// ORIGINATOR OR SUBSEQUENT RECIPIENT OF THE SOFTWARE BE LIABLE FOR ANY
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES ARISING IN RELATION TO THE SOFTWARE, ITS USE, OR THESE
// PROVISIONS, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR NEGLIGENCE OR OTHER TORT, EVEN IF
// PRE-ADVISED OF THE PROSPECT OF SUCH DAMAGES.
//
// This Software was developed at private expense; if acquired under an
// agreement with the USA government or any contractor thereto, it is
// acquired as "commercial computer software" subject to the provisions of
// this license agreement, as specified in (a) 48 CFR 12.212 of the FAR;
// or, if acquired for Department of Defense units, (b) 48 CFR 227-7202 of
// the DoD FAR Supplement; or sections succeeding thereto.
// 
// Originator:  Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, Mountain
// View, CA  94043.  http://www.sgi.com
 
// % CC -o glut.o glut.cxx -c -I/usr/share/Volumizer2/src/lib
// % CC -o viewer glut.o  -L/usr/share/Volumizer2/lib/ -lvz -lvzLoaders  -lglut -lGLU -lGL -lXmu -lX11 

///////////////////////
// glut.cxx
//////////////////////

// Include windows.h before including anything else if on windows.
#ifdef _WINDOWS
#include <windows.h>
#endif

// C / C++
#include <stdlib.h>
// Include appropriate iostream header depending upon platform
#ifdef _WINDOWS
#include <iostream>
using namespace std;
#else
#include <iostream.h>
#endif

// OpenGL
#include <GL/gl.h>
#include <GL/glut.h>

// IFL
#include <loaders/RawLoader.h> 

// Volumizer2
#include <Volumizer2/Version.h>
#include <Volumizer2/Shape.h>
#include <Volumizer2/Block.h>
#include <Volumizer2/Appearance.h>
#include <Volumizer2/ParameterVolumeTexture.h>
#include <Volumizer2/TMRenderAction.h>
#include <Volumizer2/TMSimpleShader.h>




// Global variables 
vzShape *shape = NULL;
vzTMRenderAction *renderAction = NULL;
GLint viewport[4];
int lastPosition[2] = {0, 0};
float angles[2]     = {0, 0}, lastAngles[2] = {0, 0};

//////////////////////// Volumizer //////////////////////////////

// loadVolumeData - Load the volume data and initialize the shape node.
void loadVolumeData()
{
    // Print the volumizer version string
    cerr<<vzGetVersionString()<<endl;

    // Create a data loader
    int dm[3] = {32, 32, 32};
    // fake the data
    unsigned char data[32*32*2];
    for( int i=0; i<32; i++) {
      for (int j=0; j<32; j++) {
	for(int k=0; k<32; k++) {
	  if ( i>10 && i<20 && j>10 && j<20&& k>10 && k<20 ) {
	    data[2*(32*i+j)] = 60;
	    data[2*(32*i+j)+1] = 60;
	  }
	  else {
	    data[2*(32*i+j)] = 20;
	    data[2*(32*i+j)+1] = 20;
	  }
	}
      }
    }
    vzParameterVolumeTexture *volume =
      new vzParameterVolumeTexture(dm, data,
				   VZ_BYTE, 
				   VZ_LUMINANCE_ALPHA, 
				   VZ_LUMINANCE8_ALPHA8);

    // Initialize appearance
    vzShader *shader = new vzTMSimpleShader();
    vzAppearance *appearance = new vzAppearance(shader);
    shader->unref();
    appearance->setParameter("volume", volume);
    volume->unref();

    // Initialize geometry
    vzGeometry *geometry = new vzBlock();
    
    // Initialize shape node
    shape = new vzShape(geometry, appearance);
    geometry->unref();
    appearance->unref();
    

    if(!renderAction) {
      // Initialize the render action
      renderAction = new vzTMRenderAction(1);
      renderAction->manage(shape);
    }
}

// Draw the volume data
void renderVolumeData()
{
  // Begin drawing
  renderAction->beginDraw(VZ_RESTORE_GL_STATE_BIT);
  renderAction->draw(shape);
  renderAction->endDraw();
}

// Cleanup up the shape node and the render action
void cleanup() 
{
    // Delete the render action and unref() the shape node
    renderAction->unmanage(shape);
    delete renderAction;
    shape->unref();
}

/////////////////////// GLUT callback functions///////////////////

// glutDisplayFunc() callback function
void display()
{
    glClear(GL_COLOR_BUFFER_BIT);
    
    // Viewport
    glViewport(viewport[0], viewport[1], viewport[2], viewport[3]);
    
    // Projection matrix
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    glOrtho(-1.2, 1.2, -1.2, 1.2, -1.2, 1.2);
    
    // Modelview matrix
    glMatrixMode(GL_MODELVIEW);
    glLoadIdentity();
    glRotated( 90 + angles[1], 1, 0, 0);
    glRotated(180 + angles[0], 0, 0, 1);
    glScalef(1.5, 1.5, 1.5);
    glTranslatef(- 0.5, - 0.5, - 0.5);
    
    // rendering surface shape
    glEnable(GL_DEPTH_TEST);
    glColor3f(1.0,1.0,0.0);
   glutSolidSphere(0.1, 10, 10);
    glColor3f(1.0,0.0,0.0);
    glTranslatef(0.2, 0, 0);
    glutSolidSphere(0.6, 10, 10);

    // restore the color
    glColor3f(1.0,1.0,1.0);

    // Enable back-to-front alpha blending
    glEnable(GL_BLEND);
    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

    // Render the volume data
    renderVolumeData();
    glutSwapBuffers();
}

// glutKeyboardFunc() callback function
void keyboard(unsigned char key, int x, int y)
{
    switch (key) {
    case 27:
        cleanup();
	exit(0);
    }
}

// glutReshapeFunc() callback function
void reshape(int width, int height)
{
    // Update viewport
    viewport[0] = 0;      viewport[1] = 0;
    viewport[2] = width;  viewport[3] = height;
    glutPostRedisplay();
}

// glutMouseFunc() callback function
void mouse(int button, int state, int x, int y)
{
    if (state == GLUT_DOWN) {
        lastPosition[0] = x;
        lastPosition[1] = y;
        lastAngles[0] = angles[0];
        lastAngles[1] = angles[1];
    }
}

// glutMotionFunc() callback function
void motion(int x, int y)
{
    angles[0] = lastAngles[0] + (lastPosition[0] - x) / 4.0;
    angles[1] = lastAngles[1] + (y - lastPosition[1]) / 4.0;
    glutPostRedisplay();
}

// main
int main(int argc, char *argv[])
{
//    if(argc < 2) {
//      cerr<<"Usage: "<<argv[0]<<" <filename>"<<endl;
//      exit(0);
//    } 
   
   glutInit(&argc, argv);
   loadVolumeData();
   
   // Initialize window
   glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
   glutCreateWindow("Simple Volume Viewer");
   
   // Initialize callbacks
   glutDisplayFunc(display);
   glutReshapeFunc(reshape);
   glutKeyboardFunc(keyboard);
   glutMouseFunc(mouse);
   glutMotionFunc(motion);
   
   glutMainLoop();
   
   return 1;
}

--0-575619357-1101174388=:62334
Content-Type: application/octet-stream; name="error.msg"
Content-Transfer-Encoding: base64
Content-Description: error.msg
Content-Disposition: attachment; filename="error.msg"

R05VIERERCAzLjMuMSAoaTM4Ni1yZWRoYXQtbGludXgtZ251KSwgYnkgRG9y
b3RoZWEgTPx0a2VoYXVzIGFuZCBBbmRyZWFzIFplbGxlci4KQ29weXJpZ2h0
IKkgMTk5NS0xOTk5IFRlY2huaXNjaGUgVW5pdmVyc2l05HQgQnJhdW5zY2h3
ZWlnLCBHZXJtYW55LgpDb3B5cmlnaHQgqSAxOTk5LTIwMDEgVW5pdmVyc2l0
5HQgUGFzc2F1LCBHZXJtYW55LgpVc2luZyBob3N0IGxpYnRocmVhZF9kYiBs
aWJyYXJ5ICIvbGliL3Rscy9saWJ0aHJlYWRfZGIuc28uMSIuCihnZGIpIHJ1
bgpbVGhyZWFkIGRlYnVnZ2luZyB1c2luZyBsaWJ0aHJlYWRfZGIgZW5hYmxl
ZF0KW05ldyBUaHJlYWQgLTEyMzQ5ODMyNjQgKExXUCA1MDc1KV0KSW5pdGlh
bGl6aW5nIGRlYnVnIExldmVsIHRvOiA1ClZvbHVtaXplciAoMyk6ID09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpW
b2x1bWl6ZXIgKDMpOiBDaGVja2luZyBmb3IgJ3ZvbHVtaXplcl9saW51eCcg
bGljZW5zZQpWb2x1bWl6ZXIgKDEpOiA9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KVm9sdW1pemVyICgxKTogPSAg
ICAgICAgICAgICBPcGVuR0wgVm9sdW1pemVyIDIuNyAgICAgICAgICAgICA9
ClZvbHVtaXplciAoMSk6ID0gICAgICAgICAgICAgICAgIEZVTEwgRURJVElP
TiAgICAgICAgICAgICAgICAgPQpWb2x1bWl6ZXIgKDEpOiA9PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KVm9sdW1p
emVyIE1SIDIuNywgQnVpbGQgIzEgKERhdGU6IEp1bCAxNSAyMDA0IDA2OjMx
KQoKVm9sdW1pemVyICg0KTogT2JqZWN0IDgwNTBjYjAgcmVmKCkgLT4gUmVm
IGNvdW50ID0gMgpWb2x1bWl6ZXIgKDQpOiBPYmplY3QgODA1MGNiMCB1bnJl
ZigpIC0+IFJlZiBjb3VudCA9IDEKVm9sdW1pemVyICg0KTogT2JqZWN0IDgw
NTBiYjggcmVmKCkgLT4gUmVmIGNvdW50ID0gMgpWb2x1bWl6ZXIgKDQpOiBP
YmplY3QgODA1MGJiOCB1bnJlZigpIC0+IFJlZiBjb3VudCA9IDEKVm9sdW1p
emVyICg0KTogT2JqZWN0IDgwNTIwMTggcmVmKCkgLT4gUmVmIGNvdW50ID0g
MgpWb2x1bWl6ZXIgKDQpOiBPYmplY3QgODA1MGQxMCByZWYoKSAtPiBSZWYg
Y291bnQgPSAyClZvbHVtaXplciAoNCk6IE9iamVjdCA4MDUyMDE4IHVucmVm
KCkgLT4gUmVmIGNvdW50ID0gMQpWb2x1bWl6ZXIgKDQpOiBPYmplY3QgODA1
MGQxMCB1bnJlZigpIC0+IFJlZiBjb3VudCA9IDEKVm9sdW1pemVyICgyKTog
TlVMTCBHTFhDb250ZXh0LiBDcmVhdGluZyBkdW1teSBjb250ZXh0ISEhClZv
bHVtaXplciAoNSk6IENsaWVudCBhdHRyaWJ1dGUgc3RhY2sgbWF4aW11bSBk
ZXB0aCA9IDE2ClZvbHVtaXplciAoNCk6IFZlbmRvciBzdHJpbmcgPSBOVklE
SUEgQ29ycG9yYXRpb24KVm9sdW1pemVyICg0KTogUmVuZGVyZXIgc3RyaW5n
ID0gR2VGb3JjZSA2ODAwIEdUL0FHUC9TU0UyClZvbHVtaXplciAoMik6IE5W
SURJQSBHZUZvcmNlIGdyYXBoaWNzClZvbHVtaXplciAoNSk6IHZ6UGxhdGZv
cm1JbmZvOjp2elBsYXRmb3JtSW5mbygpOiBBUkJJbWFnaW5nID0geWVzClZv
bHVtaXplciAoNSk6IHZ6UGxhdGZvcm1JbmZvOjp2elBsYXRmb3JtSW5mbygp
OiBBUkJGcmFnbWVudFByb2dyYW0gPSB5ZXMKVm9sdW1pemVyICg1KTogdnpQ
bGF0Zm9ybUluZm86OnZ6UGxhdGZvcm1JbmZvKCk6IEFSQlZlcnRleFByb2dy
YW0gPSB5ZXMKVm9sdW1pemVyICg1KTogdnpQbGF0Zm9ybUluZm86OnZ6UGxh
dGZvcm1JbmZvKCk6IEFUSUZyYWdtZW50U2hhZGVyID0gbm8KVm9sdW1pemVy
ICg1KTogdnpQbGF0Zm9ybUluZm86OnZ6UGxhdGZvcm1JbmZvKCk6IFNHSVRl
eHR1cmVDb2xvclRhYmxlID0gbm8KVm9sdW1pemVyICg1KTogdnpQbGF0Zm9y
bUluZm86OnZ6UGxhdGZvcm1JbmZvKCk6IFNHSUNvbG9yTWF0cml4ID0gbm8K
Vm9sdW1pemVyICgzKTogVE1GcmFnbWVudFNoYWRlcjo6VE1GcmFnbWVudFNo
YWRlcigpOiBOVUxMIFByb2MgYWRkcmVzc2VzIGZvciBHTF9BVElfZnJhZ21l
bnRfc2hhZGVyIGVudHJ5IHBvaW50cwpWb2x1bWl6ZXIgKDMpOiBUTUZyYWdt
ZW50U2hhZGVyOjpUTUZyYWdtZW50U2hhZGVyKCk6IEdMX0FSQl9mcmFnbWVu
dF9wcm9ncmFtIHN1cHBvcnRlZApWb2x1bWl6ZXIgKDMpOiB2elJlbmRlckFj
dGlvbjo6bWFuYWdlIDogTnVtYmVyIG9mIHNoYXBlcyBjdXJyZW50bHkgbWFu
YWdlZCA9IDAKVm9sdW1pemVyICgzKTogU2hhcGUgODA1MjBlOCBoYXMgMSB2
b2x1bWUgdGV4dHVyZXMKVm9sdW1pemVyICgzKTogVG90YWwgc2l6ZSBmb3Ig
YWxsIHRoZSB0ZXh0dXJlcyA9IDMyNzY4LCBtYXhpbXVtIHRleHR1cmUgbWVt
b3J5ID0gMApWb2x1bWl6ZXIgKDQpOiBPYmplY3QgODA1MjBlOCByZWYoKSAt
PiBSZWYgY291bnQgPSAyClZvbHVtaXplciAoNCk6IE9iamVjdCA4MDUwZDEw
IHJlZigpIC0+IFJlZiBjb3VudCA9IDIKVm9sdW1pemVyICg0KTogT2JqZWN0
IDgwNTBjYjAgcmVmKCkgLT4gUmVmIGNvdW50ID0gMgpWb2x1bWl6ZXIgKDQp
OiBPYmplY3QgODA1MGJiOCByZWYoKSAtPiBSZWYgY291bnQgPSAyClZvbHVt
aXplciAoNSk6IGdsVGV4SW1hZ2UzZCBjYWxsZWQgZm9yICgzMiwgMzIsIDMy
KSB0ZXh0dXJlLCBvYmplY3QgZGltcyAoMTYsIDMyLCAzMiksIElEID0gMQoK
UHJvZ3JhbSByZWNlaXZlZCBzaWduYWwgU0lHU0VHViwgU2VnbWVudGF0aW9u
IGZhdWx0LgpbU3dpdGNoaW5nIHRvIFRocmVhZCAtMTIzNDk4MzI2NCAoTFdQ
IDUwNzUpXQoweGI2NzgwODI0IGluIF9udjAwMTE4OWdsICgpIGZyb20gL3Vz
ci9saWIvbGliR0xjb3JlLnNvLjEKCg==

--0-575619357-1101174388=:62334--

From info-volumizer-owner@els.sgi.com Tue Nov 23 05:52:36 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iANDqGta4312785;
	Tue, 23 Nov 2004 05:52:16 -0800 (PST)
Received: from mrcoffee.engr.sgi.com (mrcoffee.engr.sgi.com [192.102.96.154])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iANDnKva4000955
	for <info-volumizer@els.sgi.com>; Tue, 23 Nov 2004 05:49:22 -0800 (PST)
Received: from praveenlaptop (mtv-vpn-sw-corp-0-113.corp.sgi.com [134.15.0.113])
	by mrcoffee.engr.sgi.com (SGI-8.12.5/8.12.5) with SMTP id iANDnJeF1806884
	for <info-volumizer@els.sgi.com>; Tue, 23 Nov 2004 05:49:19 -0800 (PST)
Message-ID: <01ab01c4d163$3b38c440$0402a8c0@praveenlaptop>
From: "Praveen Bhaniramka" <praveenb@sgi.com>
To: <info-volumizer@els.sgi.com>
References: <fafba5fe04111813427855c3c3@mail.gmail.com> <003901c4cdc4$d4818a80$5e5a0e86@praveenlaptop> <fafba5fe041120000932077cb3@mail.gmail.com> <002901c4cee4$6cfc35b0$5e5a0e86@praveenlaptop> <fafba5fe04112109564101db94@mail.gmail.com>
Subject: Re: [info-volumizer] use of color images
Date: Tue, 23 Nov 2004 19:19:19 +0530
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Abhijit,

Clip-textures are NOT supported on Windows right now! Can you please give me
the system info and debug messages output by Volumizer? We will try and test
this out on our end and make sure that it is not a Volumizer bug or if it a
bug with the graphics driver vendor, we can workaround that inside
Volumizer.

Theoretically, if you have enough main memory on the system, you _should_ be
able to load and render _any sized_ volume data at the original resolution
with Volumizer (the performance, of course, would be determined by various
factors such as graphics memory size, bus speed, etc).

- Praveen

----- Original Message -----
From: "Abhijit Lothe" <alothe@gmail.com>
To: <info-volumizer@els.sgi.com>
Sent: Sunday, November 21, 2004 11:26 PM
Subject: Re: [info-volumizer] use of color images


> Thanks Praveen,
>  It worked after reducing the size of the dataset. I guess i will have
> to use the clip texture to load the volume now. Thanks a lot for your
> help
>
> Regards
> Abhijit
>
>
> On Sat, 20 Nov 2004 15:06:34 +0530, Praveen Bhaniramka <praveenb@sgi.com>
wrote:
> > Hi again,
> >
> > I am not sure what you mean by "stored as a 1-D array of unsigned char
with
> > dimensions 1024 X 1768 X 3". I assume that you mean 1024 X 1768 x 49
with 3
> > bytes each? The run-time error could be any number of reasons. Please
try
> > the following -
> >
> >    - Test your app with a smaller RGB data set (say 256 x  256 x 256) to
> > rule out the use of RGB data as the cause of the error.
> >    -  Make sure that system has enough memory for the data set to fit.
> >    - Look for errors reported by Volumizer. If there is an internal
error
> > inside Volumizer, it calls the vzError::error() method, which prints an
> > error string to the console and calls abort. Run your app from a
console,
> > and look at the error message for the source of the error.
> >    - Volumizer uses an environment variable VOLUMIZER_DEBUG_LEVEL to
print
> > out debug messages to the console. The higher the value, more the debug
> > messages printed. That is another useful source of information for
possible
> > cause of the error.
> >
> > Of course, if the error or debug messages don't make any sense, you can
send
> > them our way and we will try to take a look :) If you do so, please also
> > send more information about the system configuration, like memory size,
> > graphics card and driver version, etc.
> >
> > Cheers,
> >
> >
> > Praveen
> >
> > ----- Original Message -----
> > From: "Abhijit Lothe" <alothe@gmail.com>
> > To: <info-volumizer@els.sgi.com>
> > Sent: Saturday, November 20, 2004 1:39 PM
> > Subject: Re: [info-volumizer] use of color images
> >
> > > Thanks Praveen.
> > > I am facing a problem using the RGB data. I am creating
> > > vzParameterVolumeTexture object with an RGB data. The data was created
> > > by reading 49 2-D TIFF images each of size 1024 X 1768 . They have 3
> > > samples per pixel with 8 bits per sample.
> > > I passed VZ_UNSIGNED_BYTE as the texture type and VZ_RGB as the
> > > external type. My data is stored as a 1-D array of unsigned char with
> > > dimensions 1024 X 1768 X 3. I used simple TM renderer and simple TM
> > > shader to display the volume. But it gives runtime error and program
> > > does not run. I am running it on windows platform (XP). I was not able
> > > to figure out the error since it seems to be coming from the draw
> > > function of vzTMRenderAction. Could you please help me in this matter.
> > >
> > > Thanks .
> > > Regards
> > > Abhijit
> > >
> > >
> > > On Fri, 19 Nov 2004 04:47:52 +0530, Praveen Bhaniramka
<praveenb@sgi.com>
> > wrote:
> > > > Abhijit,
> > > >
> > > > Volumizer's rendering pipeline does not distinguish between the data
> > format
> > > > and data type of the volume data. Hence once you have passed the
volume
> > data
> > > > to Volumizer, you can render RGB data sets in the same way as
LUMINANCE
> > or
> > > > RGBA datasets.
> > > >
> > > > However, it is important to note that RGB data sets do not have any
> > > > transparency associated with them. The rendered image might not
> > necessarily
> > > > be what you would expect with typical LUMINANCE or RGBA data sets.
So,
> > if
> > > > you need alpha, depending on your graphics hardware, your best bet
might
> > be
> > > > to try and use a shader which introduces alpha in the final rendered
> > image
> > > > (using a fragment program, for example). If you don't care about
alpha,
> > you
> > > > should be just fine using the default rendering pipeline.
> > > >
> > > > hth,
> > > > Praveen
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Abhijit Lothe" <alothe@gmail.com>
> > > > To: "volumizer mailing list" <info-volumizer@els.sgi.com>
> > > > Sent: Friday, November 19, 2004 3:12 AM
> > > > Subject: [info-volumizer] use of color images
> > > >
> > > > > Hello praveen,
> > > > >  i would like to confirm if volumizer can directly display the RGB
> > > > > volume avaible in the form of 2D RGB slices since the manual hasnt
> > > > > given any example for RGB. it would be really helpful for new
comers
> > > > > like me if you could include one RGB volume example in the manual.
> > > > >
> > > > > Thanks
> > > > >
> > > > > -Abhijit
> > > >
> > > >
> >
> >


From info-volumizer-owner@els.sgi.com Tue Nov 23 06:03:18 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iANE2naI4330441;
	Tue, 23 Nov 2004 06:02:49 -0800 (PST)
Received: from mrcoffee.engr.sgi.com (mrcoffee.engr.sgi.com [192.102.96.154])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iANE1rva4333879
	for <info-volumizer@els.sgi.com>; Tue, 23 Nov 2004 06:01:56 -0800 (PST)
Received: from praveenlaptop (mtv-vpn-sw-corp-0-113.corp.sgi.com [134.15.0.113])
	by mrcoffee.engr.sgi.com (SGI-8.12.5/8.12.5) with SMTP id iANE1qeF1807185
	for <info-volumizer@els.sgi.com>; Tue, 23 Nov 2004 06:01:53 -0800 (PST)
Message-ID: <01e601c4d164$fc3b3550$0402a8c0@praveenlaptop>
From: "Praveen Bhaniramka" <praveenb@sgi.com>
To: <info-volumizer@els.sgi.com>
References: <20041123014628.65624.qmail@web54508.mail.yahoo.com>
Subject: Re: [info-volumizer] use of color images
Date: Tue, 23 Nov 2004 19:31:52 +0530
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Yanhong,

1. You don't seem to be allocating enough memory for the volume data. The
size should be -
    32 * 32 * 32 * 2 * sizeof(unsigned char);

2. It is not a good idea in general to pass locally declared arrays to the
vzParameterVolumeTexture class as the data ptr (or to any other class in
Volumizer which requires you to pass a data pointer). Chances are, that once
your code reaches the renderAction->draw(), this memory has already been
free'd!

- Praveen

----- Original Message -----
From: "Yanhong Li" <yanhong64@yahoo.com>
To: <info-volumizer@els.sgi.com>
Sent: Tuesday, November 23, 2004 7:16 AM
Subject: Re: [info-volumizer] use of color images


>
> I have the same problem. I faked a 32x32x32 cube
> texture as the input of  volumizer sample
> code(/usr/share/Volumizer2/src/apps/simple/pguide/gult.cxx).
> The program coredumped. Attached is the code and the
> error message with VOLUMIZER_DEBUG_LEVEL set to 5. The
> original code runs fine.
>
> The gfx card I used is Nvidia GeForce6800 GT with
> 256MB memory os is Redhat Enterprise WS3.
>
> Thanks for help,
>
> Yanhong
> --
> --- Praveen Bhaniramka <praveenb@sgi.com> wrote:
>
> > Hi again,
> >
> > I am not sure what you mean by "stored as a 1-D
> > array of unsigned char with
> > dimensions 1024 X 1768 X 3". I assume that you mean
> > 1024 X 1768 x 49 with 3
> > bytes each? The run-time error could be any number
> > of reasons. Please try
> > the following -
> >
> >     - Test your app with a smaller RGB data set (say
> > 256 x  256 x 256) to
> > rule out the use of RGB data as the cause of the
> > error.
> >     -  Make sure that system has enough memory for
> > the data set to fit.
> >     - Look for errors reported by Volumizer. If
> > there is an internal error
> > inside Volumizer, it calls the vzError::error()
> > method, which prints an
> > error string to the console and calls abort. Run
> > your app from a console,
> > and look at the error message for the source of the
> > error.
> >     - Volumizer uses an environment variable
> > VOLUMIZER_DEBUG_LEVEL to print
> > out debug messages to the console. The higher the
> > value, more the debug
> > messages printed. That is another useful source of
> > information for possible
> > cause of the error.
> >
> > Of course, if the error or debug messages don't make
> > any sense, you can send
> > them our way and we will try to take a look :) If
> > you do so, please also
> > send more information about the system
> > configuration, like memory size,
> > graphics card and driver version, etc.
> >
> > Cheers,
> > Praveen
> >
> > ----- Original Message -----
> > From: "Abhijit Lothe" <alothe@gmail.com>
> > To: <info-volumizer@els.sgi.com>
> > Sent: Saturday, November 20, 2004 1:39 PM
> > Subject: Re: [info-volumizer] use of color images
> >
> >
> > > Thanks Praveen.
> > > I am facing a problem using the RGB data. I am
> > creating
> > > vzParameterVolumeTexture object with an RGB data.
> > The data was created
> > > by reading 49 2-D TIFF images each of size 1024 X
> > 1768 . They have 3
> > > samples per pixel with 8 bits per sample.
> > > I passed VZ_UNSIGNED_BYTE as the texture type and
> > VZ_RGB as the
> > > external type. My data is stored as a 1-D array of
> > unsigned char with
> > > dimensions 1024 X 1768 X 3. I used simple TM
> > renderer and simple TM
> > > shader to display the volume. But it gives runtime
> > error and program
> > > does not run. I am running it on windows platform
> > (XP). I was not able
> > > to figure out the error since it seems to be
> > coming from the draw
> > > function of vzTMRenderAction. Could you please
> > help me in this matter.
> > >
> > > Thanks .
> > > Regards
> > > Abhijit
> > >
> > >
> > > On Fri, 19 Nov 2004 04:47:52 +0530, Praveen
> > Bhaniramka <praveenb@sgi.com>
> > wrote:
> > > > Abhijit,
> > > >
> > > > Volumizer's rendering pipeline does not
> > distinguish between the data
> > format
> > > > and data type of the volume data. Hence once you
> > have passed the volume
> > data
> > > > to Volumizer, you can render RGB data sets in
> > the same way as LUMINANCE
> > or
> > > > RGBA datasets.
> > > >
> > > > However, it is important to note that RGB data
> > sets do not have any
> > > > transparency associated with them. The rendered
> > image might not
> > necessarily
> > > > be what you would expect with typical LUMINANCE
> > or RGBA data sets. So,
> > if
> > > > you need alpha, depending on your graphics
> > hardware, your best bet might
> > be
> > > > to try and use a shader which introduces alpha
> > in the final rendered
> > image
> > > > (using a fragment program, for example). If you
> > don't care about alpha,
> > you
> > > > should be just fine using the default rendering
> > pipeline.
> > > >
> > > > hth,
> > > > Praveen
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Abhijit Lothe" <alothe@gmail.com>
> > > > To: "volumizer mailing list"
> > <info-volumizer@els.sgi.com>
> > > > Sent: Friday, November 19, 2004 3:12 AM
> > > > Subject: [info-volumizer] use of color images
> > > >
> > > > > Hello praveen,
> > > > >  i would like to confirm if volumizer can
> > directly display the RGB
> > > > > volume avaible in the form of 2D RGB slices
> > since the manual hasnt
> > > > > given any example for RGB. it would be really
> > helpful for new comers
> > > > > like me if you could include one RGB volume
> > example in the manual.
> > > > >
> > > > > Thanks
> > > > >
> > > > > -Abhijit
> > > >
> > > >
> >
> >
>
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com
>
>


----------------------------------------------------------------------------
----


> // Copyright © 2002 Silicon Graphics, Inc.  All Rights Reserved.
> //
> // The recipient ("Recipient") of this software, including as modified
> // ("Software") may reproduce, redistribute, use, and derive works from
the
> // Software without restriction, subject to the following conditions:
> //
> // · Redistribution of the Software in any form must reproduce this entire
> // notice, including as modified in accordance with these provisions
> // ("Notice");
> //
> // · Any Recipient who modifies and subsequently redistributes the
Software
> // shall add information to this Notice to sufficiently identify the
> // Recipient's modifications;
> //
> // · Recipient may not use the name(s) of any previous Recipient to
endorse
> // or promote any products derived from the Software without prior express
> // written permission from such previous Recipient.
> //
> // THE SOFTWARE IS PROVIDED "AS IS," WITHOUT ANY EXPRESS OR IMPLIED
> // WARRANTY OR CONDITION, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OR
> // CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
> // PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  PATENT LICENSES, IF ANY,
> // PROVIDED HEREIN DO NOT APPLY TO COMBINATIONS OF THIS PROGRAM WITH OTHER
> // SOFTWARE, OR ANY OTHER PRODUCT WHATSOEVER.  IN NO EVENT WILL THE
> // ORIGINATOR OR SUBSEQUENT RECIPIENT OF THE SOFTWARE BE LIABLE FOR ANY
> // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
> // DAMAGES ARISING IN RELATION TO THE SOFTWARE, ITS USE, OR THESE
> // PROVISIONS, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> // CONTRACT, STRICT LIABILITY, OR NEGLIGENCE OR OTHER TORT, EVEN IF
> // PRE-ADVISED OF THE PROSPECT OF SUCH DAMAGES.
> //
> // This Software was developed at private expense; if acquired under an
> // agreement with the USA government or any contractor thereto, it is
> // acquired as "commercial computer software" subject to the provisions of
> // this license agreement, as specified in (a) 48 CFR 12.212 of the FAR;
> // or, if acquired for Department of Defense units, (b) 48 CFR 227-7202 of
> // the DoD FAR Supplement; or sections succeeding thereto.
> //
> // Originator:  Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, Mountain
> // View, CA  94043.  http://www.sgi.com
>
> // % CC -o glut.o glut.cxx -c -I/usr/share/Volumizer2/src/lib
> // % CC -o viewer
lut.o  -L/usr/share/Volumizer2/lib/ -lvz -lvzLoaders  -lglut -lGLU -lGL -lXm
u -lX11
>
> ///////////////////////
> // glut.cxx
> //////////////////////
>
> // Include windows.h before including anything else if on windows.
> #ifdef _WINDOWS
> #include <windows.h>
> #endif
>
> // C / C++
> #include <stdlib.h>
> // Include appropriate iostream header depending upon platform
> #ifdef _WINDOWS
> #include <iostream>
> using namespace std;
> #else
> #include <iostream.h>
> #endif
>
> // OpenGL
> #include <GL/gl.h>
> #include <GL/glut.h>
>
> // IFL
> #include <loaders/RawLoader.h>
>
> // Volumizer2
> #include <Volumizer2/Version.h>
> #include <Volumizer2/Shape.h>
> #include <Volumizer2/Block.h>
> #include <Volumizer2/Appearance.h>
> #include <Volumizer2/ParameterVolumeTexture.h>
> #include <Volumizer2/TMRenderAction.h>
> #include <Volumizer2/TMSimpleShader.h>
>
>
>
>
> // Global variables
> vzShape *shape = NULL;
> vzTMRenderAction *renderAction = NULL;
> GLint viewport[4];
> int lastPosition[2] = {0, 0};
> float angles[2]     = {0, 0}, lastAngles[2] = {0, 0};
>
> //////////////////////// Volumizer //////////////////////////////
>
> // loadVolumeData - Load the volume data and initialize the shape node.
> void loadVolumeData()
> {
>     // Print the volumizer version string
>     cerr<<vzGetVersionString()<<endl;
>
>     // Create a data loader
>     int dm[3] = {32, 32, 32};
>     // fake the data
>     unsigned char data[32*32*2];
>     for( int i=0; i<32; i++) {
>       for (int j=0; j<32; j++) {
> for(int k=0; k<32; k++) {
>   if ( i>10 && i<20 && j>10 && j<20&& k>10 && k<20 ) {
>     data[2*(32*i+j)] = 60;
>     data[2*(32*i+j)+1] = 60;
>   }
>   else {
>     data[2*(32*i+j)] = 20;
>     data[2*(32*i+j)+1] = 20;
>   }
> }
>       }
>     }
>     vzParameterVolumeTexture *volume =
>       new vzParameterVolumeTexture(dm, data,
>    VZ_BYTE,
>    VZ_LUMINANCE_ALPHA,
>    VZ_LUMINANCE8_ALPHA8);
>
>     // Initialize appearance
>     vzShader *shader = new vzTMSimpleShader();
>     vzAppearance *appearance = new vzAppearance(shader);
>     shader->unref();
>     appearance->setParameter("volume", volume);
>     volume->unref();
>
>     // Initialize geometry
>     vzGeometry *geometry = new vzBlock();
>
>     // Initialize shape node
>     shape = new vzShape(geometry, appearance);
>     geometry->unref();
>     appearance->unref();
>
>
>     if(!renderAction) {
>       // Initialize the render action
>       renderAction = new vzTMRenderAction(1);
>       renderAction->manage(shape);
>     }
> }
>
> // Draw the volume data
> void renderVolumeData()
> {
>   // Begin drawing
>   renderAction->beginDraw(VZ_RESTORE_GL_STATE_BIT);
>   renderAction->draw(shape);
>   renderAction->endDraw();
> }
>
> // Cleanup up the shape node and the render action
> void cleanup()
> {
>     // Delete the render action and unref() the shape node
>     renderAction->unmanage(shape);
>     delete renderAction;
>     shape->unref();
> }
>
> /////////////////////// GLUT callback functions///////////////////
>
> // glutDisplayFunc() callback function
> void display()
> {
>     glClear(GL_COLOR_BUFFER_BIT);
>
>     // Viewport
>     glViewport(viewport[0], viewport[1], viewport[2], viewport[3]);
>
>     // Projection matrix
>     glMatrixMode(GL_PROJECTION);
>     glLoadIdentity();
>     glOrtho(-1.2, 1.2, -1.2, 1.2, -1.2, 1.2);
>
>     // Modelview matrix
>     glMatrixMode(GL_MODELVIEW);
>     glLoadIdentity();
>     glRotated( 90 + angles[1], 1, 0, 0);
>     glRotated(180 + angles[0], 0, 0, 1);
>     glScalef(1.5, 1.5, 1.5);
>     glTranslatef(- 0.5, - 0.5, - 0.5);
>
>     // rendering surface shape
>     glEnable(GL_DEPTH_TEST);
>     glColor3f(1.0,1.0,0.0);
>    glutSolidSphere(0.1, 10, 10);
>     glColor3f(1.0,0.0,0.0);
>     glTranslatef(0.2, 0, 0);
>     glutSolidSphere(0.6, 10, 10);
>
>     // restore the color
>     glColor3f(1.0,1.0,1.0);
>
>     // Enable back-to-front alpha blending
>     glEnable(GL_BLEND);
>     glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
>
>     // Render the volume data
>     renderVolumeData();
>     glutSwapBuffers();
> }
>
> // glutKeyboardFunc() callback function
> void keyboard(unsigned char key, int x, int y)
> {
>     switch (key) {
>     case 27:
>         cleanup();
> exit(0);
>     }
> }
>
> // glutReshapeFunc() callback function
> void reshape(int width, int height)
> {
>     // Update viewport
>     viewport[0] = 0;      viewport[1] = 0;
>     viewport[2] = width;  viewport[3] = height;
>     glutPostRedisplay();
> }
>
> // glutMouseFunc() callback function
> void mouse(int button, int state, int x, int y)
> {
>     if (state == GLUT_DOWN) {
>         lastPosition[0] = x;
>         lastPosition[1] = y;
>         lastAngles[0] = angles[0];
>         lastAngles[1] = angles[1];
>     }
> }
>
> // glutMotionFunc() callback function
> void motion(int x, int y)
> {
>     angles[0] = lastAngles[0] + (lastPosition[0] - x) / 4.0;
>     angles[1] = lastAngles[1] + (y - lastPosition[1]) / 4.0;
>     glutPostRedisplay();
> }
>
> // main
> int main(int argc, char *argv[])
> {
> //    if(argc < 2) {
> //      cerr<<"Usage: "<<argv[0]<<" <filename>"<<endl;
> //      exit(0);
> //    }
>
>    glutInit(&argc, argv);
>    loadVolumeData();
>
>    // Initialize window
>    glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
>    glutCreateWindow("Simple Volume Viewer");
>
>    // Initialize callbacks
>    glutDisplayFunc(display);
>    glutReshapeFunc(reshape);
>    glutKeyboardFunc(keyboard);
>    glutMouseFunc(mouse);
>    glutMotionFunc(motion);
>
>    glutMainLoop();
>
>    return 1;
> }
>


From info-volumizer-owner@els.sgi.com Tue Nov 23 20:06:25 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iAO45XIi4352710;
	Tue, 23 Nov 2004 20:05:33 -0800 (PST)
Received: from web54501.mail.yahoo.com (web54501.mail.yahoo.com [68.142.225.171])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with SMTP id iAO3J4va4339595
	for <info-volumizer@els.sgi.com>; Tue, 23 Nov 2004 19:19:05 -0800 (PST)
Received: (qmail 50277 invoked by uid 60001); 24 Nov 2004 03:19:03 -0000
Message-ID: <20041124031903.50275.qmail@web54501.mail.yahoo.com>
Received: from [65.173.1.35] by web54501.mail.yahoo.com via HTTP; Tue, 23 Nov 2004 19:19:02 PST
Date: Tue, 23 Nov 2004 19:19:02 -0800 (PST)
From: Yanhong Li <yanhong64@yahoo.com>
Subject: Re: [info-volumizer] use of color images
To: info-volumizer@els.sgi.com
In-Reply-To: <01e601c4d164$fc3b3550$0402a8c0@praveenlaptop>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com


Ops! That's a bug. So basicly the user needs to create
the memory he needs and clean it up when he finishes.

I changed the code and make the volume data as global
var with the correct size, but got Volumizer error at
creating 3D texture:
Volumizer (4): Object 8050cb0 ref() -> Ref count = 2
Volumizer (4): Object 8050cb0 unref() -> Ref count = 1
Volumizer (4): Object 8050bc8 ref() -> Ref count = 2
Volumizer (4): Object 8050bc8 unref() -> Ref count = 1
Volumizer (4): Object 8062138 ref() -> Ref count = 2
Volumizer (4): Object 8050d10 ref() -> Ref count = 2
Volumizer (4): Object 8062138 unref() -> Ref count = 1
Volumizer (4): Object 8050d10 unref() -> Ref count = 1
Volumizer (2): NULL GLXContext. Creating dummy
context!!!
Volumizer (5): Client attribute stack maximum depth =
16
Volumizer (4): Vendor string = NVIDIA Corporation
Volumizer (4): Renderer string = GeForce 6800
GT/AGP/SSE2
Volumizer (2): NVIDIA GeForce graphics
Volumizer (5): vzPlatformInfo::vzPlatformInfo():
ARBImaging = yes
Volumizer (5): vzPlatformInfo::vzPlatformInfo():
ARBFragmentProgram = yes
Volumizer (5): vzPlatformInfo::vzPlatformInfo():
ARBVertexProgram = yes
Volumizer (5): vzPlatformInfo::vzPlatformInfo():
ATIFragmentShader = no
Volumizer (5): vzPlatformInfo::vzPlatformInfo():
SGITextureColorTable = no
Volumizer (5): vzPlatformInfo::vzPlatformInfo():
SGIColorMatrix = no
Volumizer (3): TMFragmentShader::TMFragmentShader():
NULL Proc addresses for GL_ATI_fragment_shader entry
points
Volumizer (3): TMFragmentShader::TMFragmentShader():
GL_ARB_fragment_program supported
Volumizer (3): vzRenderAction::manage : Number of
shapes currently managed = 0
Volumizer (3): Shape 8062208 has 1 volume textures
Volumizer (3): Total size for all the textures =
32768, maximum texture memory = 0
Volumizer (4): Object 8062208 ref() -> Ref count = 2
Volumizer (4): Object 8050d10 ref() -> Ref count = 2
Volumizer (4): Object 8050cb0 ref() -> Ref count = 2
Volumizer (4): Object 8050bc8 ref() -> Ref count = 2
Volumizer (5): glTexImage3d called for (32, 32, 32)
texture, object dims (16, 32, 32), ID = 1
Volumizer Error: 
TMTextureManager::initializeTextureObject(): OpenGL
error calling glTexImage3DEXT: 1280, Texture =
8050bc8, data = 134867288, object = 809e920, ID = 1

Program received signal SIGABRT, Aborted.
[Switching to Thread -1234983264 (LWP 5546)]
0xb75ebc32 in _dl_sysinfo_int80 () from
/lib/ld-linux.so.2

What's the problem? It happened with
renderAction->beginDraw(). I also see the ref count is
2 before the crash, are there any memory problem also?

Many thanks,

Yanhong
--


--- Praveen Bhaniramka <praveenb@sgi.com> wrote:

> Yanhong,
> 
> 1. You don't seem to be allocating enough memory for
> the volume data. The
> size should be -
>     32 * 32 * 32 * 2 * sizeof(unsigned char);
> 
> 2. It is not a good idea in general to pass locally
> declared arrays to the
> vzParameterVolumeTexture class as the data ptr (or
> to any other class in
> Volumizer which requires you to pass a data
> pointer). Chances are, that once
> your code reaches the renderAction->draw(), this
> memory has already been
> free'd!
> 
> - Praveen
> 
> ----- Original Message -----
> From: "Yanhong Li" <yanhong64@yahoo.com>
> To: <info-volumizer@els.sgi.com>
> Sent: Tuesday, November 23, 2004 7:16 AM
> Subject: Re: [info-volumizer] use of color images
> 
> 
> >
> > I have the same problem. I faked a 32x32x32 cube
> > texture as the input of  volumizer sample
> >
>
code(/usr/share/Volumizer2/src/apps/simple/pguide/gult.cxx).
> > The program coredumped. Attached is the code and
> the
> > error message with VOLUMIZER_DEBUG_LEVEL set to 5.
> The
> > original code runs fine.
> >
> > The gfx card I used is Nvidia GeForce6800 GT with
> > 256MB memory os is Redhat Enterprise WS3.
> >
> > Thanks for help,
> >
> > Yanhong
> > --
> > --- Praveen Bhaniramka <praveenb@sgi.com> wrote:
> >
> > > Hi again,
> > >
> > > I am not sure what you mean by "stored as a 1-D
> > > array of unsigned char with
> > > dimensions 1024 X 1768 X 3". I assume that you
> mean
> > > 1024 X 1768 x 49 with 3
> > > bytes each? The run-time error could be any
> number
> > > of reasons. Please try
> > > the following -
> > >
> > >     - Test your app with a smaller RGB data set
> (say
> > > 256 x  256 x 256) to
> > > rule out the use of RGB data as the cause of the
> > > error.
> > >     -  Make sure that system has enough memory
> for
> > > the data set to fit.
> > >     - Look for errors reported by Volumizer. If
> > > there is an internal error
> > > inside Volumizer, it calls the vzError::error()
> > > method, which prints an
> > > error string to the console and calls abort. Run
> > > your app from a console,
> > > and look at the error message for the source of
> the
> > > error.
> > >     - Volumizer uses an environment variable
> > > VOLUMIZER_DEBUG_LEVEL to print
> > > out debug messages to the console. The higher
> the
> > > value, more the debug
> > > messages printed. That is another useful source
> of
> > > information for possible
> > > cause of the error.
> > >
> > > Of course, if the error or debug messages don't
> make
> > > any sense, you can send
> > > them our way and we will try to take a look :)
> If
> > > you do so, please also
> > > send more information about the system
> > > configuration, like memory size,
> > > graphics card and driver version, etc.
> > >
> > > Cheers,
> > > Praveen
> > >
> > > ----- Original Message -----
> > > From: "Abhijit Lothe" <alothe@gmail.com>
> > > To: <info-volumizer@els.sgi.com>
> > > Sent: Saturday, November 20, 2004 1:39 PM
> > > Subject: Re: [info-volumizer] use of color
> images
> > >
> > >
> > > > Thanks Praveen.
> > > > I am facing a problem using the RGB data. I am
> > > creating
> > > > vzParameterVolumeTexture object with an RGB
> data.
> > > The data was created
> > > > by reading 49 2-D TIFF images each of size
> 1024 X
> > > 1768 . They have 3
> > > > samples per pixel with 8 bits per sample.
> > > > I passed VZ_UNSIGNED_BYTE as the texture type
> and
> > > VZ_RGB as the
> > > > external type. My data is stored as a 1-D
> array of
> > > unsigned char with
> > > > dimensions 1024 X 1768 X 3. I used simple TM
> > > renderer and simple TM
> > > > shader to display the volume. But it gives
> runtime
> > > error and program
> > > > does not run. I am running it on windows
> platform
> > > (XP). I was not able
> > > > to figure out the error since it seems to be
> > > coming from the draw
> > > > function of vzTMRenderAction. Could you please
> > > help me in this matter.
> > > >
> > > > Thanks .
> > > > Regards
> > > > Abhijit
> > > >
> > > >
> > > > On Fri, 19 Nov 2004 04:47:52 +0530, Praveen
> > > Bhaniramka <praveenb@sgi.com>
> > > wrote:
> > > > > Abhijit,
> > > > >
> > > > > Volumizer's rendering pipeline does not
> > > distinguish between the data
> > > format
> > > > > and data type of the volume data. Hence once
> you
> > > have passed the volume
> > > data
> > > > > to Volumizer, you can render RGB data sets
> in
> > > the same way as LUMINANCE
> > > or
> > > > > RGBA datasets.
> > > > >
> > > > > However, it is important to note that RGB
> data
> > > sets do not have any
> > > > > transparency associated with them. The
> rendered
> > > image might not
> > > necessarily
> > > > > be what you would expect with typical
> LUMINANCE
> > > or RGBA data sets. So,
> > > if
> > > > > you need alpha, depending on your graphics
> > > hardware, your best bet might
> > > be
> > > > > to try and use a shader which introduces
> alpha
> > > in the final rendered
> > > image
> > > > > (using a fragment program, for example). If
> you
> > > don't care about alpha,
> > > you
> > > > > should be just fine using the default
> rendering
> > > pipeline.
> > > > >
> > > > > hth,
> > > > > Praveen
> > > > >
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Abhijit Lothe" <alothe@gmail.com>
> > > > > To: "volumizer mailing list"
> > > <info-volumizer@els.sgi.com>
> > > > > Sent: Friday, November 19, 2004 3:12 AM
> > > > > Subject: [info-volumizer] use of color
> images
> > > > >
> > > > > > Hello praveen,
> > > > > >  i would like to confirm if volumizer can
> > > directly display the RGB
> > > > > > volume avaible in the form of 2D RGB
> slices
> 
=== message truncated ===



		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

From info-volumizer-owner@els.sgi.com Tue Nov 23 20:06:25 2004
Received: (from majordom@localhost)
	by els.sgi.com (8.12.10/8.12.2/els-2.2) id iAO45XS84366270;
	Tue, 23 Nov 2004 20:05:33 -0800 (PST)
Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.200])
	by els.sgi.com (8.12.10/8.12.2/els-2.2) with ESMTP id iANMdBva4116300
	for <info-volumizer@els.sgi.com>; Tue, 23 Nov 2004 14:39:13 -0800 (PST)
Received: by rproxy.gmail.com with SMTP id g11so51324rne
        for <info-volumizer@els.sgi.com>; Tue, 23 Nov 2004 14:39:10 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references;
        b=ldCgieTPk/keHh4rzlH2XtTt4D3Dpb7gU669+YMB2s2Cjhma89g6StwSuCxjajcgtFw2UHKlsaEhfBzlvyvqdYuyXWYpw0JkTzeSXuzrMbaNpsA9Prpsbz3bT/iGjDA87G8Ac4VJpwJl9BlB8zwXtDD0gHmspaeuBxK7y9Zh1p8=
Received: by 10.38.162.76 with SMTP id k76mr77090rne;
        Tue, 23 Nov 2004 14:39:10 -0800 (PST)
Received: by 10.38.162.55 with HTTP; Tue, 23 Nov 2004 14:39:10 -0800 (PST)
Message-ID: <fafba5fe04112314394a26039@mail.gmail.com>
Date: Tue, 23 Nov 2004 17:39:10 -0500
From: Abhijit Lothe <alothe@gmail.com>
To: info-volumizer@els.sgi.com
Subject: Re: [info-volumizer] use of color images
In-Reply-To: <01ab01c4d163$3b38c440$0402a8c0@praveenlaptop>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
References: <fafba5fe04111813427855c3c3@mail.gmail.com>
	 <003901c4cdc4$d4818a80$5e5a0e86@praveenlaptop>
	 <fafba5fe041120000932077cb3@mail.gmail.com>
	 <002901c4cee4$6cfc35b0$5e5a0e86@praveenlaptop>
	 <fafba5fe04112109564101db94@mail.gmail.com>
	 <01ab01c4d163$3b38c440$0402a8c0@praveenlaptop>
Sender: owner-info-volumizer@els.sgi.com
Precedence: bulk
Reply-To: info-volumizer@els.sgi.com

Hi praveen,
Is it possible for us to get the clip texture addition? if so how
soon? Could you please suggest some graphics card and memory size of
the RAM that we need to have to be able to display the Visible Human
Colored Dataset (9GB) in the absence of the clip loader for Windows
machine?. The data is 1760 x 1024  X 1800 RGB with 1 byte per sample.
I would also like to know if some parallel processing can be
incorporated at any stage.

The system information for the machines is as follows:
 Machine 1 (Windows Desktop): 64 MB ATI Radeon 8700
                  1GB RAM, P4 2.1GHz

 Machine 2 (Laptop): 32 MB Nvidia GeForce FX 5200
                 512 RAM , Pentium M 1.5 GHz

I ran the same program on both the machines. Both machines gave an
error. The complete trace is as follows. Please not that i have tried
to render only 100 out of  a total of 1800 slices.  The follwoing
error is on the Machine 2 but machine 1 also gives similar error.

Initializing debug Level to: 4
Volumizer (3): ================================================
Volumizer (3): Checking for 'volumizer_windows' license
Volumizer (1): ================================================
Volumizer (1): =             OpenGL Volumizer 2.7             =
Volumizer (1): =                 FULL EDITION                 =
Volumizer (1): ================================================
Volumizer MR 2.7, Build #1 (Date: Jul 15 2004 09:29)

Volumizer (4): Object 3fbd68 ref() -> Ref count = 2
Volumizer (4): Object 3fbd68 unref() -> Ref count = 1
Volumizer (4): Object 3fd9d8 ref() -> Ref count = 2
Volumizer (4): Object 3fd9d8 unref() -> Ref count = 1
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 2
Volumizer (4): Object 3fbcd8 ref() -> Ref count = 2
Volumizer (4): Object 3ff5f8 unref() -> Ref count = 1
Volumizer (4): Object 3fbcd8 unref() -> Ref count = 1
Volumizer (2): NULL WGLContext. Creating dummy context!!!
Volumizer (4): Vendor string = NVIDIA Corporation
Volumizer (4): Renderer string = GeForce FX Go5200/AGP/SSE2
Volumizer (2): GeForce FX graphics
Volumizer (3): TMFragmentShader::TMFragmentShader(): NULL Proc
addresses for GL_ATI_fragment_shader entry points
Volumizer (3): TMFragmentShader::TMFragmentShader():
GL_ARB_fragment_program supported
Volumizer (3): vzRenderAction::manage : Number of shapes currently managed = 0
Volumizer (3): Shape 3003068 has 1 volume textures
Volumizer (3): Total size for all the textures = 1073741824, maximum
texture memory = 134217728
Volumizer (3): Largest texture (3fd9d8) is of size 1073741824 bytes
Volumizer (4): Object 3003068 ref() -> Ref count = 2
Volumizer (4): Object 3fbcd8 ref() -> Ref count = 2
Volumizer (4): Object 3fd9d8 ref() -> Ref count = 2
Volumizer (3): Original volume sizes: (1760, 1024, 99)
Volumizer (3): Number of bricks = (6, 1, 2)
Volumizer (3): Brick Dimensions:
Volumizer (3): X axis = 512 512 512 128 64 37
Volumizer (3): Y axis = 1024
Volumizer (3): Z axis = 64 36
Volumizer (4): Object 3fbd68 ref() -> Ref count = 2
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 2
Volumizer (4): Object 300cf30 ref() -> Ref count = 2
Volumizer (4): Object 300cf30 unref() -> Ref count = 1
Volumizer (4): Object 300cfe8 ref() -> Ref count = 2
Volumizer (4): Object 300cf30 ref() -> Ref count = 2
Volumizer (4): Object 300cfe8 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 3
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 3
Volumizer (4): Object 300d0b0 ref() -> Ref count = 2
Volumizer (4): Object 300d0b0 unref() -> Ref count = 1
Volumizer (4): Object 300d168 ref() -> Ref count = 2
Volumizer (4): Object 300d0b0 ref() -> Ref count = 2
Volumizer (4): Object 300d168 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 4
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 4
Volumizer (4): Object 300d230 ref() -> Ref count = 2
Volumizer (4): Object 300d230 unref() -> Ref count = 1
Volumizer (4): Object 300d2e8 ref() -> Ref count = 2
Volumizer (4): Object 300d230 ref() -> Ref count = 2
Volumizer (4): Object 300d2e8 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 5
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 5
Volumizer (4): Object 300d3b0 ref() -> Ref count = 2
Volumizer (4): Object 300d3b0 unref() -> Ref count = 1
Volumizer (4): Object 300d468 ref() -> Ref count = 2
Volumizer (4): Object 300d3b0 ref() -> Ref count = 2
Volumizer (4): Object 300d468 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 6
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 6
Volumizer (4): Object 300d530 ref() -> Ref count = 2
Volumizer (4): Object 300d530 unref() -> Ref count = 1
Volumizer (4): Object 300d5e8 ref() -> Ref count = 2
Volumizer (4): Object 300d530 ref() -> Ref count = 2
Volumizer (4): Object 300d5e8 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 7
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 7
Volumizer (4): Object 300d6b0 ref() -> Ref count = 2
Volumizer (4): Object 300d6b0 unref() -> Ref count = 1
Volumizer (4): Object 300d768 ref() -> Ref count = 2
Volumizer (4): Object 300d6b0 ref() -> Ref count = 2
Volumizer (4): Object 300d768 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 8
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 8
Volumizer (4): Object 300d830 ref() -> Ref count = 2
Volumizer (4): Object 300d830 unref() -> Ref count = 1
Volumizer (4): Object 300d8e8 ref() -> Ref count = 2
Volumizer (4): Object 300d830 ref() -> Ref count = 2
Volumizer (4): Object 300d8e8 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 9
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 9
Volumizer (4): Object 300d9b0 ref() -> Ref count = 2
Volumizer (4): Object 300d9b0 unref() -> Ref count = 1
Volumizer (4): Object 300da68 ref() -> Ref count = 2
Volumizer (4): Object 300d9b0 ref() -> Ref count = 2
Volumizer (4): Object 300da68 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 10
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 10
Volumizer (4): Object 300db30 ref() -> Ref count = 2
Volumizer (4): Object 300db30 unref() -> Ref count = 1
Volumizer (4): Object 300dbe8 ref() -> Ref count = 2
Volumizer (4): Object 300db30 ref() -> Ref count = 2
Volumizer (4): Object 300dbe8 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 11
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 11
Volumizer (4): Object 300dcb0 ref() -> Ref count = 2
Volumizer (4): Object 300dcb0 unref() -> Ref count = 1
Volumizer (4): Object 300dd68 ref() -> Ref count = 2
Volumizer (4): Object 300dcb0 ref() -> Ref count = 2
Volumizer (4): Object 300dd68 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 12
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 12
Volumizer (4): Object 300de30 ref() -> Ref count = 2
Volumizer (4): Object 300de30 unref() -> Ref count = 1
Volumizer (4): Object 300dee8 ref() -> Ref count = 2
Volumizer (4): Object 300de30 ref() -> Ref count = 2
Volumizer (4): Object 300dee8 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 13
Volumizer (4): Object 3ff5f8 ref() -> Ref count = 13
Volumizer (4): Object 300dfb0 ref() -> Ref count = 2
Volumizer (4): Object 300dfb0 unref() -> Ref count = 1
Volumizer (4): Object 300e068 ref() -> Ref count = 2
Volumizer (4): Object 300dfb0 ref() -> Ref count = 2
Volumizer (4): Object 300e068 unref() -> Ref count = 1
Volumizer (4): Object 300e130 ref() -> Ref count = 2
Volumizer (4): Object 300e130 unref() -> Ref count = 1
Volumizer (4): Object 300e280 ref() -> Ref count = 2
Volumizer (4): Object 300e280 unref() -> Ref count = 1
Volumizer (4): Object 300e3d0 ref() -> Ref count = 2
Volumizer (4): Object 300e3d0 unref() -> Ref count = 1
Volumizer (4): Object 300e520 ref() -> Ref count = 2
Volumizer (4): Object 300e520 unref() -> Ref count = 1
Volumizer (4): Object 300e670 ref() -> Ref count = 2
Volumizer (4): Object 300e670 unref() -> Ref count = 1
Volumizer (4): Object 300e7c0 ref() -> Ref count = 2
Volumizer (4): Object 300e7c0 unref() -> Ref count = 1
Volumizer (4): Object 300e910 ref() -> Ref count = 2
Volumizer (4): Object 300e910 unref() -> Ref count = 1
Volumizer (4): Object 300ea60 ref() -> Ref count = 2
Volumizer (4): Object 300ea60 unref() -> Ref count = 1
Volumizer (4): Object 300ebb0 ref() -> Ref count = 2
Volumizer (4): Object 300ebb0 unref() -> Ref count = 1
Volumizer (4): Object 300ed00 ref() -> Ref count = 2
Volumizer (4): Object 300ed00 unref() -> Ref count = 1
Volumizer (4): Object 300ee50 ref() -> Ref count = 2
Volumizer (4): Object 300ee50 unref() -> Ref count = 1
Volumizer (4): Object 300efa0 ref() -> Ref count = 2
Volumizer (4): Object 300efa0 unref() -> Ref count = 1
Volumizer (4): Object 3fbd68 ref() -> Ref count = 14
Volumizer (4): Object 300e130 ref() -> Ref count = 2
Volumizer (4): Object 300e280 ref() -> Ref count = 2
Volumizer (4): Object 300e3d0 ref() -> Ref count = 2
Volumizer (4): Object 300e520 ref() -> Ref count = 2
Volumizer (4): Object 300e670 ref() -> Ref count = 2
Volumizer (4): Object 300e7c0 ref() -> Ref count = 2
Volumizer (4): Object 300e910 ref() -> Ref count = 2
Volumizer (4): Object 300ea60 ref() -> Ref count = 2
Volumizer (4): Object 300ebb0 ref() -> Ref count = 2
Volumizer (4): Object 300ed00 ref() -> Ref count = 2
Volumizer (4): Object 300ee50 ref() -> Ref count = 2
Volumizer (4): Object 300efa0 ref() -> Ref count = 2
Volumizer Error:
TMTextureManager::initializeTextureObject(): OpenGL error calling
glTexImage3DEXT: 1281, Texture = 300e130, data = 50402432, object =
3011440, ID = 1


Thanks
Abhijit




On Tue, 23 Nov 2004 19:19:19 +0530, Praveen Bhaniramka <praveenb@sgi.com> wrote:
> Abhijit,
> 
> Clip-textures are NOT supported on Windows right now! Can you please give me
> the system info and debug messages output by Volumizer? We will try and test
> this out on our end and make sure that it is not a Volumizer bug or if it a
> bug with the graphics driver vendor, we can workaround that inside
> Volumizer.
> 
> Theoretically, if you have enough main memory on the system, you _should_ be
> able to load and render _any sized_ volume data at the original resolution
> with Volumizer (the performance, of course, would be determined by various
> factors such as graphics memory size, bus speed, etc).
> 
> - Praveen
> 
> 
> 
> ----- Original Message -----
> From: "Abhijit Lothe" <alothe@gmail.com>
> To: <info-volumizer@els.sgi.com>
> Sent: Sunday, November 21, 2004 11:26 PM
> Subject: Re: [info-volumizer] use of color images
> 
> > Thanks Praveen,
> >  It worked after reducing the size of the dataset. I guess i will have
> > to use the clip texture to load the volume now. Thanks a lot for your
> > help
> >
> > Regards
> > Abhijit
> >
> >
> > On Sat, 20 Nov 2004 15:06:34 +0530, Praveen Bhaniramka <praveenb@sgi.com>
> wrote:
> > > Hi again,
> > >
> > > I am not sure what you mean by "stored as a 1-D array of unsigned char
> with
> > > dimensions 1024 X 1768 X 3". I assume that you mean 1024 X 1768 x 49
> with 3
> > > bytes each? The run-time error could be any number of reasons. Please
> try
> > > the following -
> > >
> > >    - Test your app with a smaller RGB data set (say 256 x  256 x 256) to
> > > rule out the use of RGB data as the cause of the error.
> > >    -  Make sure that system has enough memory for the data set to fit.
> > >    - Look for errors reported by Volumizer. If there is an internal
> error
> > > inside Volumizer, it calls the vzError::error() method, which prints an
> > > error string to the console and calls abort. Run your app from a
> console,
> > > and look at the error message for the source of the error.
> > >    - Volumizer uses an environment variable VOLUMIZER_DEBUG_LEVEL to
> print
> > > out debug messages to the console. The higher the value, more the debug
> > > messages printed. That is another useful source of information for
> possible
> > > cause of the error.
> > >
> > > Of course, if the error or debug messages don't make any sense, you can
> send
> > > them our way and we will try to take a look :) If you do so, please also
> > > send more information about the system configuration, like memory size,
> > > graphics card and driver version, etc.
> > >
> > > Cheers,
> > >
> > >
> > > Praveen
> > >
> > > ----- Original Message -----
> > > From: "Abhijit Lothe" <alothe@gmail.com>
> > > To: <info-volumizer@els.sgi.com>
> > > Sent: Saturday, November 20, 2004 1:39 PM
> > > Subject: Re: [info-volumizer] use of color images
> > >
> > > > Thanks Praveen.
> > > > I am facing a problem using the RGB data. I am creating
> > > > vzParameterVolumeTexture object with an RGB data. The data was created
> > > > by reading 49 2-D TIFF images each of size 1024 X 1768 . They have 3
> > > > samples per pixel with 8 bits per sample.
> > > > I passed VZ_UNSIGNED_BYTE as the texture type and VZ_RGB as the
> > > > external type. My data is stored as a 1-D array of unsigned char with
> > > > dimensions 1024 X 1768 X 3. I used simple TM renderer and simple TM
> > > > shader to display the volume. But it gives runtime error and program
> > > > does not run. I am running it on windows platform (XP). I was not able
> > > > to figure out the error since it seems to be coming from the draw
> > > > function of vzTMRenderAction. Could you please help me in this matter.
> > > >
> > > > Thanks .
> > > > Regards
> > > > Abhijit
> > > >
> > > >
> > > > On Fri, 19 Nov 2004 04:47:52 +0530, Praveen Bhaniramka
> <praveenb@sgi.com>
> > > wrote:
> > > > > Abhijit,
> > > > >
> > > > > Volumizer's rendering pipeline does not distinguish between the data
> > > format
> > > > > and data type of the volume data. Hence once you have passed the
> volume
> > > data
> > > > > to Volumizer, you can render RGB data sets in the same way as
> LUMINANCE
> > > or
> > > > > RGBA datasets.
> > > > >
> > > > > However, it is important to note that RGB data sets do not have any
> > > > > transparency associated with them. The rendered image might not
> > > necessarily
> > > > > be what you would expect with typical LUMINANCE or RGBA data sets.
> So,
> > > if
> > > > > you need alpha, depending on your graphics hardware, your best bet
> might
> > > be
> > > > > to try and use a shader which introduces alpha in the final rendered
> > > image
> > > > > (using a fragment program, for example). If you don't care about
> alpha,
> > > you
> > > > > should be just fine using the default rendering pipeline.
> > > > >
> > > > > hth,
> > > > > Praveen
> > > > >
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Abhijit Lothe" <alothe@gmail.com>
> > > > > To: "volumizer mailing list" <info-volumizer@els.sgi.com>
> > > > > Sent: Friday, November 19, 2004 3:12 AM
> > > > > Subject: [info-volumizer] use of color images
> > > > >
> > > > > > Hello praveen,
> > > > > >  i would like to confirm if volumizer can directly display the RGB
> > > > > > volume avaible in the form of 2D RGB slices since the manual hasnt
> > > > > > given any example for RGB. it would be really helpful for new
> comers
> > > > > > like me if you could include one RGB volume example in the manual.
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > -Abhijit
> > > > >
> > > > >
> > >
> > >
> 
>

