Re: [osg-users] osg3.0.0+qt5.2.1 got error:C2371: “GLintptr”: redefinition?

2014-05-20 Thread Mike Krus
Hi

don't think it will work with the Angle based build of Qt, you need to get the 
OpenGL precompiled one, or build from source with the -opengl desktop config 
option


Mike


On 20 May 2014, at 14:42, sunpeng 
blueva...@gmail.commailto:blueva...@gmail.com wrote:

When I use the following codes:


#include QApplication

#include QGridLayout

#include osgViewer/Viewer

#include osg/Node

#include osg/Geode

#include osg/Group

#include osgDB/ReadFile

#include osgDB/WriteFile

#include osgUtil/Optimizer

#include osgQt/GraphicsWindowQt


int main(int argc, char *argv[])

{

QApplication a(argc, argv);

//1.构建第一个窗口

MainWindow window1;

window1.move(1920*0,0);


osgViewer::Viewer* viewer = new osgViewer::Viewer();

osg::Group* root = new osg::Group();

osg::Node* node = new osg::Node();

node = osgDB::readNodeFile(cow.osg);

osgUtil::Optimizer optimizer ;

optimizer.optimize(root) ;

viewer-setSceneData(root);

viewer-realize();

osg::Camera* camera = viewer-getCamera();

osgQt::GraphicsWindowQt* gw = dynamic_castosgQt::GraphicsWindowQt*( 
camera-getGraphicsContext() );

...


It seems onceI use GraphicsWindowQt I got compiling error:


D:\Qt\Qt5.2.1\5.2.1\msvc2010\include\QtANGLE\GLES2\gl2.h:38: error: C2371: 
“GLintptr”:redefinition; different basic types
D:\project\iBuilding\3rdparty\OpenSceneGraph\include\osg\BufferObject:84: see 
“GLintptr”

D:\Qt\Qt5.2.1\5.2.1\msvc2010\include\QtANGLE\GLES2\gl2.h:39: error: C2371: 
“GLsizeiptr”: redefinition; different basic types
D:\project\iBuilding\3rdparty\OpenSceneGraph\include\osg\BufferObject:85: refer 
to “GLsizeiptr”
...

D:\Qt\Qt5.2.1\5.2.1\msvc2010\include\QtGui\qopengl.h:97: error: C2371: 
“GLdouble”: redefinition; different basic types
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL\gl.h:55: see 
“GLdouble”

I googled, and find this post:
http://stackoverflow.com/questions/17123100/glew-and-qt5-redefinition-of-headers

Are there any good advice? I just want integrate osg into qt window.

Thanks!

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

--
Mike Krus - Principle Software Engineer
m...@mve.commailto:m...@mve.com
Midland Valley Exploration Ltd.
2 West Regent Street
Glasgow G2 1RW - UK
Tel: +44 141 332 2681

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


Re: [osg-users] osg3.0.0+qt5.2.1 got error:C2371: “GLintptr”: redefinition?

2014-05-20 Thread Mike Krus
that precompiled version is the right one. I don't know what the issue then.




On 20 May 2014, at 15:19, sunpeng 
blueva...@gmail.commailto:blueva...@gmail.com
 wrote:

Yea, at now I use “OpenGL precompiled one”, it's 
http://download.qt-project.org/official_releases/qt/5.3/5.3.0/qt-opensource-windows-x86-msvc2010_opengl-5.3.0.exe.
 Then errors occur.
So I have to build from source with the -opengl desktop config option ? are 
there any other methods to fix this error: C2371 ?


--
Mike Krus - Principle Software Engineer
m...@mve.commailto:m...@mve.com
Midland Valley Exploration Ltd.
2 West Regent Street
Glasgow G2 1RW - UK
Tel: +44 141 332 2681

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


Re: [osg-users] Building OSG 3.2 With GDAL Support

2014-05-16 Thread Mike Krus
Hi

you should be able to specify it explicitly like this:
cmake -DGDAL_INCLUDE_DIR:PATH=\/path/to/gdal/include\ 
-DGDAL_LIBRARY:PATH=\/path/to/gdal/lib/libgdal.a\ ….

So be able to specify .so if you're using the dynamic library

This is how I do it when cross compiling for iOS.



Mike

On 16 May 2014, at 15:03, Cary, Karl A. 
karl.a.c...@leidos.commailto:karl.a.c...@leidos.com wrote:
We are finally attempting to test out OSG 3.2, but we are having some issues 
with building with GDAL. This is for CentoS 6 x86_64 with gdal 1.9.2-4, 
however, we are building 32 bit as we have some external libraries in 32 bit 
only. For 3.0, we got gdal fully installed and cmake automatically found the 
gdal headers and libraries. For some reason, with 3.2 it is not seeing them. 
Should everything be ok if we just set the paths manually, or is this pointing 
to a different issue we may have?


--
Mike Krus - Principle Software Engineer
m...@mve.commailto:m...@mve.com
Midland Valley Exploration Ltd.
2 West Regent Street
Glasgow G2 1RW - UK
Tel: +44 141 332 2681

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


Re: [osg-users] iOS OSG

2013-12-10 Thread Mike Krus
Hi


right got complete build, Xcode 4.6, SDK 6.1, OSG 3.2 branch (built with 
OpenGLES 2.0 only). All links and runs, it loads .osgt files, but I get errors 
at runtime when shaders get compiled (see below). I'm not adding the shaders, 
it seems to be the default ones OSG adds.  The code is basically the same as 
osgviewerIPhone…


any ideas as to why it may not work?



Cheers,

Mike





Compiling VERTEX source:
1: uniform mat3 osg_NormalMatrix;
2: uniform mat4 osg_ModelViewProjectionMatrix;
3: uniform mat4 osg_ModelViewMatrix;
4: attribute vec3 osg_Normal;
5: attribute vec4 osg_Vertex;
6: varying vec3 normalDir;
7: varying vec3 lightDir;
8: varying vec3 viewDir;
9: 
   10: void main()
   11: {
   12:   gl_Position = osg_ModelViewProjectionMatrix * osg_Vertex;
   13:   normalDir = osg_NormalMatrix * osg_Normal;
   14:   vec3 dir = -vec3(osg_ModelViewMatrix * osg_Vertex);
   15:   viewDir = dir;
   16:   vec4 lpos = gl_LightSource[0].position;
   17:   if (lpos.w == 0.0)
   18: lightDir = lpos.xyz;
   19:   else
   20: lightDir = lpos.xyz + dir;
   21: }

VERTEX glCompileShader  FAILED
VERTEX Shader  infolog:
ERROR: 0:16: Use of undeclared identifier 'gl_LightSource'
ERROR: 0:17: Use of undeclared identifier 'lpos'
ERROR: 0:18: Use of undeclared identifier 'lpos'
ERROR: 0:20: Use of undeclared identifier 'lpos'







On 9 Dec 2013, at 11:28, Mike Krus m...@mve.com wrote:
 On 9 Dec 2013, at 10:52, Robert Osfield robert.osfi...@gmail.com wrote:
 Does the OSG-3.2 branch compile with osgEarth?  If so you could try this as 
 it contains a few of the build fixes that aren't in OSG-3.2.0.  
 I'll have to try. I'm building OSG 3.2.0 (tag)
 
 
 Mike
 ___
 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] iOS OSG

2013-12-09 Thread Mike Krus
Hi

I just tried with an .osgt file (cow.osgt) and it's still trying to do the 
dylib plugin loading dance…


Mike


On 9 Dec 2013, at 07:52, Stephan Maximilian Huber 
lis...@stephanmaximilianhuber.com wrote:

 Hi,
 
 any chance you are opening osg-files stored with the deprecated format? 
 (Usually *.osg). The new serializer handle files with the extension osgt, 
 osgb and osgx. 
 
 To support the deprecated osg-file-format have a look into the source of 
 osgstaticviewer.
 
 cheers,
 
 Stephan
 Am 08.12.2013 um 18:18 schrieb Mike Krus m...@mve.com:
 
 Hi
 
 have OSG statically built for iOS but for some reason it's still trying to 
 use dylibs when opening .osg files?
 
 I've added the correct macros (I think):
 
 USE_OSGPLUGIN(osg)
 USE_SERIALIZER_WRAPPER_LIBRARY(osg)
 
 but I get the errors below.
 
 
 any ideas?  cheers,
 
 
 Mike
 
 
 FindFileInPath() : trying 
 /private/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/glider.osg
  ...
 FindFileInPath() : USING 
 /private/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/glider.osg
 itr='/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/PlugIns'
 FindFileInPath() : trying 
 /var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/PlugIns/osgPlugins-3.2.0/osgdb_osg.so
  ...
 itr='/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/Library/Application
  Support/OpenSceneGraph/PlugIns'
 FindFileInPath() : trying 
 /var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/Library/Application
  Support/OpenSceneGraph/PlugIns/osgPlugins-3.2.0/osgdb_osg.so ...
 itr='/Library/Application Support/OpenSceneGraph/PlugIns'
 FindFileInPath() : trying /Library/Application 
 Support/OpenSceneGraph/PlugIns/osgPlugins-3.2.0/osgdb_osg.so ...
 itr='/Network/Library/Application Support/OpenSceneGraph/PlugIns'
 FindFileInPath() : trying /Network/Library/Application 
 Support/OpenSceneGraph/PlugIns/osgPlugins-3.2.0/osgdb_osg.so ...
 itr='/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/PlugIns'
 FindFileInPath() : trying 
 /var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/PlugIns/osgdb_osg.so
  ...
 itr='/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/Library/Application
  Support/OpenSceneGraph/PlugIns'
 FindFileInPath() : trying 
 /var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/Library/Application
  Support/OpenSceneGraph/PlugIns/osgdb_osg.so ...
 itr='/Library/Application Support/OpenSceneGraph/PlugIns'
 FindFileInPath() : trying /Library/Application 
 Support/OpenSceneGraph/PlugIns/osgdb_osg.so ...
 itr='/Network/Library/Application Support/OpenSceneGraph/PlugIns'
 FindFileInPath() : trying /Network/Library/Application 
 Support/OpenSceneGraph/PlugIns/osgdb_osg.so ...
 Warning: dynamic library 'osgPlugins-3.2.0/osgdb_osg.so' does not exist (or 
 isn't readable):
 dlopen(osgPlugins-3.2.0/osgdb_osg.so, 9): image not found
 DynamicLibrary::failed loading osgPlugins-3.2.0/osgdb_osg.so
 No data loaded
 ___
 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] iOS OSG

2013-12-09 Thread Mike Krus
Hi

I was (and indeed it was easier to setup the build). However it seems osgearth 
had not caught up with some of the API changes yet (wouldn't build due to some 
changed return type I think, don't have the specific error message).  I'll try 
again later this week.

OSG + osgearth + Qt 5.2CR1  is a bit too bleeding edge to my taste ;-)



Mike


On 9 Dec 2013, at 10:22, Robert Osfield 
robert.osfi...@gmail.commailto:robert.osfi...@gmail.com
 wrote:

I can't comment on the specifics of iOS support as I haven't got an iOS device 
to test against.  What I can say is that since OSG-3.2 I've checked in various 
improvements to the iOS support from Stephan and others, these might address 
some of the problems you have.  Could you try out the svn/trunk version of the 
OSG?


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


Re: [osg-users] iOS OSG

2013-12-09 Thread Mike Krus



On 9 Dec 2013, at 10:52, Robert Osfield 
robert.osfi...@gmail.commailto:robert.osfi...@gmail.com wrote:
Does the OSG-3.2 branch compile with osgEarth?  If so you could try this as it 
contains a few of the build fixes that aren't in OSG-3.2.0.
I'll have to try. I'm building OSG 3.2.0 (tag)


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


[osg-users] iOS OSG

2013-12-08 Thread Mike Krus
Hi

have OSG statically built for iOS but for some reason it's still trying to use 
dylibs when opening .osg files?

I've added the correct macros (I think):

USE_OSGPLUGIN(osg)
USE_SERIALIZER_WRAPPER_LIBRARY(osg)

but I get the errors below.


any ideas?  cheers,


Mike


FindFileInPath() : trying 
/private/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/glider.osg
 ...
FindFileInPath() : USING 
/private/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/glider.osg
itr='/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/PlugIns'
FindFileInPath() : trying 
/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/PlugIns/osgPlugins-3.2.0/osgdb_osg.so
 ...
itr='/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/Library/Application
 Support/OpenSceneGraph/PlugIns'
FindFileInPath() : trying 
/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/Library/Application
 Support/OpenSceneGraph/PlugIns/osgPlugins-3.2.0/osgdb_osg.so ...
itr='/Library/Application Support/OpenSceneGraph/PlugIns'
FindFileInPath() : trying /Library/Application 
Support/OpenSceneGraph/PlugIns/osgPlugins-3.2.0/osgdb_osg.so ...
itr='/Network/Library/Application Support/OpenSceneGraph/PlugIns'
FindFileInPath() : trying /Network/Library/Application 
Support/OpenSceneGraph/PlugIns/osgPlugins-3.2.0/osgdb_osg.so ...
itr='/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/PlugIns'
FindFileInPath() : trying 
/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/osgText.app/PlugIns/osgdb_osg.so
 ...
itr='/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/Library/Application
 Support/OpenSceneGraph/PlugIns'
FindFileInPath() : trying 
/var/mobile/Applications/D186F562-109C-4D92-9CD6-777C1256E566/Library/Application
 Support/OpenSceneGraph/PlugIns/osgdb_osg.so ...
itr='/Library/Application Support/OpenSceneGraph/PlugIns'
FindFileInPath() : trying /Library/Application 
Support/OpenSceneGraph/PlugIns/osgdb_osg.so ...
itr='/Network/Library/Application Support/OpenSceneGraph/PlugIns'
FindFileInPath() : trying /Network/Library/Application 
Support/OpenSceneGraph/PlugIns/osgdb_osg.so ...
Warning: dynamic library 'osgPlugins-3.2.0/osgdb_osg.so' does not exist (or 
isn't readable):
dlopen(osgPlugins-3.2.0/osgdb_osg.so, 9): image not found
DynamicLibrary::failed loading osgPlugins-3.2.0/osgdb_osg.so
No data loaded
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] osgQt (3.2), osgearth and Qt 5

2013-09-17 Thread Mike Krus
Hi

getting a crash on startup with osgQt (from osg 3.2.0), osgearth (from trunck) 
and Qt 5.1.0


Basically:
- osgearth queries capabilities by calling 
osg::GraphicsContext::createGraphicsContext()
- this creates a GraphicsWindowQt
- this in turns creates a GLWidget, setting GraphicsWindowQt::_ownsWidget to 
true
- once osgearth is done with the GraphicsWindow, this goes out of scope and is 
deleted
- in it's destructor, GraphicsWindow removes itself from the GLWidget, BUT DOES 
NOT DELETE IT
- later at some point Qt5 sends resize events to the widget (because 
GraphicsWindowQt)
- and GLWidget::resizeEvent() does not check it the _gw and hence crashes…

So it seems to be me GraphicsWindowQt:: ~GraphicsWindowQt() should delete the 
widget if GraphicsWindowQt created the widget in the first place…

Has anyone come across this behaviour?



Cheers,


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


Re: [osg-users] Display of lines and edges on Retina/10.8 Mac

2013-01-24 Thread Mike Krus
Hi

found the issue, thanks to a comment in another thread: the base surface had 
VBO turned on, but the highlighted area didn't. If they are both on or both 
off, then things display as expected on 10.8.

Lucky find the day before we ship, one less item for the known issues ;-)


Mike


On 21 Jan 2013, at 14:58, Mike Krus wrote:

 Hi
 
 ok, thanks for that. I'm still getting issues on an old non-retina MBP and on 
 a new shiny retina MBP.
 I'm not sync'ed up to SVN though… maybe a couple of months behind..
 
 
 Mike
 
 
 On 21 Jan 2013, at 14:49, Stephan Huber wrote:
 
 Hi Mike,
 
 your test-file works on 10.8.2 and even with a simulated retina-display w/o 
 problems. I am using the latest osg from svn/trunk
 
 
 cheers,
 Stephan
 
 
 Am 20.01.13 21:12, schrieb Mike Krus:
 Hi
 
 an update: still haven't found the reason for this, but it turns out if 
 happens on a machine with 10.8 installed, not necessarily a Retina display.
 
 Could someone with a 10.8 machine try opening the file attached in the 
 original message in osViewer and tell me if it looks like the attached 
 image?
 
 Cheers,
 
 Mike
 
 
 On 10 Jan 2013, at 11:50, Mike Krus m...@mve.com wrote:
 
 Hi
 
 I'm having a weird display issue when displaying lines and edges over a 
 surface on a Retina Mac.
 
 We display surfaces and when draw the boundary line and a subset of faces 
 (which are selected by the user) is also overlaid using faces in line 
 mode. See attached image if it's clearer…
 
 I normally works fine but on a MacBook Pro with a 15 Retina display 
 nothing shows.
 
 I've attached an osgt file that illustrates the issue. If you open in 
 osgviewer, you can't see the lines…
 
 Any ideas what may be going on?
 
 
 Cheers!
 
 
 Mike
 
 
 
 Mike Krus (PhD) - Principal Software Engineer
 
 Midland Valley Exploration
 144 West George Street
 Glasgow G2 2HG, UK
 Tel: +44 141 332 2681
 Fax: +44 141 332 6792
 Screenshot_09_01_2013_09_17.png
 MOVE_Scene.osgt___
 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
 
 
 Mike Krus (PhD) - Principal Software Engineer
 
 Midland Valley Exploration
 144 West George Street
 Glasgow G2 2HG, UK
 Tel: +44 141 332 2681
 Fax: +44 141 332 6792
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


Re: [osg-users] Display of lines and edges on Retina/10.8 Mac

2013-01-21 Thread Mike Krus
Hi

ok, thanks for that. I'm still getting issues on an old non-retina MBP and on a 
new shiny retina MBP.
I'm not sync'ed up to SVN though… maybe a couple of months behind..


Mike


On 21 Jan 2013, at 14:49, Stephan Huber wrote:

 Hi Mike,
 
 your test-file works on 10.8.2 and even with a simulated retina-display w/o 
 problems. I am using the latest osg from svn/trunk
 
 
 cheers,
 Stephan
 
 
 Am 20.01.13 21:12, schrieb Mike Krus:
 Hi
 
 an update: still haven't found the reason for this, but it turns out if 
 happens on a machine with 10.8 installed, not necessarily a Retina display.
 
 Could someone with a 10.8 machine try opening the file attached in the 
 original message in osViewer and tell me if it looks like the attached image?
 
 Cheers,
 
 Mike
 
 
 On 10 Jan 2013, at 11:50, Mike Krus m...@mve.com wrote:
 
 Hi
 
 I'm having a weird display issue when displaying lines and edges over a 
 surface on a Retina Mac.
 
 We display surfaces and when draw the boundary line and a subset of faces 
 (which are selected by the user) is also overlaid using faces in line mode. 
 See attached image if it's clearer…
 
 I normally works fine but on a MacBook Pro with a 15 Retina display 
 nothing shows.
 
 I've attached an osgt file that illustrates the issue. If you open in 
 osgviewer, you can't see the lines…
 
 Any ideas what may be going on?
 
 
 Cheers!
 
 
 Mike
 
 
 
 Mike Krus (PhD) - Principal Software Engineer
 
 Midland Valley Exploration
 144 West George Street
 Glasgow G2 2HG, UK
 Tel: +44 141 332 2681
 Fax: +44 141 332 6792
 Screenshot_09_01_2013_09_17.png
 MOVE_Scene.osgt___
 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


Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


Re: [osg-users] Display of lines and edges on Retina/10.8 Mac

2013-01-20 Thread Mike Krus
Hi

an update: still haven't found the reason for this, but it turns out if happens 
on a machine with 10.8 installed, not necessarily a Retina display.

Could someone with a 10.8 machine try opening the file attached in the original 
message in osViewer and tell me if it looks like the attached image?

Cheers,

Mike


On 10 Jan 2013, at 11:50, Mike Krus m...@mve.commailto:m...@mve.com wrote:

Hi

I'm having a weird display issue when displaying lines and edges over a surface 
on a Retina Mac.

We display surfaces and when draw the boundary line and a subset of faces 
(which are selected by the user) is also overlaid using faces in line mode. See 
attached image if it's clearer…

I normally works fine but on a MacBook Pro with a 15 Retina display nothing 
shows.

I've attached an osgt file that illustrates the issue. If you open in 
osgviewer, you can't see the lines…

Any ideas what may be going on?


Cheers!


Mike



Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792
Screenshot_09_01_2013_09_17.png
MOVE_Scene.osgt___
osg-users mailing list
osg-users@lists.openscenegraph.orgmailto: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] OSG + QT + Mac focus issue

2012-12-20 Thread Mike Krus
Hi 

I have a bug where, after closing an OSG widget, keyboard events don't get sent 
properly. 

We use Qt4.8.4 and OpenSceneGraph (latest version from SVN). We create several 
qwidgets as tabs widgets, and have the ability to close them (using a kb short 
cut or the close button on the tab). The OSG widget uses osgQt.

When the OSG widget is closed, I no longer get keyboard event anywhere in the 
app even though focus appears to be properly set.

Using the debugger, I see the event is received in QT's code in
- (void)sendEvent:(NSEvent *)event 
in qcocoasharedwindowmethods_mac_p.h 

which then calls 
[super sendEvent:event]; 
but this fails somewhere in Apple's toolkit code and the application beeps (not 
by calling Qt's beep function). 
It would normally end up calling 
- (void)keyDown:(NSEvent *)theEvent 
in qcocoaview_mac.mm 

I tracked down the closing of the OSG widget to see if it was doing anything 
weird, but it all seems fine.

I don't know if the bug is with our code, Qt or OSG but I'm failing to find out 
why this is happening and was wondering if anyone had come across anything like 
that. 


Mike


Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


Re: [osg-users] OSG + Mesa3D

2012-12-06 Thread Mike Krus
Hi

got that, seems to work. Many thanks once again!


Mike

On 6 Dec 2012, at 03:35, Andrew Cunningham wrote:

Hi Mike,
I have put a zip of the complete build directory on DropBox.

https://dl.dropbox.com/u/82874382/Mesa-7.8.2.zip

Let me know when you get it.

Andrew

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





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


Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


Re: [osg-users] OSG + Mesa3D

2012-12-01 Thread Mike Krus
those worked fine. not sure what I was doing when but the builds I tried to do 
did not work (crashed within Qt).

If you could share the project that would be ideal (especially when we switch 
to VS 2012).

Thanks again,

Mike

On 29 Nov 2012, at 16:25, Andrew Cunningham andr...@mac.com wrote:

 Mike,
 I posted the DLL's on this forum  as an attachment but the moderator 
 bounced the message as they were 300KB 
 
 Here are the dropbox links.
 
 https://dl.dropbox.com/u/82874382/MESA64.zip
 https://dl.dropbox.com/u/82874382/MESA32.zip
 
 If you are interested in the complete 7.8.2 folder with VC10 projects let me 
 know.
 Andrew
 
 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=51296#51296
 
 
 
 
 
 ___
 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 + Mesa3D

2012-11-29 Thread Mike Krus
Hi

that would be great thanks.


Mike

On 28 Nov 2012, at 22:04, Andrew Cunningham wrote:

Hi,
I have built MESA for Windows for exactly this reason. We have some users who 
absolutely need to use RDP, and the default MS implementation is very buggy.

The latest version of MESA that will build on Windows and use a software 
renderer is MESA 7.8.2 which implements OpenGL 2.1.

I can make Visual Studio 2010 projects available if you need them + prebuilt 
DLLs. I'll stick them on DropBox.

...

Thank you!

Cheers,
Andrew

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





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


Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


[osg-users] OSG + Mesa3D

2012-11-27 Thread Mike Krus
Hi

we've been having issues with running our application with OSG via Remote 
Desktop on Windows, resulting in crashes in Microsoft Software OpenGL driver 
when encountering large meshes (as in more than a couple thousand triangles). 
Messages on this list suggest using Mesa3D.

Compiling from source on Windows seems non trivial, and I was wondering if 
someone had precompiled version of Mesa3D they would be willing to share? Need 
Windows 32 and 64 bits versions, built with MS VS 2010 SP1.


Cheers,

Mike


Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


Re: [osg-users] OSG + Mesa3D

2012-11-27 Thread Mike Krus
Hi

consensus seems to be that RDP is not an option for modern 3D graphics anyway. 
There's a few alternatives around though, so I don't think we'll be 
implementing anything specific on our side. Just a matter of providing 
recommended solutions for our customers

Thanks,

Mike

On 27 Nov 2012, at 11:16, Robert Osfield wrote:
A more general suggestion I have is that perhaps rendering the image on the 
remote system and then returning this image to the client would be the more 
robust way to handle this type of usage rather than relying upon remote 
desktop.  This approach would require more work at the application level but 
would avoid passing large amounts of vertex and texture data across the network 
and not be limited to specific versions of software drives - the MS OpenGL 
driver supports very few modern OpenGL features so is best avoided.



Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


Re: [osg-users] osgText::readFontFile fails to find font file

2012-11-06 Thread Mike Krus
Hi

thanks all, looked at full debug output, problem solved. The font file was 
being found, the plugin to load it was not. All well now,


Cheers,

Mike


On 5 Nov 2012, at 17:12, Cary, Karl A. wrote:

Double check and make sure permissions are not an issue. I had that problem 
once with my fonts. But as Robert suggested, make sure it is just that the 
fonts file isn’t readable.

From: 
osg-users-boun...@lists.openscenegraph.orgmailto:osg-users-boun...@lists.openscenegraph.org
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Monday, November 05, 2012 12:10 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] osgText::readFontFile fails to find font file

Hi Mike,

It's a while since I've seen reports of problems finding fonts, so I guess 
there must be something unusual going on with your setup/usage.

W.r.t finding fonts, or any files, trying using set the env OSG_NOTIFY_LEVEL to 
DEBUG and then look for entries relating to FindFileInPath, these should tell 
you where the OSG is looking for the fonts.

Another avenue you could look at is to try the fonts provided in the 
OpenSceneGraph-Data distribution, as perhaps the fonts you are attempting to 
read can't be loaded by freetype.

Robert.
On 5 November 2012 15:26, Mike Krus m...@mve.commailto:m...@mve.com wrote:
Hi,

I'm having some issues getting OSG to find my font file in Red Hat Enterprise 
Linux 5.8.

From the documentation I can see that osgText::readFontFile should be looking 
in /usr/share/fonts/ttf to find my fonts, but this path does not exist in RHEL.

I have added /usr/share/fonts to my OSG_FILE_PATH environment variable and 
called osgText::readFontFile(liberation/LiberationSans-Regular.ttf) or 
osgText::readFontFile(/usr/share/fonts/liberation/LiberationSans-Regular.ttf) 
but my font is still not found 
(/usr/share/fonts/liberation/LiberationSans-Regular.ttf exists).

The error message I receive is: Warning: Could not find plugin to read objects 
from file 

I don't receive any other messages relating to the failure to load plugins, and 
OSG happily loads Arial in Windows.

Any advice you could provide would be really useful.




Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681tel:%2B44%20141%20332%202681
Fax: +44 141 332 6792tel:%2B44%20141%20332%206792


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

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


Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


[osg-users] osgText::readFontFile fails to find font file

2012-11-05 Thread Mike Krus
Hi,

I'm having some issues getting OSG to find my font file in Red Hat Enterprise 
Linux 5.8.

From the documentation I can see that osgText::readFontFile should be looking 
in /usr/share/fonts/ttf to find my fonts, but this path does not exist in RHEL.

I have added /usr/share/fonts to my OSG_FILE_PATH environment variable and 
called osgText::readFontFile(liberation/LiberationSans-Regular.ttf) or 
osgText::readFontFile(/usr/share/fonts/liberation/LiberationSans-Regular.ttf) 
but my font is still not found 
(/usr/share/fonts/liberation/LiberationSans-Regular.ttf exists).

The error message I receive is: Warning: Could not find plugin to read objects 
from file 

I don't receive any other messages relating to the failure to load plugins, and 
OSG happily loads Arial in Windows.

Any advice you could provide would be really useful.




Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


Re: [osg-users] issue with OSG on Mac OS Lion

2012-09-24 Thread Mike Krus
Hi

thanks for the details. We recently tried to the visibility flag thing on GCC 
to try and speed up link times. What not significantly improving it anyway so 
happy to do without it.


Mike

On 21 Sep 2012, at 22:38, Stephan Huber wrote:

Hi Mike,
Am 21.09.12 10:00, schrieb Mike Krus:

well, you what? turning that off has fixed the issue!! Any explanation why? is 
it an llvm-gcc bug?

no, it's not a bug, it's a feature :) Basically gcc's dynamic_cast
compares two classes by pointer to their type_info and not by their
names, so if you have the same class compiled in your app and in your
lib, the dynamic_cast will fail, if visibility is set to hidden, as the
linker cannot merge the two classes into one.

I hope the underlying issue gets a little bit clearer, here is a ink for
more info:

http://osdir.com/ml/xcode-users/2010-01/msg00305.html

cheers,

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


Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


Re: [osg-users] issue with OSG on Mac OS Lion

2012-09-21 Thread Mike Krus
Hi

On 20 Sep 2012, at 19:57, Stephan Huber wrote:
I've seen this when mixing clang and gcc-compiled code (lib compiled
with clang, app compiled with gcc, or vice versa). One symptom was a
dynamic_cast returning NULL instead of the correct instance.
Double-check the settings for the compilerof your app and of osg.
we don't build with clang because some of other 3rd part dependencies include 
really old template code that clang doesn't like.
We build everything with llvm-gcc that comes with Xcode  (not plain gcc). I 
initially tried plain GCC 4.7 but OSG does not build with that because of the 
Objective-C code inside (at least not on the 10.6 and up SDKs).

Did you change the visibility-flags?
yes, our app does have the visibility flags enabled, OSG build does not I 
believe… Will try turning those off.

What version of Xcode do you use? Try the latest, Xcode 4.5.
We use 4.4.1, will upgrade now, been needing to do it for iOS 6 support anyway…


Cheers!

Mike


Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


Re: [osg-users] issue with OSG on Mac OS Lion

2012-09-21 Thread Mike Krus
Hi again,


On 20 Sep 2012, at 19:57, Stephan Huber wrote:
Did you change the visibility-flags?
well, you what? turning that off has fixed the issue!! Any explanation why? is 
it an llvm-gcc bug?



Mike


Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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


[osg-users] issue with OSG on Mac OS Lion

2012-09-20 Thread Mike Krus
Hi

I'm having issues with OSG (from head in Subversion) when built on Mac OS 10.7. 
The actual build is fine but I'm having strange run time issues. For example, 
when doing a picking,  osgUtil::LineSegmentIntersector::Intersection::indexList 
is always empty. Or the smooth normal visitor does not generator normals.

In both case I tracked it down to this dynamic cast failing:
 osg::Vec3Array *coords = 
dynamic_castosg::Vec3Array*(geom.getVertexArray());

The resulting coords is null despite the actual member variable being of the 
right type.

This (to me) sounds like a weird build issue, but I don't have a clue what's 
causing it.

Here's how I build OSG:
cmake -DCMAKE_C_COMPILER:STRING=/usr/bin/llvm-gcc 
-DCMAKE_CXX_COMPILER:STRING=/usr/bin/llvm-g++ 
-DCMAKE_SHARED_LINKER_FLAGS:STRING=-headerpad_max_install_names 
-DCMAKE_OSX_ARCHITECTURES=x86_64 
-DOSG_GL3_AVAILABLE:BOOL=OFF 
-DADDITIONAL_MAKE_CLEAN_FILES=bin -DADDITIONAL_MAKE_CLEAN_FILES=lib 
-DCMAKE_BUILD_TYPE=Release 
-DCMAKE_INSTALL_PREFIX=/some/path ..

I had tried using -DOSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION:BOOL=OFF but it 
did change a thing


All other third party dependencies (GDAL and ZLib) are built the same way, all 
with the 10.7 SDK using the llvm compiler 
(/usr/bin/llvm-gcc - ../llvm-gcc-4.2/bin/llvm-gcc-4.2). The other dependencies 
are the platform defaults.


Any ideas?

Thanks,


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


Re: [osg-users] Problems with DotOsgWrapper in OSG 3.1.1 on OSX 10.7

2012-07-05 Thread Mike Krus
Hi,

I had a everything working using GCC 4.2.1 from XCode 4.3 but  due to issues 
with GDAL I've had to upgrade to GCC 4.3 from MacPort. So I have:

/opt/local/bin/gcc - /opt/local/bin/gcc-mp-4.3

which is found by default with CMake. 

I'm getting issues when building the Cocoa code:


Code:

[ 21%] Building CXX object 
src/osgViewer/CMakeFiles/osgViewer.dir/GraphicsWindowCocoa.mm.o
In file included from 
/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5,
from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10,
from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from 
/Volumes/MVEData/Users/Mike/Developer/OSG/src/osgViewer/GraphicsWindowCocoa.mm:18:
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:140: error: 
stray '@' in program





Any ideas on how to fix this? Or anybody know if I can safely build the rest 
with GCC 4.3 and OSG with the llvm-gcc 4.2 that comes with XCode?




Thank you!

Cheers,
Mike
Code:




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





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