[vtkusers] Re: Using 3D textures on the Mac

Dan White dan at chalkie.org.uk
Wed Sep 27 07:29:12 EDT 2006


Hi All,

the new 3D texture mapper fix for OSX in the vtk CVS also works
for a PPC G5 with a GeForce FX 5200

as well as an intel MacBookPro

so now can do 3D texture mapping on OSX with VTK CVS on intel and ppc
for those graphics cards that support it.

Dan


On 26 Sep 2006, at 17:33, David Gobbi wrote:

> Hi Dan,
>
> The VTK folks were kind enough to give me cvs access a few years ago,
> I already committed the patch earlier this morning. Please do an  
> update
> from cvs and try it out when you have a chance.
>
> Cheers,
>
> - David
>
>
>
> Dan White wrote:
>> Hi David,
>>
>> Maybe if you can file this issue as a bug report on the VTK bugs  
>> system,
>> and give the VTK folks a patch that would achieve the required  
>> changes to add the macros,
>> then the VTK folks might put it in CVS very quickly...?
>>
>> BTW,
>> what changes do you need to make that work?
>>
>> OSIRIX has been implementing a solution to this problem, since
>> 3D textures work in OSIRIX , bit I didnt manage to get Antoinne's  
>> code working myself
>> as I was undoubtedly doing it wrong.
>>
>> the vtk folks like bug reports with patches attached that will  
>> make the fix...
>>
>> cheers
>> Dan
>>
>>
>> Begin forwarded message:
>>
>>> Message: 10
>>> Date: Mon, 25 Sep 2006 16:31:31 -0400
>>> From: David Gobbi <dgobbi at atamai.com>
>>> Subject: [vtkusers] Using 3D textures on the Mac
>>> To: VTK Users <vtkusers at vtk.org>
>>> Message-ID: <45183CA3.3090605 at atamai.com>
>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>
>>> Hi All,
>>>
>>> I'm having some trouble with vtkVolumeTextureMapper3D on
>>> the Mac.  When I try to use it, it gives the following error:
>>>
>>> vtkOpenGLVolumeTextureMapper3D (0x177e6000): required extensions not
>>> supported
>>>
>>> I checked to see which extension it couldn't find, and it was
>>> glTexImage3DEXT.  The silly thing is that Mac OS X 10.4
>>> supports glTexImage3D directly (i.e. not as an extension).
>>> When I changed the code to use glTexImage3D, it worked
>>> fine.
>>>
>>> I have two questions:
>>>
>>> 1) has any other Mac user seen the same issue with
>>>     vtkVolumeTextureMapper3D?
>>>
>>> 2) how would people feel if I added a couple macros to the
>>>     code so that, on OS X, it uses vtkgl::TexImage3D instead of
>>>     vtkgl::TexImage3DEXT?
>>>
>>>  - David
>>>
>>
>> Dr. Daniel James White BSc. (Hons.) PhD
>> Bioimaging Coordinator
>> Nanoscience Centre and Department of Biological and Environmental  
>> Sciences
>> Division of Molecular Recognition
>> Ambiotica C242
>> PO Box 35
>> University of Jyväskylä
>> Jyväskylä
>> FIN 40014
>> Finland
>>
>> +358 14 260 4183 (work)
>> +358 468102840 (mobile)
>> http://www.bioimagexd.org
>> http://www.chalkie.org.uk
>> dan at chalkie.org.uk
>> white at cc.jyu.fi
>>
>>
>>
>

Dr. Daniel James White BSc. (Hons.) PhD
Bioimaging Coordinator
Nanoscience Centre and Department of Biological and Environmental  
Sciences
Division of Molecular Recognition
Ambiotica C242
PO Box 35
University of Jyväskylä
Jyväskylä
FIN 40014
Finland

+358 14 260 4183 (work)
+358 468102840 (mobile)
http://www.bioimagexd.org
http://www.chalkie.org.uk
dan at chalkie.org.uk
white at cc.jyu.fi





More information about the vtkusers mailing list