Thanks that helped me out a lot, but now I have an additional question:
How is the RGB actually stored in the image?
>From my Image I can now get the Raw Data, but what does it represent and how
>is it stored?
Image->data(x,y,0)? what does it return? How do I get the individual R, G and
B va
HI Maximum,
The pixel format and data type of the data stored in osg::Image map to
the same set supported by OpenGL, and uses exactly the same GL enums
so you can read up on OpenGL docs and they 1:1 map to the OSG.
As the pixel format and data type can be a wide range you have to
check the type a
Right now I having problems setting unique uniforms and num instances on a per
view basis (camera).
Right now I am using hardware instancing, with a scene with 1000's of
relatively complex objects, but only a handful of actual models. I was able to
encode index's to textures + position and rot
I am using osg 3.4.0. I am in a position where I could switch to a newer build.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72392#72392
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hello community,
I was attempting to test the latest release of OSG 3.5.8 and am now getting
some compiler errors.
error: ‘const struct osgText::Text::GlyphQuads’ has no member named ‘getCoords’
coords.insert(coords.end(),gq.getCoords()->begin(),gq.getCoords()->end());
Snippet o
Hi Robert,
My Image is in GL_RGBA format stored as GL_UNSIGNED_BYTE
Given that information, is there a way to decompose the Unsigned Byte I get
from Image->data(x,y,0) to R, G, B and A?
V/R,
--Maxim
Thank you,
--Maxim
--
Read this topic online here:
ht
Hi David,
You could write a custom subclass of osg::Geometry and override the
drawImplementation an do the cull and dispatch of the primitives and
instance count for each time the geometry is drawn, but do so in a
thread safe way such as my computing all the dynamic data on the fly.
The alternati
Hi Maxim,
On 15 November 2017 at 20:13, Maxim Stere wrote:
> My Image is in GL_RGBA format stored as GL_UNSIGNED_BYTE
>
> Given that information, is there a way to decompose the Unsigned Byte I get
> from Image->data(x,y,0) to R, G, B and A?
Yes there is a way.
That's as much as an answer as I
Hi Curtis,
It might be that we need to add some extra API to osgText to help you
do what you want to do. As a general trend I would much rather have
users no need to grapple with the internal implementation details of
classes to do their work, if this requires some amendments to the
public interf
9 matches
Mail list logo