Hi Andre,

There is nothing I or anyone else can do to suggest how you fix your
problem as there really isn't any where near enough information in
your emails to help us even guess at what the problem.  It's like me
telling you I have a piece of string in my hand and telling you that
while I don't know how long it is, could you please tell me how long
it is.

osg::LineStipple works just fine, so if it isn't working then you are
either expecting something that OpenGL itself doesn't do, or that you
are not setting things up at your end.

Robert.

On Wed, Aug 13, 2008 at 6:01 PM, Andre Simoes <[EMAIL PROTECTED]> wrote:
> Hello Robert. I know that this topic is a little old. But I'm Still having
> that problem with LineStipple....
>
> I've been debugging Osg src with my implementation. And I've realized that
> when I'm adding the Line inside my PAT object I just can't see it calling
> Drawable::compileGLObjects( State &state ) ( OSG 1.x )....
>
> Is there any way that I could do it by hand ?
>
> 2008/6/26 Robert Osfield <[EMAIL PROTECTED]>
>>
>> Hi Andre,
>>
>> If your lines are coming out stippled then it suggests that either
>> your own OpenGL code is setting the line stippling on, or that the OSG
>> has a osg::LineStipple assigned to enable this.
>>
>> Robert.
>>
>> On Wed, Jun 25, 2008 at 3:02 PM, Andre Simoes <[EMAIL PROTECTED]>
>> wrote:
>> > Hi For all.
>> >
>> > Does anyone had such problem ?
>> >
>> > I'm using a system that merges calls between pure openscenegraph updates
>> > and
>> > opengl updates. And I also have a component (PositionAttitudeTransform)
>> > with
>> > a couple of child drawing objects that must be connected each other by a
>> > simple line....
>> >
>> > But when I try to add a new line as a common glBegin( GL_LINES ) under
>> > openscenegraph, the drawing is rendered as LINE_STIPPLE, even if I
>> > change it
>> > from LINES to LINE_LOOP or other stuff...
>> >
>> > A don't know if StateSet could resolve the problem. Because I've already
>> > tried to use it but I guess that I did not make the correct code struct
>> > for
>> > its calling, and the results were the same.
>> >
>> >          Also, if I use standalone openscenegraph application based on
>> > osgViewer, the following code (applied to the compound GL-OSG system)
>> > works
>> > with no problem:
>> >
>> >
>> > /*********************************************************************************************************************************/
>> >     Symbol *s1 = getSymbol( str_symbol1 );
>> >     Symbol *s2 = getSymbol( str_symbol2 );
>> >
>> >     osg::Vec3 p1 = s1->getPosition();
>> >     osg::Vec3 p2 = s2->getPosition();
>> >
>> >     osg::Vec4 color = s1->getTextColor();
>> >
>> >     osg::ref_ptr< osg::Geometry > line = new osg::Geometry;
>> >
>> >     osg::ref_ptr< osg::Vec3Array > vertex = new osg::Vec3Array;
>> >     vertex->push_back( p1 );
>> >     vertex->push_back( p2 );
>> >     line->setVertexArray( vertex.get() );
>> >
>> > /// the problem should be resolved here with osg::DrawArrays::LINES
>> > declaration
>> >     osg::ref_ptr< osg::DrawArrays > vindex = new osg::DrawArrays(
>> > osg::DrawArrays::LINES, 0, 2 );
>> >     line->addPrimitiveSet( vindex.get() );
>> >
>> >
>> > /*********************************************************************************************************************************/
>> >
>> > Thanks anyway if anyone spend a time reading the message
>> >
>> > I'm new to openscenegraph with just a couple of tests as experience and
>> > a
>> > complex system that already use osg to be studied in my hands....
>> >
>> > Kindly
>> > Andre
>> >
>> > _______________________________________________
>> > 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
>
>
> _______________________________________________
> 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