[vtkusers] Texture not displayed (NVIDIA problem?)

David.Pont at ForestResearch.co.nz David.Pont at ForestResearch.co.nz
Tue Aug 13 19:08:44 EDT 2002


Good tip Ken, but I already encountered that problem way back when I first
started on this app, (on my old machine). I just tested this out again with
a large image and yes I can get a white rectangle (at any level of graphics
acceleration) if the image exceeds my machines maximum texture dimension.
This is reported as 1024 using the following:

            long maxDimGL;
            glGetIntegerv(GL_MAX_TEXTURE_SIZE,&maxDimGL);

So image size is a gotcha, but given I have images below the maximum size,
I still get a white rectangle unless I 'dumb down' my graphics
acceleration. I even tried a tiny image (19*32) to be sure.
Yesterday I got the latest drivers from NVIDIA, but this made no
difference.
I have a work-around, but I am still baffled that a modern graphics card
has to be crippled to support texturing in OpenGL. I kind of feel it should
be solvable.
Is it because graphics cards are optimised for DirectX, leaving OpenGL out
in the cold? is it because there are too many combinations of hardware /
software to ensure all work? should I upgrade to vtk 4? can I update my
OpenGL? are there some little-known Windows/NVIDIA/OpenGL/vtk settings I
can twiddle? is it a hole that is too deep and dark for sane people to go
into?

  Dave 'Decelerator' Pont



                                                                                                                                                
                    "Ken Martin"                                                                                                                
                    <kenlists at nyca       To:     <David.Pont at ForestResearch.co.nz>, <vtkusers at public.kitware.com>                               
                    p.rr.com>            cc:                                                                                                    
                                         Subject:     RE: [vtkusers] Texture not displayed (NVIDIA problem?)                                    
                    14/08/2002                                                                                                                  
                    00:22                                                                                                                       
                    Please respond                                                                                                              
                    to ken.martin                                                                                                               
                                                                                                                                                
                                                                                                                                                




My guess is that this is due to a texture size limitation in your
hardware. If VTK tries to draw too large of a texture map some
hardware will simply fail to draw the texture map. The result is a
white rectangle on the screen. Since 4.0 we have added logic in VTK to
handle this an break apart the texture into multiple smaller texture
maps that do fit within the graphics hardware's limitations.

Ken

> -----Original Message-----
> From: vtkusers-admin at public.kitware.com
> [mailto:vtkusers-admin at public.kitware.com]On Behalf Of
> David.Pont at ForestResearch.co.nz
> Sent: Monday, August 12, 2002 8:21 PM
> To: vtkusers at public.kitware.com
> Subject: Re: [vtkusers] Texture not displayed (NVIDIA problem?)
>
>
>
> I played around with Windows "Display Properties", under Settings |
> Advanced | Trobleshooting. I tried all the various positions on the
> Hardware Acceleration slider, starting on the default
> maximum and working
> backwards. Once I reached the second lowest setting
> ("Disable all but basic
> accelerations. Use this setting to correct more severe
> problems.") I got my
> textured images to display... but now the graphics performance is
> positively sloth-like...
> Hmmmm...
> Anyone have suggestions on how to remedy this? update
> drivers? magical vtk
> or OpenGL settings? give up and live with a lobotomised
> video card for vtk?
> join the masses and only use my PC for playing games ;-)
>
>   OK, I'm off to check the Dell / NVidia sites for driver
> updates or any
> other info..
>       Dave
>
>
>
>
>
>                     David.Pont at forestresear
>
>                     ch.co.nz                      To:
> vtkusers at public.kitware.com
>                     Sent by:                      cc:
>
>                     vtkusers-admin at public.k       Subject:
>    [vtkusers] Texture not displayed (NVIDIA problem?)
>                     itware.com
>
>
>
>
>
>                     13/08/2002 09:52
>
>
>
>
>
>
>
>
>
>
> Hi all,
>    I have a new Dell Latitude C610 notebook running Win
> 2000. The Graphics
> card is reported as: "NVIDIA GeForce 2 Go (Dell Mobile)". I have an
> application built with vtk 3.1 which uses the "texture on a
> plane" method
> of viewing iamges. Since moving to my new machine the
> images now just
> appear as a full white rectangle. Have tried TIFF (with and
> without alpha)
> and BMP with the same results.
> I checked the archives and there seem to be some issues
> around textures and
> NVIDIA GeForce cards but no specific information on this
> problem. Anybody
> able to shed some light on this?..  I want my pictures back...
>   thanks in advance
>      Dave Pont
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <
> http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers








More information about the vtkusers mailing list