Re: [osg-users] Vector script out of range

2016-10-13 Thread Uma Devi Selvaraj
Hai Robert,
  
Yeah I am using same project setting. I am trying this simple code in 
windows 8 system.





robertosfield wrote:
> Hi Uma,
> 
> I have load the h.obj and trail.3ds files under linux without problems
> using OSG git master.
> 
> As Laurens suggestions it may be making sure that you are building
> your own application with the same setting settings a the OSG version
> you are linking to.  When setting paths to the plugins it's also worth
> setting the path to the parent directory of the plugins other than the
> plugin directory itself as the OSG appends a version number to the
> plugin directory so when you link to different versions of the OSG it
> can choose the correct plugins directory to avoid problems with mixing
> dll's.
> 
> Robert.
> 
> On 7 October 2016 at 05:21, Uma Devi Selvaraj <> wrote:
> 
> > Hi all,
> > 
> > Thanks for the reply.I am facing error not only for .ply models.  For other 
> > models like .obj, .dxf and .3ds. I have attached both the call stack of my 
> > program and one of the model I used.(call stack for all models are same)
> > 
> > 
> > 
> > ...
> > 
> > Thank you!
> > 
> > Cheers,
> > Uma
> > 
> > --
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=68898#68898
> > 
> > 
> > 
> > 
> > ___
> > osg-users mailing list
> > 
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > 
> > 
> ___
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  --
> Post generated by Mail2Forum


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68990#68990





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Vector script out of range

2016-10-13 Thread Uma Devi Selvaraj
Hi ,

I have cloned osg repo and checked out to the branch 3.4.0. I am facing 
same problem for bunny.ply model (Smooth Triangle).Hope Laurens changes are 
merged.

... 

Thank you!

Cheers,
Uma

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68988#68988





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Vector script out of range

2016-10-07 Thread Robert Osfield
Hi Uma,

I have load the h.obj and trail.3ds files under linux without problems
using OSG git master.

As Laurens suggestions it may be making sure that you are building
your own application with the same setting settings a the OSG version
you are linking to.  When setting paths to the plugins it's also worth
setting the path to the parent directory of the plugins other than the
plugin directory itself as the OSG appends a version number to the
plugin directory so when you link to different versions of the OSG it
can choose the correct plugins directory to avoid problems with mixing
dll's.

Robert.

On 7 October 2016 at 05:21, Uma Devi Selvaraj  wrote:
> Hi all,
>
>  Thanks for the reply.I am facing error not only for .ply models.  For 
> other models like .obj, .dxf and .3ds. I have attached both the call stack of 
> my program and one of the model I used.(call stack for all models are same)
>
>
>
> ...
>
> Thank you!
>
> Cheers,
> Uma
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68898#68898
>
>
>
>
> ___
> 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] Vector script out of range

2016-10-07 Thread Voerman, L.
Hi Uma,
This seems like a new problem to me.
First question - are you sure you link the debug version of your program to
the debug osg libraries?
Regards, Laurens.

On Fri, Oct 7, 2016 at 6:21 AM, Uma Devi Selvaraj 
wrote:

> Hi all,
>
>  Thanks for the reply.I am facing error not only for .ply models.  For
> other models like .obj, .dxf and .3ds. I have attached both the call stack
> of my program and one of the model I used.(call stack for all models are
> same)
>
>
>
> ...
>
> Thank you!
>
> Cheers,
> Uma
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68898#68898
>
>
>
>
> ___
> 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] Vector script out of range

2016-10-06 Thread Robert Osfield
On 6 October 2016 at 13:38, Voerman, L.  wrote:
> Hi all,
> I have found the bug, and created a pull request here. The bug seems to be
> introduced 17/8/2010 (osg 2.9.11 and up).

Thanks Laurens, fix looks good, now merged with git master and the 3.4 branch
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Vector script out of range

2016-10-06 Thread Voerman, L.
Hi all,
I have found the bug, and created a pull request here
. The bug seems
to be introduced 17/8/2010 (osg 2.9.11 and up).
Regards, Laurens.

On Thu, Oct 6, 2016 at 10:56 AM, Uma Devi Selvaraj 
wrote:

> Hi Sebastain,
>
> I have executed my code in both debug and release mode. I am not
> able  to render the model using code. I have attached call stack of my
> program(scree shot).
>
> ...
>
> Thank you!
>
> Cheers,
> Uma
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68890#68890
>
>
>
>
> ___
> 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] Vector script out of range

2016-10-06 Thread Uma Devi Selvaraj
Hi Sebastain,

I have executed my code in both debug and release mode. I am not able  
to render the model using code. I have attached call stack of my program(scree 
shot). 

... 

Thank you!

Cheers,
Uma

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68890#68890



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Vector script out of range

2016-10-05 Thread Trajce Nikolov NICK
Hi Sebastian,

maybe related maybe not, I have seen this in uniform setting. Internally
the code of the uniform setting is using ::vector::first() even for
empty vectors .. just a hint and again, maybe not that issue

Nick

On Wed, Oct 5, 2016 at 5:41 PM, Sebastian Messerschmidt <
sebastian.messerschm...@gmx.de> wrote:

>
> Hi Robert,
>
> A debug assertion will happen under Visual Studio in debug mode.
> I'll will try to see what is going on, but I suspect some empty vector's
> first element  accessed.
>
> Cheers
> Sebastian
>
> Thanks for posting the model. The bunny.ply loads with the OSG git
>> master just fine when I run:
>>
>>osgviewer bunny.ply
>>
>> The bunny renders and there are no warnings to console.  There have
>> been a few changes to the ply plugin since 3.4 so can't rule out a fix
>> with rolling back to 3.4 and trying it.
>>
>> Robert.
>>
>> On 5 October 2016 at 05:43, Uma Devi Selvaraj 
>> wrote:
>>
>>> Hi Sebastain
>>>
>>>  I have attached the model.(Since not .ply extension is not allowed
>>> I have zipped model) I have build osg 3.4.0 in windows.
>>>
>>>
>>> SMesserschmidt wrote:
>>>
 Hi Uma,

 There is no model attached.
 Without giving us a model that shows this behavior and some basic
 information on your OSG-Version, build environment etc. it is hard to
 guess what is going on.
 Most likely the ply-reader produces the error, so please try to attach
 the model so we can investigate. In case you are building OSG yourself,
 it should be easy to attach a debugger and check what is going on for
 yourself ...

 Cheers
 Sebastian

 Hi,
>
> I have tried a simple program in C++ to render 3d model using Osg
> Viewer.
> When I am trying to run the code I am getting "vector script out of
> range error " for some 3d model.
>
> This is my code.
>
> /*osg header files */
>
> int main(int argc,char**argv)
> {
>
>
>  /*using ref_ptr*/
>  osg::ref_ptr root = osgDB::readNodeFile("bunny.ply");
>  osgViewer::Viewer viewer;
>  viewer.setSceneData(root.get());
>  return viewer.run();
> }
>
> can some body tell me what is the problem. but it is working for some
> models. I have attached the 3d model file. I have loaded 2963 KB file
>
>
> Thank you!
>
> Cheers,
> Uma
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68842#68842
>
>
>
>
>
> ___
> osg-users mailing list
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opens
> cenegraph.org
>
> ___
 osg-users mailing list

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-opens
 cenegraph.org

   --
 Post generated by Mail2Forum

>>>
>>> --
>>> Read this topic online here:
>>> http://forum.openscenegraph.org/viewtopic.php?p=68853#68853
>>>
>>>
>>>
>>>
>>> ___
>>> osg-users mailing list
>>> osg-users@lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opens
>>> cenegraph.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
>



-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Vector script out of range

2016-10-05 Thread Sebastian Messerschmidt


Hi Robert,

A debug assertion will happen under Visual Studio in debug mode.
I'll will try to see what is going on, but I suspect some empty 
vector's  first element  accessed.


Cheers
Sebastian

Thanks for posting the model. The bunny.ply loads with the OSG git
master just fine when I run:

   osgviewer bunny.ply

The bunny renders and there are no warnings to console.  There have
been a few changes to the ply plugin since 3.4 so can't rule out a fix
with rolling back to 3.4 and trying it.

Robert.

On 5 October 2016 at 05:43, Uma Devi Selvaraj  wrote:

Hi Sebastain

 I have attached the model.(Since not .ply extension is not allowed I have 
zipped model) I have build osg 3.4.0 in windows.


SMesserschmidt wrote:

Hi Uma,

There is no model attached.
Without giving us a model that shows this behavior and some basic
information on your OSG-Version, build environment etc. it is hard to
guess what is going on.
Most likely the ply-reader produces the error, so please try to attach
the model so we can investigate. In case you are building OSG yourself,
it should be easy to attach a debugger and check what is going on for
yourself ...

Cheers
Sebastian


Hi,

I have tried a simple program in C++ to render 3d model using Osg Viewer.
When I am trying to run the code I am getting "vector script out of range error 
" for some 3d model.

This is my code.

/*osg header files */

int main(int argc,char**argv)
{


 /*using ref_ptr*/
 osg::ref_ptr root = osgDB::readNodeFile("bunny.ply");
 osgViewer::Viewer viewer;
 viewer.setSceneData(root.get());
 return viewer.run();
}

can some body tell me what is the problem. but it is working for some models. I 
have attached the 3d model file. I have loaded 2963 KB file


Thank you!

Cheers,
Uma

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68842#68842





___
osg-users mailing list

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

  --
Post generated by Mail2Forum


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68853#68853




___
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] Vector script out of range

2016-10-05 Thread Robert Osfield
Hi Uma,

Thanks for posting the model. The bunny.ply loads with the OSG git
master just fine when I run:

  osgviewer bunny.ply

The bunny renders and there are no warnings to console.  There have
been a few changes to the ply plugin since 3.4 so can't rule out a fix
with rolling back to 3.4 and trying it.

Robert.

On 5 October 2016 at 05:43, Uma Devi Selvaraj  wrote:
> Hi Sebastain
>
> I have attached the model.(Since not .ply extension is not allowed I have 
> zipped model) I have build osg 3.4.0 in windows.
>
>
> SMesserschmidt wrote:
>> Hi Uma,
>>
>> There is no model attached.
>> Without giving us a model that shows this behavior and some basic
>> information on your OSG-Version, build environment etc. it is hard to
>> guess what is going on.
>> Most likely the ply-reader produces the error, so please try to attach
>> the model so we can investigate. In case you are building OSG yourself,
>> it should be easy to attach a debugger and check what is going on for
>> yourself ...
>>
>> Cheers
>> Sebastian
>>
>> >
>> > Hi,
>> >
>> > I have tried a simple program in C++ to render 3d model using Osg Viewer.
>> > When I am trying to run the code I am getting "vector script out of range 
>> > error " for some 3d model.
>> >
>> > This is my code.
>> >
>> > /*osg header files */
>> >
>> > int main(int argc,char**argv)
>> > {
>> >
>> >
>> > /*using ref_ptr*/
>> > osg::ref_ptr root = osgDB::readNodeFile("bunny.ply");
>> > osgViewer::Viewer viewer;
>> > viewer.setSceneData(root.get());
>> > return viewer.run();
>> > }
>> >
>> > can some body tell me what is the problem. but it is working for some 
>> > models. I have attached the 3d model file. I have loaded 2963 KB file
>> >
>> >
>> > Thank you!
>> >
>> > Cheers,
>> > Uma
>> >
>> > --
>> > Read this topic online here:
>> > http://forum.openscenegraph.org/viewtopic.php?p=68842#68842
>> >
>> >
>> >
>> >
>> >
>> > ___
>> > osg-users mailing list
>> >
>> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>> >
>>
>> ___
>> osg-users mailing list
>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>  --
>> Post generated by Mail2Forum
>
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68853#68853
>
>
>
>
> ___
> 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] Vector script out of range

2016-10-04 Thread Sebastian Messerschmidt



Hi Uma,

There is no model attached.
Without giving us a model that shows this behavior and some basic 
information on your OSG-Version, build environment etc. it is hard to 
guess what is going on.
Most likely the ply-reader produces the error, so please try to attach 
the model so we can investigate. In case you are building OSG yourself, 
it should be easy to attach a debugger and check what is going on for 
yourself ...


Cheers
Sebastian

Hi,

I have tried a simple program in C++ to render 3d model using Osg Viewer.
When I am trying to run the code I am getting "vector script out of range error 
" for some 3d model.

This is my code.

/*osg header files */

int main(int argc,char**argv)
{


/*using ref_ptr*/
osg::ref_ptr root = osgDB::readNodeFile("bunny.ply");
osgViewer::Viewer viewer;
viewer.setSceneData(root.get());
return viewer.run();
}

can some body tell me what is the problem. but it is working for some models. I 
have attached the 3d model file. I have loaded 2963 KB file


Thank you!

Cheers,
Uma

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68842#68842





___
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