Hi Robert,

GL_POINT_SPRITE_COORD_ORIGIN is not part of the GL_ARB_point_parameters extension. So it is not enaugh to check for this extension. GL_POINT_SPRITE_COORD_ORIGIN is a OpenGL 2.0 feature, which is currently not available on a Mac. On my linux box I have GL >= 2.0 and seeing no problems with
osgpointsprite. We need something like:

if (extensions->getGLVersion() >= 2.0)
extensions->glPointParameteri (GL_POINT_SPRITE_COORD_ORIGIN,_coordOriginMode);

GL_ARB_point_sprite and GL_ARB_point_parameters are both part of OpenGL 2.0

-Andre

Am 06.12.2006 um 14:51 schrieb Robert Osfield:

Hi Eric and Andre,


I have just do a cvs log on PointSprite.cpp:

revision 1.9
date: 2006/11/14 12:29:54; author: robert; state: Exp; lines: +18 -5
From Farshid Lashkari, "This patch adds a CoordOriginMode to the
osg::PointSprite attribute.
The mode needs to be changed to LOWER_LEFT when rendering point
sprites to pbuffers or FBOs, otherwise the points will be transformed
on the CPU."

The new lines are:

   if (extensions->isPointParametersSupported())
extensions->glPointParameteri (GL_POINT_SPRITE_COORD_ORIGIN,_coordOriginMode);


So I'd suspect these as being problematic.   It'd be worth checking if
GL_POINT_SPRITE_COORD_ORIGIN is supported, if not then we probably
need two isPointParametersSupported() methods in the
PointSprite::Extensions object.

Robert.

On 12/6/06, Andre Normann <[EMAIL PROTECTED]> wrote:
Hi Robert,

I got the warning too. Here is a dump from OpenGL Profiler:

glPointParameteri(0x00008ca0, 36002)
 Error: GL_INVALID_ENUM
 Context: 0x02808400
Function call stack:
0: 0x1ffeef1c in std::vector<std::map<unsigned long, osg::State::ModeStack,
std::less<unsigned long>, std::allocator<std::pair<unsigned
long const, osg::State::ModeStack> > >,
std::allocator<std::map<unsigned long,
osg::State::ModeStack, std::less<unsigned long>,
std::allocator<std::pair<unsigned long const,
osg::State::ModeStack> > > >
>::_M_fill_insert(__gnu_cxx::__normal_iterator<std::map<unsigned
long, osg::State::ModeStack, std::less<unsigned long>,
std::allocator<std::pair<unsigned long const,
osg::State::ModeStack> > >*,
std::allocator<std::map<unsigned long,
osg::State::ModeStack, std::less<unsigned long>,
std::allocator<std::pair<unsigned long const,
osg::State::ModeStack> > > > >, unsigned long, std::map<unsigned long,
osg::State::ModeStack, std::less<unsigned long>,
std::allocator<std::pair<unsigned long const,
osg::State::ModeStack> > > const&) in
</Users/andre/Library/Frameworks/osg.framework/Versions/A/osg>
1: 0x1ffeefc4 in std::vector<std::map<unsigned long, osg::State::ModeStack,
std::less<unsigned long>, std::allocator<std::pair<unsigned
long const, osg::State::ModeStack> > >,
std::allocator<std::map<unsigned long,
osg::State::ModeStack, std::less<unsigned long>,
std::allocator<std::pair<unsigned long const,
osg::State::ModeStack> > > >
>::_M_fill_insert(__gnu_cxx::__normal_iterator<std::map<unsigned
long, osg::State::ModeStack, std::less<unsigned long>,
std::allocator<std::pair<unsigned long const,
osg::State::ModeStack> > >*,
std::allocator<std::map<unsigned long,
osg::State::ModeStack, std::less<unsigned long>,
std::allocator<std::pair<unsigned long const,
osg::State::ModeStack> > > > >, unsigned long, std::map<unsigned long,
osg::State::ModeStack, std::less<unsigned long>,
std::allocator<std::pair<unsigned long const,
osg::State::ModeStack> > > const&) in
</Users/andre/Library/Frameworks/osg.framework/Versions/A/osg>
 2: 0x1ff4d644 in osg::State::apply() in
</Users/andre/Library/Frameworks/osg.framework/Versions/A/osg>
 3: 0x0041e26c in
osgUtil::RenderStage::drawInner(osg::RenderInfo&,
osgUtil::RenderLeaf*&, bool&) in
</Users/andre/Library/Frameworks/osgUtil.framework/Versions/A/ osgUtil>
 4: 0x0041f2bc in
osgUtil::RenderStage::draw(osg::RenderInfo&,
osgUtil::RenderLeaf*&) in
</Users/andre/Library/Frameworks/osgUtil.framework/Versions/A/ osgUtil>
 5: 0x00423a08 in osgUtil::SceneView::draw() in
</Users/andre/Library/Frameworks/osgUtil.framework/Versions/A/ osgUtil>
 6: 0x20765db0 in
osgProducer::OsgSceneHandler::drawImplementation(Producer::Camera&)
in
</Users/andre/Library/Frameworks/osgProducer.framework/Versions/A/ osgProducer> 7: 0x2077a300 in std::_Rb_tree<unsigned long, std::pair<unsigned long
const, unsigned>, std::_Select1st<std::pair<unsigned long
const, unsigned> >, std::less<unsigned long>,
std::allocator<std::pair<unsigned long const, unsigned> >
>::lower_bound(unsigned long const&) in
</Users/andre/Library/Frameworks/osgProducer.framework/Versions/A/ osgProducer>
 8: 0x0100d0f0 in Producer::Camera::_frame(bool) at
/Volumes/Home/Projekte/Source/Producer/Xcode/Producer/../../src/ Producer/Camera.cpp:
324
 9: 0x0100e260 in Producer::Camera::frame(bool) at
/Volumes/Home/Projekte/Source/Producer/Xcode/Producer/../../src/ Producer/Camera.cpp:
103
 10: 0x01018508 in
Producer::CameraGroup::_singleThreadedFrame() at
/Volumes/Home/Projekte/Source/Producer/Xcode/Producer/../../src/ Producer/CameraGroup.cpp:
341
 11: 0x01018838 in Producer::CameraGroup::_frame() at
/Volumes/Home/Projekte/Source/Producer/Xcode/Producer/../../src/ Producer/CameraGroup.cpp:
388
 12: 0x0101891c in Producer::CameraGroup::frame() at
/Volumes/Home/Projekte/Source/Producer/Xcode/Producer/../../src/ Producer/CameraGroup.cpp:
331
 13: 0x207630c0 in osgProducer::OsgCameraGroup::frame() in
</Users/andre/Library/Frameworks/osgProducer.framework/Versions/A/ osgProducer>
 14: 0x207671b4 in osgProducer::Viewer::frame() in
</Users/andre/Library/Frameworks/osgProducer.framework/Versions/A/ osgProducer>
 15: 0x00003698 in main in
</Volumes/Home/Projekte/Source/OpenSceneGraph/Xcode/OpenSceneGraph/ build/Deployment/osgpointsprite.app/Contents/MacOS/osgpointsprite>
 16: 0x00002008 in start in
</Volumes/Home/Projekte/Source/OpenSceneGraph/Xcode/OpenSceneGraph/ build/Deployment/osgpointsprite.app/Contents/MacOS/osgpointsprite>
 17: 0x00001d0c in start in
</Volumes/Home/Projekte/Source/OpenSceneGraph/Xcode/OpenSceneGraph/ build/Deployment/osgpointsprite.app/Contents/MacOS/osgpointsprite>
 18: 0x00000000 in
</Volumes/Home/Projekte/Source/OpenSceneGraph/Xcode/OpenSceneGraph/ build/Deployment/osgpointsprite.app/Contents/MacOS/osgpointsprite>

It looks like the extension "GL_ARB_point_sprite" is not available. Very strange. I am running on a PowerMac G5 with ATI X800XT and CVS version of
OSG.

-Andre


Am 06.12.2006 um 10:59 schrieb Robert Osfield:

Hi Eric,

On 12/6/06, E. Wing <[EMAIL PROTECTED]> wrote:
I started playing with the osgpointsprite example today (did an update
from CVS). I am seeing a lot of these messages:
Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(,)

I don't see any of these warnings in the stable osg 1.2 release.

Any ideas?

I have just run osgpointsprite and its working fine under Linux/ NVidia
drivers.

Could you provide a dump of the OpenGL version/extensions supported on
your machine?

Robet.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to