Re: [osg-users] Qt 5.4 + OSG 3.2.1 + Multithreading

2015-03-10 Thread DizL
Hi,

I'm also waiting for official osg for = qt 5.4 support
temp solution is:
https://github.com/pangwa/osg/commit/cb9084bfc5ac986658779ca188a32f46b1141c68
multithreading is working but you cannot change in the fly

regards,
DizL



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


Re: [osg-users] Qt 5.4 + OSG 3.2.1 + Multithreading

2015-03-10 Thread DizL
Hi,

What about this solution http://pastebin.com/W2QJj8bQ# ???
Is it working?

regards,
DizL

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


Re: [osg-users] Qt 5.4 + OSG 3.2.1 + Multithreading

2015-03-10 Thread Robert Osfield
Hi DizL et. al,

No one has actually submitted that change, it's the first I've ever heard
of it.  So just waiting for something to be merged when nothing has been
passed on is well, going to require alot of patience.

I have look at the diff and it looks like a hack to me, and not suitable to
be merged.  It rather looks like the author of the modification doesn't
know about GraphicsConext::releaseContext()  which is how graphics contexts
are supposed to release their threads and allow a graphics context to be
re-assigned to another thread.  While GraphicsContext::makeCurrent() is
meant to acquire the context for a new thread.  All the capabilities are
their in the base class so one should not need to modify it.  The
modifications would need to be done in osgQt itself.

Robert.


On 10 March 2015 at 09:43, DizL diz...@gmail.com wrote:

 Hi,

 I'm also waiting for official osg for = qt 5.4 support
 temp solution is:

 https://github.com/pangwa/osg/commit/cb9084bfc5ac986658779ca188a32f46b1141c68
 multithreading is working but you cannot change in the fly

 regards,
 DizL



 ___
 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] Qt 5.4 + OSG 3.2.1 + Multithreading

2015-03-10 Thread jamie robertson
Hi,

We're currenltly just embedding our osg window into Qt as foreign windows as 
decribed here: http://forum.openscenegraph.org/viewtopic.php?t=13602. 

This has worked well for us since Qt 5.4 although there are a few quirks, 
notably the lack of keyboard focus in the osg window and also you cant paint 
over the top with a QPainter. But if you just want to embedd an osg window in a 
Qt widget then it works fine. No problems with multithreading either.

I've tried most of the fixes mentioned above and got them to work at the time, 
but then ran into problems in later versions of Qt when the cannot access 
QOpenGLContext in a different thread errors appeared again. I managed to fix 
the errors for a couple of Qt versions before giving up trying to keep up. 


Cheers

Jamie

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





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


[osg-users] Texture cache question

2015-03-10 Thread Trajce Nikolov NICK
Hi Community,

what was the way to have textures cached and reused on load? any hint?

Thanks a bunch!

Nick

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


[osg-users] OSG/OpenGL users in Israel?

2015-03-10 Thread Chris Hanson
  I'm going to be in Tel Aviv in a couple of weeks, and figured I'd ask
here if anybody in that area was doing anything interesting in the OSG and
OpenGL space. I'd love to drop by and talk shop.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Code Forensics • Digital Imaging • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel https://twitter.com/alphapixel facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Unresolved External on set/getUserValue

2015-03-10 Thread João
Everything else is working fine, but when I try to use the set/getUserValue 
functions, this happens:
Error   2   error LNK2001: unresolved external symbol public: bool __cdecl 
osg::Object::getUserValueint(class std::basic_stringchar,struct 
std::char_traitschar,class std::allocatorchar  const ,int )const  
(??$getUserValue@H@Object@osg@@QEBA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAH@Z)
  C:\Users\Joao\documents\visual studio 
2013\Projects\VRProjectDemo\VRProjectDemo\Main.objVRProjectDemoError
  1   error LNK2001: unresolved external symbol public: void __cdecl 
osg::Object::setUserValueint(class std::basic_stringchar,struct 
std::char_traitschar,class std::allocatorchar  const ,int const ) 
(??$setUserValue@H@Object@osg@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH@Z)
   C:\Users\Joao\documents\visual studio 
2013\Projects\VRProjectDemo\VRProjectDemo\Main.objVRProjectDemo

Anyone have a clue about which lib I am missing? It's weird considering I have 
everything else working fine, including setUserData...  
   ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Unresolved External on set/getUserValue

2015-03-10 Thread Farshid Lashkari
Hi João,

It sounds like you need to include the ValueObject header:

#include osg/ValueObject

Cheers,
Farshid

On Tue, Mar 10, 2015 at 3:38 PM, João joao.henrique.pi...@hotmail.com
wrote:

 Everything else is working fine, but when I try to use the
 set/getUserValue functions, this happens:

 Error 2 error LNK2001: unresolved external symbol public: bool __cdecl
 osg::Object::getUserValueint(class std::basic_stringchar,struct
 std::char_traitschar,class std::allocatorchar  const ,int )const 
 (??$getUserValue@H@Object@osg@@QEBA_NAEBV?$basic_string@DU?$char_traits@D
 @std@@V?$allocator@D@2@@std@@AEAH@Z) C:\Users\Joao\documents\visual
 studio 2013\Projects\VRProjectDemo\VRProjectDemo\Main.obj VRProjectDemo
 Error 1 error LNK2001: unresolved external symbol public: void __cdecl
 osg::Object::setUserValueint(class std::basic_stringchar,struct
 std::char_traitschar,class std::allocatorchar  const ,int const )
 (??$setUserValue@H@Object@osg@@QEAAXAEBV?$basic_string@DU?$char_traits@D
 @std@@V?$allocator@D@2@@std@@AEBH@Z) C:\Users\Joao\documents\visual
 studio 2013\Projects\VRProjectDemo\VRProjectDemo\Main.obj VRProjectDemo


 Anyone have a clue about which lib I am missing? It's weird considering I
 have everything else working fine, including setUserData...

 ___
 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] Unresolved External on set/getUserValue

2015-03-10 Thread João
Thank you, that worked.

Date: Tue, 10 Mar 2015 15:41:19 -0700
From: fla...@gmail.com
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Unresolved External on set/getUserValue

Hi João,
It sounds like you need to include the ValueObject header:
#include osg/ValueObject

Cheers,Farshid
On Tue, Mar 10, 2015 at 3:38 PM, João joao.henrique.pi...@hotmail.com wrote:



Everything else is working fine, but when I try to use the set/getUserValue 
functions, this happens:
Error   2   error LNK2001: unresolved external symbol public: bool __cdecl 
osg::Object::getUserValueint(class std::basic_stringchar,struct 
std::char_traitschar,class std::allocatorchar  const ,int )const  
(??$getUserValue@H@Object@osg@@QEBA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAH@Z)
  C:\Users\Joao\documents\visual studio 
2013\Projects\VRProjectDemo\VRProjectDemo\Main.objVRProjectDemoError
  1   error LNK2001: unresolved external symbol public: void __cdecl 
osg::Object::setUserValueint(class std::basic_stringchar,struct 
std::char_traitschar,class std::allocatorchar  const ,int const ) 
(??$setUserValue@H@Object@osg@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH@Z)
   C:\Users\Joao\documents\visual studio 
2013\Projects\VRProjectDemo\VRProjectDemo\Main.objVRProjectDemo

Anyone have a clue about which lib I am missing? It's weird considering I have 
everything else working fine, including setUserData...  
   

___

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