Re: [osg-users] Line-laser based, 3D point cloud capture from camera

2011-02-10 Thread Martin Naylor
Morning J

What were the results like?

I tried with a red laser, need to get a green one and try that, supposed to
be much better results with a green one.

 

Cheers

 

Martin.

 

 

From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Eduardo
Poyart
Sent: 10 February 2011 06:13
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Line-laser based, 3D point cloud capture from
camera

 

http://www.david-laserscanner.com/

 

Due to that post, I bought a line laser and tried out the software! :)

 

Cheers

Eduardo

 







___
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] pUserData crash when run .exe in debug or release version

2011-02-10 Thread Martin Naylor
Hi Nan,
I don't believe its a bug in OSG itself, it's the stupid Microsoft debug
libraries.
I suspect you are linking against the third party libraries built for
VS2005, hence its works ok in debug mode.
It's certainly worth applying SP1 for VS2008, but you also must make sure
you linking against the third party libraries built with the version of VS
you 
are using.
You could download the libs for vs2008 and use those and see if it
builds/runs ok in debug mode?

Let us know how it goes.

Cheers

Martin.


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Nan WANG
Sent: 09 February 2011 19:51
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] pUserData crash when run .exe in debug or release
version

Hi, everyone:

When I compile osg2cpp.cpp (from example folder) in VS2005 sp1, both debug
and relase version are correct. No problem of running them.

But when I tried with VS2008, both debug and release version stopped by an
error:  Expression: _CrtIsValidHeapPointer(pUserData)

Looks like:

[Image: http://i53.tinypic.com/2yz0kl3.jpg ]

BTW: in VS2008, in release version,  running .exe file without VisualStudio
IDE is okbut still some errors.

What is the problem? Who to fix this bug? Install SP1 for VS2008?

Thank you!

Cheers,
Nan

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





___
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] Compile problems against recent ffmpeg

2011-02-10 Thread Martin von Gagern
Hi!

As reported on http://bugs.gentoo.org/347481 the osg 2.8.3 release (and
current trunk probably as well, as far as I can tell) has problems
compiling against recent ffmpeg snapshots. The critical commit there is
SVN revision 25652 from 2010-11-02, which is now in git:

http://git.ffmpeg.org/?p=ffmpeg.git;a=commitdiff;h=262d1c5d2206467809fd

By default it introduces a preprocessor macro called SampleFormat:

#define SampleFormat AVSampleFormat

As a consequence, all references to SampleFormat in osg will be
rewritten, even if they refer to some other C++ namespace. This leads to
errors like this:

error: ‘AVSampleFormat’ in class ‘osg::AudioStream’ does not name a type

Luckily the commit also provides a means to avoid the definition. Simply
include this line before including the av*.h from ffmpeg:

#define FF_API_OLD_SAMPLE_FMT 0

I'd suggest you include this line in FFmpegHeaders.hpp:

--- OpenSceneGraph-2.8.3.orig/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp
+++ OpenSceneGraph-2.8.3/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp
@@ -6,6 +6,7 @@
 extern C
 {
 #define __STDC_CONSTANT_MACROS
+#define FF_API_OLD_SAMPLE_FMT 0
 #include errno.h// for error codes defined in avformat.h
 #include stdint.h
 #include avcodec.h

You can also download this patch from the Gentoo bug report:
http://bugs.gentoo.org/attachment.cgi?id=261477
Feel free to include this in the osg sources.

If you want to reply to this mail, please cc a personal copy to me, as I
won't follow list mails too closely.

Greetings,
 Martin von Gagern

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


[osg-users] Qt Library

2011-02-10 Thread Werner Modenbach
Hi all,

we adapted our software to the new Qt library, which is a good thing!

Testing it on various systems leads us to some problems. The programs crash 
sometimes and we successfully catched the problem in the debuger.

The crash happens when QPainter and osg paint to the screen simultaneously in 
two different threads.
But! We can assure that the frame() method is called in the gui thread and 
setThreadingModel(osgViewer::Viewer::SingleThreaded);
is called in the constructor of the widget. Does anybody have an explanation 
for that? Is osg creating its own painting thread even after setting it to 
SingleThreaded?

Thanks for any hints.

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


Re: [osg-users] Compile problems against recent ffmpeg

2011-02-10 Thread Robert Osfield
Hi Martin,

Could you send me the whole modified file, thanks.

Robert.

On Thu, Feb 10, 2011 at 9:45 AM, Martin von Gagern
martin.vgag...@gmx.net wrote:
 Hi!

 As reported on http://bugs.gentoo.org/347481 the osg 2.8.3 release (and
 current trunk probably as well, as far as I can tell) has problems
 compiling against recent ffmpeg snapshots. The critical commit there is
 SVN revision 25652 from 2010-11-02, which is now in git:

 http://git.ffmpeg.org/?p=ffmpeg.git;a=commitdiff;h=262d1c5d2206467809fd

 By default it introduces a preprocessor macro called SampleFormat:

 #define SampleFormat AVSampleFormat

 As a consequence, all references to SampleFormat in osg will be
 rewritten, even if they refer to some other C++ namespace. This leads to
 errors like this:

 error: ‘AVSampleFormat’ in class ‘osg::AudioStream’ does not name a type

 Luckily the commit also provides a means to avoid the definition. Simply
 include this line before including the av*.h from ffmpeg:

 #define FF_API_OLD_SAMPLE_FMT 0

 I'd suggest you include this line in FFmpegHeaders.hpp:

 --- OpenSceneGraph-2.8.3.orig/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp
 +++ OpenSceneGraph-2.8.3/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp
 @@ -6,6 +6,7 @@
  extern C
  {
  #define __STDC_CONSTANT_MACROS
 +#define FF_API_OLD_SAMPLE_FMT 0
  #include errno.h    // for error codes defined in avformat.h
  #include stdint.h
  #include avcodec.h

 You can also download this patch from the Gentoo bug report:
 http://bugs.gentoo.org/attachment.cgi?id=261477
 Feel free to include this in the osg sources.

 If you want to reply to this mail, please cc a personal copy to me, as I
 won't follow list mails too closely.

 Greetings,
  Martin von Gagern

 ___
 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] [QUESTION]How Projection Referential Cameras Work in OSG?

2011-02-10 Thread Helen Diez
Hi,

I'm having problems trying to view the osganimationpath example in stereo mode, 
the spheres converge at the center of the screen.

Has anyone done this successfully ?


Thank you!

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





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


Re: [osg-users] Qt Library

2011-02-10 Thread Gianni Ambrosio
Hi,
I'm not sure but a crash related to QPainter I experienced in the past was 
caused by mixing debug and release libs.

Cheers,
Gianni

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





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


Re: [osg-users] [osgPlugins] Could not find plugin to read object from the file..

2011-02-10 Thread Gianni Ambrosio

zaids wrote:
 Hi,
 
 why dont you refer to some openscene graph book ...hope it will help :)


Not really funny ... 

I have the same problem loading png images with precompiled OSG 2.8.3 libs. I 
think there is an issue somewhere and I think I already posted my problem in 
the past.

Gianni

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





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


Re: [osg-users] [ANN] MS Kinect - official drivers available

2011-02-10 Thread Mourad Boufarguine
Hi,

I came across an OpenNI middleware called FAAST (Flexible Action and
Articulated Skeleton Toolkit) which includes a custom VRPN server to stream
the user's skeleton over a network (wich can be integrated into an osg
application using osgVRPN nodekit). It also emulate keyboard and mouse input
triggered by body posture and specific gestures.

Currently available for Windows only. Source code and linux port to be
published in the near future.

I did not try it (yet), just wanted to share it.

http://projects.ict.usc.edu/mxr/faast/

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


Re: [osg-users] Compile problems against recent ffmpeg

2011-02-10 Thread Martin von Gagern
On 10.02.2011 11:31, Robert Osfield wrote:
 Could you send me the whole modified file, thanks.

For the list (and therefore for the record as well):
Sent the file to Robert via private mail, and he committed the fix as
http://www.openscenegraph.org/projects/osg/changeset/12154/

Thanks, and all the best,
 Martin von Gagern



signature.asc
Description: OpenPGP digital signature
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] pUserData crash when run .exe in debug or release version

2011-02-10 Thread Nan WANG
Thanks Martin Naylor,
I found my problem, it is exactly what you said~I linked with vs2005 lib in 
VS2008. After I compile OSG in VS2008, this problem has been solved ~

Thanks for all concerning about this stupid question.

Nan

Martin Naylor wrote:
 Hi Nan,
 I don't believe its a bug in OSG itself, it's the stupid Microsoft debug
 libraries.
 I suspect you are linking against the third party libraries built for
 VS2005, hence its works ok in debug mode.
 It's certainly worth applying SP1 for VS2008, but you also must make sure
 you linking against the third party libraries built with the version of VS
 you 
 are using.
 You could download the libs for vs2008 and use those and see if it
 builds/runs ok in debug mode?
 
 Let us know how it goes.
 
 Cheers
 
 Martin.
 
 
 -Original Message-
 From: 
 [mailto:] On Behalf Of Nan WANG
 Sent: 09 February 2011 19:51
 To: 
 Subject:  pUserData crash when run .exe in debug or release
 version
 
 Hi, everyone:
 
 When I compile osg2cpp.cpp (from example folder) in VS2005 sp1, both debug
 and relase version are correct. No problem of running them.
 
 But when I tried with VS2008, both debug and release version stopped by an
 error:  Expression: _CrtIsValidHeapPointer(pUserData)
 
 Looks like:
 
 [Image: http://i53.tinypic.com/2yz0kl3.jpg ]
 
 BTW: in VS2008, in release version,  running .exe file without VisualStudio
 IDE is okbut still some errors.
 
 What is the problem? Who to fix this bug? Install SP1 for VS2008?
 
 Thank you!
 
 Cheers,
 Nan
 
 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=36506#36506
 
 
 
 
 
 ___
 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=36525#36525





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


Re: [osg-users] Qt Library

2011-02-10 Thread Werner Modenbach
Hi Gianni,

not on Linux. Bur I'll get into it again. Thanks for your reply.

- Werner -
 Hi,
 I'm not sure but a crash related to QPainter I experienced in the past was
 caused by mixing debug and release libs.
 
 Cheers,
 Gianni
 
 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=36521#36521
 
 
 
 
 
 ___
 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] osgShadow texture problem

2011-02-10 Thread daniele argiolas
I find the problem:
some models (made in Maya and exported in Collada then in osg), in osg file 
have texture 0 empty. Perhaps in shadowed scene this is an important value. 
If I remove empty texture and I change other texture numbers it works.

Have you got some ideas about this?

thanks

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





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


[osg-users] Using osgShadows I can't see widgets

2011-02-10 Thread daniele argiolas
Hi, when I use osgShadow, when I put enableShadow=true:


Code:
if(enableShadow)
{
shadowedScene-setReceivesShadowTraversalMask(ReceivesShadowTraversalMask);
shadowedScene-setCastsShadowTraversalMask(CastsShadowTraversalMask);

osg::ref_ptrosgShadow::ShadowMap sm = new osgShadow::ShadowMap;
shadowedScene-setShadowTechnique(sm.get());
}



I can't see anymore my widgets.

I make my widgets with 

Code:
camera = windowManager-createParentOrthoCamera(); 


In windowManager I add box, label, widget etc.

and then 
Code:
shadowedScene-addChild(camera);



Why?

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





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


Re: [osg-users] OSG 2.9.10 on iOS

2011-02-10 Thread Alessandro Terenzi
Thanks everybody,
I finally managed to build fo iOS using the above instructions and the
latest sources from svn.

Cheers.
Alessandro

On Mon, Jan 31, 2011 at 1:52 PM, Stephan Maximilian Huber 
ratzf...@digitalmind.de wrote:

 Hi Alessandro,

 Am 28.01.11 18:31, schrieb Alessandro Terenzi:

  but I was still getting linking errors. The linker complied because it
 could
  not find both the Cocoa and OpenGL frameworks (note: I wrote OpenGL not
  OpenGLES, even though I checked only the GLES1 option in CMake). So I
 tried
  to remove them from the Other Linker Flags, but I was getting other
 errors
  because of references not found by imageio (but in CMake it was set
  quicktime not imageio), so I also removed imageio from the linker's
 flags.

 Quicktime is not supported for IOS, please use only imageio. It's a
 known problem, that the xcode-project built by cmake for the
 SimplevieweriPhone-example is not working right out of the box.

 You'll have to add the CoreGraphics-framework for the imageio-plugin.

  After all the above steps, I managed to build the application, but it
  crashes while it is starting, in the console I get:
 
 Program received signal:  “EXC_BAD_ACCESS”.
 
  warning: Could not open fork matching current architecture for OSO
 archive
 
 /Users/alex/Desktop/Build/3rdParty-iOS/lib/libFreeType_iphone_universal.a
 
  warning: Could not open OSO file
 
 /Users/alex/Desktop/Build/3rdParty-iOS/lib/libFreeType_iphone_universal.a(ftinit.o)
  to scan for pubtypes for objfile
 
 /Users/alex/Desktop/Build/OpenSceneGraph-2.9.11-build-iOS/bin/osgViewerIPhone.app/osgViewerIPhone
  ...(and many copies of this last warning)...

 Sorry, can't comment that much about the freetype-issue. Try the
 simpleviewer-app without the freetype-plugin and -lib as a first step.

  The last thing I tried was to start from scratch but set CMake to use
  imageio and not quicktime but same runtime error (this solved some
 linking
  problems described above, but of course not the runtime crash).
 
  Am I suppose to use another version of freetype?

 AFAIK no, it's a universal-lib (i386 + arm) and had worked in the past.

 cheers,

 Stephan
 ___
 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] Line-laser based, 3D point cloud capture from camera

2011-02-10 Thread Eduardo Poyart
They were ok when using a high quality HD camera (which recorded to a memory
card and then I transferred the file to the computer, so it wasn't
real-time). I didn't construct the back planes very well though. I didn't
spend too much time on it.

Cheers
Eduardo


On Thu, Feb 10, 2011 at 1:30 AM, Martin Naylor martinnay...@virginmedia.com
 wrote:

 Morning J

 What were the results like?

 I tried with a red laser, need to get a green one and try that, supposed to
 be much better results with a green one.



 Cheers



 Martin.





 *From:* osg-users-boun...@lists.openscenegraph.org [mailto:
 osg-users-boun...@lists.openscenegraph.org] *On Behalf Of *Eduardo Poyart
 *Sent:* 10 February 2011 06:13
 *To:* osg-users@lists.openscenegraph.org
 *Subject:* Re: [osg-users] Line-laser based, 3D point cloud capture from
 camera



 http://www.david-laserscanner.com/



 Due to that post, I bought a line laser and tried out the software! :)



 Cheers

 Eduardo









 ___
 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] OSG 2.9.10 on iOS

2011-02-10 Thread Alessandro Terenzi
Sorry, my mistake, actually I managed to build for iOS (having added
CoreGraphics framework), but the viewer is still crashing with the same
error related to freetype.

I'm trying to figure out the differences with the project from the git
repository...

Cheers.
Alessandro

On Thu, Feb 10, 2011 at 5:52 PM, Alessandro Terenzi a.tere...@gmail.comwrote:

 Thanks everybody,
 I finally managed to build fo iOS using the above instructions and the
 latest sources from svn.

 Cheers.
 Alessandro


 On Mon, Jan 31, 2011 at 1:52 PM, Stephan Maximilian Huber 
 ratzf...@digitalmind.de wrote:

 Hi Alessandro,

 Am 28.01.11 18:31, schrieb Alessandro Terenzi:

  but I was still getting linking errors. The linker complied because it
 could
  not find both the Cocoa and OpenGL frameworks (note: I wrote OpenGL not
  OpenGLES, even though I checked only the GLES1 option in CMake). So I
 tried
  to remove them from the Other Linker Flags, but I was getting other
 errors
  because of references not found by imageio (but in CMake it was set
  quicktime not imageio), so I also removed imageio from the linker's
 flags.

 Quicktime is not supported for IOS, please use only imageio. It's a
 known problem, that the xcode-project built by cmake for the
 SimplevieweriPhone-example is not working right out of the box.

 You'll have to add the CoreGraphics-framework for the imageio-plugin.

  After all the above steps, I managed to build the application, but it
  crashes while it is starting, in the console I get:
 
 Program received signal:  “EXC_BAD_ACCESS”.
 
  warning: Could not open fork matching current architecture for OSO
 archive
 
 /Users/alex/Desktop/Build/3rdParty-iOS/lib/libFreeType_iphone_universal.a
 
  warning: Could not open OSO file
 
 /Users/alex/Desktop/Build/3rdParty-iOS/lib/libFreeType_iphone_universal.a(ftinit.o)
  to scan for pubtypes for objfile
 
 /Users/alex/Desktop/Build/OpenSceneGraph-2.9.11-build-iOS/bin/osgViewerIPhone.app/osgViewerIPhone
  ...(and many copies of this last warning)...

 Sorry, can't comment that much about the freetype-issue. Try the
 simpleviewer-app without the freetype-plugin and -lib as a first step.

  The last thing I tried was to start from scratch but set CMake to use
  imageio and not quicktime but same runtime error (this solved some
 linking
  problems described above, but of course not the runtime crash).
 
  Am I suppose to use another version of freetype?

 AFAIK no, it's a universal-lib (i386 + arm) and had worked in the past.

 cheers,

 Stephan
 ___
 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] Using osgShadows I can't see widgets

2011-02-10 Thread Sebastian Messerschmidt

Hi Daniele,

When using shadow techniques, you have to put all your child that are 
supposed to be shadowed in separate scene below the shadowed scene, as a 
sibling to the rest of the scene.

E.G. if you have a hud:

root
|

||
HUD  SHADOW
   |
   MODELS


This should fix your problem.


cheers
Sebastian

Hi, when I use osgShadow, when I put enableShadow=true:


Code:
if(enableShadow)
{
shadowedScene-setReceivesShadowTraversalMask(ReceivesShadowTraversalMask);
shadowedScene-setCastsShadowTraversalMask(CastsShadowTraversalMask);

osg::ref_ptrosgShadow::ShadowMap  sm = new osgShadow::ShadowMap;
shadowedScene-setShadowTechnique(sm.get());
}



I can't see anymore my widgets.

I make my widgets with

Code:
camera = windowManager-createParentOrthoCamera();


In windowManager I add box, label, widget etc.

and then
Code:
shadowedScene-addChild(camera);



Why?

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





___
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