Hi, 1d texture max size is at least 4k 4-component values texture buffer max size is at least 64k (usually much higher) you can use 2d texture which will give you at least 4k*4k 4-component storage space, and i cant imagine case where you ever need more.
In real world whole lot of storage space are rarely ever needed as it's better to split instanced geometry (quad-octree like) in batches for cull check vs view frustum on cpu per batch, as it saves lot of rendering time. Also you rarely ever need to pass full 4x4 matrix per instance, usually you can get with 4-5 values per instance: 3-position + 1-scale + index into precalculated rotation matrices array uniform (like 8..64 size), or if you ok with random rotation you can calculate index based on transform, or you can encode scale + index into single value. Cheers. 19.07.2012, 20:38, "James Turner" <[email protected]>: > On 19 Jul 2012, at 15:59, Paul Martz wrote: > >> I'll second Sergey's comment. I have been using instanced rendering in OSG >> for years now, storing per-instance data in textures and fetching it in the >> vertex shader. Lack of support for instanced arrays has not been an >> impediment to my usage. >> >> However, I do see the value of this extension. Feel free to add support for >> it and post a submission. > > Hmm, does quite large mean > 8k or 16k on most hardware? Particular for > trees, we easily have tens of thousands of instances, and if the hardware > could cope, we might scale even higher. However there's already code to split > this into batches, so even with a limit of 8k or 16k, it's still a viable > solution. > > I'm happy to post a submission to support the extension, but would need a bit > of guidance on what the API should like to be in keeping with the OSG spirit, > and hence be likely to be accepted :) > > James > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

