Hi Shane,

Use Vec4ub with Vec4ubArray in place of Vec4 etc.

Robert
On 11 Feb 2013 18:09, "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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to