[osg-users] Unexpected osgText::TextBase::computeBound() behaviour
Hi all Calling computeBound() on an osg::Text object seems to return height values as if the text were aligned using the baseline of the first line of text only. So if I had a text object with a total height of 50, using an alignment of osgText::TextBase::CENTER_CENTER positioned at (0,0,0), I'd expect yMin and yMax from the bounding box to be at -25 and 25. Instead it'll be according to what I specified previously. This happens with or without multiple lines in the text. I've linked a minimal example and a screenshot illustrating the issue. The screenshot shows the bounding box with respect to the text. Ignore the glitchy character glyphs -- that's an issue with the drivers on my system. screenshot: http://imgur.com/YJasY code: http://pastie.org/3754296 Regards, Preet ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgb exports from unices not importable on win32 / osgt works fine
Hi, I am exporting .osgb files from vrml scenes on unices (MacOSX, Debian Stable) but can't get them to be imported on win32 platforms (OpenSceneGraph 3.1.1) again. Everything works fine if I just export to osgt files, or import the osgb files on other unices again. I attached two exports (one osgt, one osgb) - they are supposed to be identical as they were exported from the same scene, but the osgb file won't load on win32 platforms. At some point the debugger runs into InputStream.cpp:628 with an empty class name. I do not think that it is a plugin loading issue as osgt and osgb files are processed by the same plugin. There have been similar reports[1] two years ago, but I could not find any solution. I'd be grateful if anyone could shed some light on this. Thank you! Cheers, Stefan [1] http://forum.openscenegraph.org/viewtopic.php?t=9163 -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46940#46940 Attachments: http://forum.openscenegraph.org//files/testcubes_171.zip ___ 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
So, I spent much of the weekend compiling different versions of OSG (different compilers, universal/non-universal, cmake vs xcode), but no combination has yet fixed the crash. Originally, I used plain cmake to build OSG 2.9.8 libraries and XCode to build my app. This worked for me for the past year, but I was forced to upgrade to OSX 10.7 and XCode 4.3 or some iOS-related work. My app continued to compile (indeed, using the llvm gcc 4.2 compiler) and worked well if linked with those old OSG libraries. But like I said, I wanted to upgrade to OSG 3.x, and stupidly I deleted my old OSG 2.9.8 libraries. Now I can't build ANY form of OSG that will make my app work again. I can't build OSG 2.9.8 anymore, because there are a bunch of deprecated coregraphics calls and no OPENTHREADS_ATOMIC_USE_MUTEX fix. And any OSG 3.X version exhibits the crash (even though the OSG examples work!). I've tried building OSG with both the llvm gcc 4.2 and Apple llvm compiler 3.1, but both crash my app. A few other users have mentioned similar things: http://forum.openscenegraph.org/viewtopic.php?p=42119 http://forum.openscenegraph.org/viewtopic.php?t=8963 Perhaps the same problem (?). Their solution is to NOT using the llvm compiler and use old gcc4.2, but I don't have /usr/bin/gcc-4.2. Any idea how I can get that on my OSX 10.7 system with XCode 4.3.1? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46941#46941 ___ 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
Found one other possibility: optimization flags? This post claims that fixed something: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2011-August/053774.html Will try that and report back... -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46942#46942 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Website Problem
Hi, have no idea why this is happening. moved recently to a new area and new ISP. Unable to bring up the OSG website. here is the traceback report when being redirected.. Traceback (most recent call last): File /usr/lib/python2.5/site-packages/trac/web/api.py, line 339, in send_error 'text/html') File /usr/lib/python2.5/site-packages/trac/web/chrome.py, line 684, in render_template data = self.populate_data(req, data) File /usr/lib/python2.5/site-packages/trac/web/chrome.py, line 592, in populate_data d['chrome'].update(req.chrome) File /usr/lib/python2.5/site-packages/trac/web/api.py, line 168, in __getattr__ value = self.callbacks[name](self) File /usr/lib/python2.5/site-packages/trac/web/chrome.py, line 460, in prepare_request for category, name, text in contributor.get_navigation_items(req): File /usr/lib/python2.5/site-packages/trac/versioncontrol/web_ui/browser.py, line 295, in get_navigation_items if 'BROWSER_VIEW' in req.perm: File /usr/lib/python2.5/site-packages/trac/perm.py, line 523, in has_permission return self._has_permission(action, resource) File /usr/lib/python2.5/site-packages/trac/perm.py, line 537, in _has_permission check_permission(action, perm.username, resource, perm) File /usr/lib/python2.5/site-packages/trac/perm.py, line 424, in check_permission perm) File /usr/lib/python2.5/site-packages/trac/perm.py, line 282, in check_permission get_user_permissions(username) File /usr/lib/python2.5/site-packages/trac/perm.py, line 357, in get_user_permissions for perm in self.store.get_user_permissions(username): File /usr/lib/python2.5/site-packages/trac/perm.py, line 173, in get_user_permissions db = self.env.get_db_cnx() File /usr/lib/python2.5/site-packages/trac/env.py, line 257, in get_db_cnx return DatabaseManager(self).get_connection() File /usr/lib/python2.5/site-packages/trac/db/api.py, line 76, in get_connection return self._cnx_pool.get_cnx(self.timeout or None) File /usr/lib/python2.5/site-packages/trac/db/pool.py, line 109, in get_cnx % timeout) TimeoutError: Unable to get database connection within 20 seconds ... Absolutely clueless as to why this is happening. Have never seen anything like this in the past. Thank you! Cheers, John -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46943#46943 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Adding texture layers in OSG.
Greetings, I was wondering if they where any way to combine multiple textures on a object that I can change on demand? I saw a way to do up to four layers of trxtures combined in OpenGL, but for some reason its limited to four and I'm looking for a need to combine up to six layers at a time. I've been told that I can do it in GLSL but I'm not that smart of Shaders. Anyone has any ideas? D Glenn David Glenn --- D Glenn 3D Computer Graphics amp; Media Systems. www.dglenn.com -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46945#46945 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Drawing a simple sphere...
Hi Ulrich (et al), How did you change the optimization flags in your makefiles? Did you search and replace through them all? or is there a cmake variable / technique for doing this? Thanks, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46946#46946 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problems with OSG in Mac OSX 10.7 (lion). Don't show window when load a model.
Hi all, I have XCode 4.3.1, which is the .app bundle version from the App Store, and so I have no /Developer folder, and no gcc compiler other than the LLVM that comes with XCode. ie, no /usr/bin/gcc-4.2 Do you have any suggestions for this situation? I tried compiling with a gcc compiler from Macports (version 4.4), but I get hundreds of errors when compiling osgViewer/DarwinUtils.mm. It seems like that compiler doesn't understand any objective-c... error: stray '@' in program, etc. Is there a different way to solve this problem? Any fix yet? Thanks, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46947#46947 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Drawing a simple sphere...
Hi Mike, On 10/04/12 13:03 , Mike Wozniewski wrote: Hi Ulrich (et al), How did you change the optimization flags in your makefiles? Did you search and replace through them all? or is there a cmake variable / technique for doing this? These days (the original thread is from August 2011) the only things I have to modify in the cmake settings (through ccmake) is the architecture (to x86_64 only, because of dependencies) and the location of the freetype library (from MacPorts). Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org