The answer is "usually, yes". How to do it depends on how you are actually
storing your geometry and color data. Are you using vertex arrays, or how
are you doing it now with floats?


On Fri, Jan 25, 2013 at 5:13 AM, Shane MacLaughlin
<[email protected]>wrote:

> Hi,
>
> I'm very new to OSG, having just worked my way through the beginners guide
> and part of the cookbook, so apologies if this has been answered already,
> but I couldn't find it searching.
>
> All the examples that I've seen show colors represented as 4 floats, or 16
> bytes, but to minimize space usage on a point cloud, I'd like to store them
> 4 bytes.  Is this possible in OSG?
>
> The only workaround I can think of is to palettize, create separate
> primitives for each palette entry, and color bind on that basis.  I've also
> seen references to color indices but these are marked as deprecated.
>
> thanks,
>
> Shane
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=52192#52192
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Chris 'Xenon' Hanson, omo sanza lettere. [email protected]
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography
• Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS •
Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to