Re: [osg-users] osgFX::Cartoon (setOutlineLineWidth)
Thanks for testing :) I'll see what it can be, if it depends on drivers or not... Than you very much Regards, Vincent. 2008/3/11, nicolas peña <[EMAIL PROTECTED]>: > > Hi, It works fine on my configuration, so it does not look as a code > problem nor an OSG bug. > Of course I did change edge_width and color.x/y/z for a float numbers but > apart from that I used the same code. > Are you sure edge_width is set to the value you want? If yes may be the > is a bug in the OpenGL driver or something. > > Hope it helps. > > Cheers, > Nicolas. > > 2008/3/11, Vincent Bourdier <[EMAIL PROTECTED]>: > > > > Hi Nicolas, > > > > this is my code : > > //SCRIBE MODE > > osg::ref_ptr s = new osgFX::Scribe; > > s->setWireframeColor(osg::Vec4(color.x(), color.y(), color.z(), > > 1.0f)); > > s->setWireframeLineWidth(edge_width);//DO NOTHING ?! > > s->addChild(copynode); > > > > than I attach s to the grpah, and render. (copynode is a geode with a > > correct geometry) > > the wireframecolor is good, but the lineWidth ... no. > > > > tanks. > > > > Vincent. > > > > > > 2008/3/11, nicolas peña <[EMAIL PROTECTED]>: > > > > > > Hi Vincent, > > > I don't use this feature but if you attach a small > > > example > > > that triggers that behaviour in your machine I would > > > test it > > > on mine (x86_64,Linux 2.6.22 , OSG SVN HEAD). > > > > > > Cheers, > > > Nicolas. > > > > > > 2008/3/11, Vincent Bourdier <[EMAIL PROTECTED]>: > > > > > > > > Hi, > > > > > > > > No one have already had this problem ? > > > > Thanks. > > > > > > > > Vincent. > > > > > > > > 2008/3/7, Vincent Bourdier <[EMAIL PROTECTED]>: > > > > > > > > > > Hi, > > > > > > > > > > I'm using osgFX::Cartoon to obtain an effect on the edges. I want > > > > > to highlight edges of a node. (geode) > > > > > > > > > > I've already tried osgFX::Scribe, but I prefere Cartoon edges > > > > > because it compute only the necessary edges and not all. > > > > > > > > > > So, my problem is when I use Cartoon, I can't set LineWidth. I can > > > > > put 0.1 to 20.0 it doesn't change anything. > > > > > > > > > > Is use this code : > > > > > > > > > > osg::ref_ptr c = new osgFX::Cartoon; > > > > > c->setOutlineColor(osg::Vec4(color.x(), color.y(), color.z(), 1.0f > > > > > )); > > > > > c->setOutlineLineWidth(edge_width); > > > > > c->addChild(copynode); > > > > > > > > > > Is there any reason to this problem ? > > > > > how to solve it ? > > > > > > > > > > Thanks. > > > > > > > > > > Vincent. > > > > > > > > > > > > > > > > > ___ > > > > osg-users mailing list > > > > osg-users@lists.openscenegraph.org > > > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > > > > > > > ___ > > > osg-users mailing list > > > osg-users@lists.openscenegraph.org > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > > > ___ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgFX::Cartoon (setOutlineLineWidth)
Hi, It works fine on my configuration, so it does not look as a code problem nor an OSG bug. Of course I did change edge_width and color.x/y/z for a float numbers but apart from that I used the same code. Are you sure edge_width is set to the value you want? If yes may be the is a bug in the OpenGL driver or something. Hope it helps. Cheers, Nicolas. 2008/3/11, Vincent Bourdier <[EMAIL PROTECTED]>: > > Hi Nicolas, > > this is my code : > //SCRIBE MODE > osg::ref_ptr s = new osgFX::Scribe; > s->setWireframeColor(osg::Vec4(color.x(), color.y(), color.z(), > 1.0f)); > s->setWireframeLineWidth(edge_width);//DO NOTHING ?! > s->addChild(copynode); > > than I attach s to the grpah, and render. (copynode is a geode with a > correct geometry) > the wireframecolor is good, but the lineWidth ... no. > > tanks. > > Vincent. > > > 2008/3/11, nicolas peña <[EMAIL PROTECTED]>: > > > > Hi Vincent, > > I don't use this feature but if you attach a small > > example > > that triggers that behaviour in your machine I would test > > it > > on mine (x86_64,Linux 2.6.22 , OSG SVN HEAD). > > > > Cheers, > > Nicolas. > > > > 2008/3/11, Vincent Bourdier <[EMAIL PROTECTED]>: > > > > > > Hi, > > > > > > No one have already had this problem ? > > > Thanks. > > > > > > Vincent. > > > > > > 2008/3/7, Vincent Bourdier <[EMAIL PROTECTED]>: > > > > > > > > Hi, > > > > > > > > I'm using osgFX::Cartoon to obtain an effect on the edges. I want to > > > > highlight edges of a node. (geode) > > > > > > > > I've already tried osgFX::Scribe, but I prefere Cartoon edges > > > > because it compute only the necessary edges and not all. > > > > > > > > So, my problem is when I use Cartoon, I can't set LineWidth. I can > > > > put 0.1 to 20.0 it doesn't change anything. > > > > > > > > Is use this code : > > > > > > > > osg::ref_ptr c = new osgFX::Cartoon; > > > > c->setOutlineColor(osg::Vec4(color.x(), color.y(), color.z(), 1.0f > > > > )); > > > > c->setOutlineLineWidth(edge_width); > > > > c->addChild(copynode); > > > > > > > > Is there any reason to this problem ? > > > > how to solve it ? > > > > > > > > Thanks. > > > > > > > > Vincent. > > > > > > > > > > > > > ___ > > > osg-users mailing list > > > osg-users@lists.openscenegraph.org > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > > > ___ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgFX::Cartoon (setOutlineLineWidth)
Hi Nicolas, this is my code : //SCRIBE MODE osg::ref_ptr s = new osgFX::Scribe; s->setWireframeColor(osg::Vec4(color.x(), color.y(), color.z(), 1.0f)); s->setWireframeLineWidth(edge_width);//DO NOTHING ?! s->addChild(copynode); than I attach s to the grpah, and render. (copynode is a geode with a correct geometry) the wireframecolor is good, but the lineWidth ... no. tanks. Vincent. 2008/3/11, nicolas peña <[EMAIL PROTECTED]>: > > Hi Vincent, > I don't use this feature but if you attach a small example > that triggers that behaviour in your machine I would test it > > on mine (x86_64,Linux 2.6.22 , OSG SVN HEAD). > > Cheers, > Nicolas. > > 2008/3/11, Vincent Bourdier <[EMAIL PROTECTED]>: > > > > Hi, > > > > No one have already had this problem ? > > Thanks. > > > > Vincent. > > > > 2008/3/7, Vincent Bourdier <[EMAIL PROTECTED]>: > > > > > > Hi, > > > > > > I'm using osgFX::Cartoon to obtain an effect on the edges. I want to > > > highlight edges of a node. (geode) > > > > > > I've already tried osgFX::Scribe, but I prefere Cartoon edges because > > > it compute only the necessary edges and not all. > > > > > > So, my problem is when I use Cartoon, I can't set LineWidth. I can put > > > 0.1 to 20.0 it doesn't change anything. > > > > > > Is use this code : > > > > > > osg::ref_ptr c = new osgFX::Cartoon; > > > c->setOutlineColor(osg::Vec4(color.x(), color.y(), color.z(), 1.0f)); > > > c->setOutlineLineWidth(edge_width); > > > c->addChild(copynode); > > > > > > Is there any reason to this problem ? > > > how to solve it ? > > > > > > Thanks. > > > > > > Vincent. > > > > > > > > > ___ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgFX::Cartoon (setOutlineLineWidth)
Hi Vincent, I don't use this feature but if you attach a small example that triggers that behaviour in your machine I would test it on mine (x86_64,Linux 2.6.22 , OSG SVN HEAD). Cheers, Nicolas. 2008/3/11, Vincent Bourdier <[EMAIL PROTECTED]>: > > Hi, > > No one have already had this problem ? > Thanks. > > Vincent. > > 2008/3/7, Vincent Bourdier <[EMAIL PROTECTED]>: > > > > Hi, > > > > I'm using osgFX::Cartoon to obtain an effect on the edges. I want to > > highlight edges of a node. (geode) > > > > I've already tried osgFX::Scribe, but I prefere Cartoon edges because it > > compute only the necessary edges and not all. > > > > So, my problem is when I use Cartoon, I can't set LineWidth. I can put > > 0.1 to 20.0 it doesn't change anything. > > > > Is use this code : > > > > osg::ref_ptr c = new osgFX::Cartoon; > > c->setOutlineColor(osg::Vec4(color.x(), color.y(), color.z(), 1.0f)); > > c->setOutlineLineWidth(edge_width); > > c->addChild(copynode); > > > > Is there any reason to this problem ? > > how to solve it ? > > > > Thanks. > > > > Vincent. > > > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgFX::Cartoon (setOutlineLineWidth)
Hi, No one have already had this problem ? Thanks. Vincent. 2008/3/7, Vincent Bourdier <[EMAIL PROTECTED]>: > > Hi, > > I'm using osgFX::Cartoon to obtain an effect on the edges. I want to > highlight edges of a node. (geode) > > I've already tried osgFX::Scribe, but I prefere Cartoon edges because it > compute only the necessary edges and not all. > > So, my problem is when I use Cartoon, I can't set LineWidth. I can put 0.1to > 20.0 it doesn't change anything. > > Is use this code : > > osg::ref_ptr c = new osgFX::Cartoon; > c->setOutlineColor(osg::Vec4(color.x(), color.y(), color.z(), 1.0f)); > c->setOutlineLineWidth(edge_width); > c->addChild(copynode); > > Is there any reason to this problem ? > how to solve it ? > > Thanks. > > Vincent. > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgFX::Cartoon (setOutlineLineWidth)
Hi, I'm using osgFX::Cartoon to obtain an effect on the edges. I want to highlight edges of a node. (geode) I've already tried osgFX::Scribe, but I prefere Cartoon edges because it compute only the necessary edges and not all. So, my problem is when I use Cartoon, I can't set LineWidth. I can put 0.1to 20.0 it doesn't change anything. Is use this code : osg::ref_ptr c = new osgFX::Cartoon; c->setOutlineColor(osg::Vec4(color.x(), color.y(), color.z(), 1.0f)); c->setOutlineLineWidth(edge_width); c->addChild(copynode); Is there any reason to this problem ? how to solve it ? Thanks. Vincent. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org