On 6/10/2011 11:04 PM, Linda Lee wrote:
> Hi,
> I need to handle multiple textures in glsl.  Any suggestions how do I do it?  
> Should I use sampler2DArray?  How do I use it?  Any links I could take 
> reference from?


  Don't use 2DArray unless the textures really are related. Just use multiple 
sampler2Ds.

> Also, is there a limit to the amount of textures I could load into GPU.   I 
> tried loading 25 4096by4096 textures and it crashes when I tried to load 
> more.  Is there any ways to increase the amount that I could load?

  It's just limited by memory. What are your 25 textures? Usually one doesn't 
need 25 4k
textures unless you're doing volumetric work or something.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. [email protected] 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
    "There is no Truth. There is only Perception. To Perceive is to Exist." - 
Xen
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to