Re: [osg-users] OSG, bullet physics, collada and sketchup models on Ubuntu

2010-11-05 Thread Sébastien Barthélemy
Hello, On Tue, Nov 2, 2010 at 3:32 PM, Axel Spirtaat loginv...@gmail.com wrote: However, i also tried to build collada, but there are a lot of bugs for linux and seem to be no more supported...  i fixed some of them but not all. If you're using ubuntu, you can find on this ppa packages for

[osg-users] osg::TextNode 3d text geometry size

2010-11-05 Thread Pavel Domsa
Hi, I have 3d text based on TextNode with default values copied from example and font arial.ttf. Problem is that default scale - geometry size is somewhat unknown. It's definitely not 1. in along any axis. So my question is: What all parameters influence text geometry size? My goal is to be

[osg-users] osgAnimation::BasicAnimationManager set animation duration

2010-11-05 Thread Aitor Ardanza
Hi, Is it possible to somehow define the duration of the animation? I need to give different speeds to animations. Thank you! Cheers, Aitor -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33489#33489

Re: [osg-users] What are txf and tpf files ?

2010-11-05 Thread henry adler
Hi, I am new to OSG and have a similar problem. Running osgviewer on archive.txp doesn't show any visual output, even if I change LOD settings or hold down the right mouse button. Ideas? Thank you! Cheers, henry -- Read this topic online here:

Re: [osg-users] osgviewerd pdb file

2010-11-05 Thread Leszek Swirski
Hey, Not to be a useless +1, but I have the same problem. For now, I'm using Eduardo's hack of changing the project dll name, but a more permanent solution would obviously be preferable. For reference, I'm using win7 x64, VS2010, CMake 2.8.2 and OSG 2.9.9 (where the latter two seem to be the

Re: [osg-users] OSG and OpenGL version testing and OpenGL extension testing

2010-11-05 Thread Robert Osfield
Hi David, On Thu, Nov 4, 2010 at 8:58 PM, David Glenn david.e.glenn@navy.mil wrote: The only thing I can figure that there is a function that I go in and change the color of an object. I used a variant of the example osgtexture1D to set the color of the whole object, rather than rainbow

Re: [osg-users] [build] How to use the DatabasePager

2010-11-05 Thread Robert Osfield
Hi Huron, The osgDB::DatabasePager is built around the the osg::PagedLOD node that is placed into the scene graph itself, you don't need to use callbacks at all - once you've built the database everything will happen automatically for you. There has been lots of discussion about PagedLOD over

Re: [osg-users] osg::TextNode 3d text geometry size

2010-11-05 Thread Robert Osfield
Hi Pavel, I wouldn't recommend using osgText::TextNode right now as it's not yet feature complete. It's better to use osgText::Text or osgText::Text3D. Robert. On Fri, Nov 5, 2010 at 7:09 AM, Pavel Domsa pdo...@seznam.cz wrote: Hi, I have 3d text based on TextNode with default values copied

Re: [osg-users] osgAnimation::BasicAnimationManager set animation duration

2010-11-05 Thread Michail Lanam
[quote=Pertur] Is it possible to somehow define the duration of the animation? I need to give different speeds to animations./quote]Yes, osgAnimation::Animation have setDuration method. It will do the thing. -- Read this topic online here:

Re: [osg-users] What are txf and tpf files ?

2010-11-05 Thread Robert Osfield
Hi Henry, Terrapage database tend to built with very aggressive LOD range settings so that the tiles cull out even when you aren't that far away. The default position that the osgviewer places you at start up is placed far enough away to view the whole database, but alas if this is beyond the

[osg-users] setupViewer() hijacks thread affinity mask.

2010-11-05 Thread Anders Backman
Using OSG 2.8.3 under windows 7 64bit. VS2008. Hi, we discovered a problem where OSG hijacks the affinity for threading in void ViewerBase::setUpThreading(): ViewerBase.cpp: // we'll set processor affinity here to help single threaded apps // with multiple processor

Re: [osg-users] setupViewer() hijacks thread affinity mask.

2010-11-05 Thread Robert Osfield
Hi Andreas, Setting of the processor affinity of threads in osgViewer is something I'd like to make more configurable, but even with that I still don't understand when threads created after the viewer can't set their own affinity. Could you explain why the threads created later can't set

Re: [osg-users] setupViewer() hijacks thread affinity mask.

2010-11-05 Thread Robert Osfield
On Fri, Nov 5, 2010 at 10:10 AM, Robert Osfield robert.osfi...@gmail.com wrote: Hi Andreas, Ooopsss... I meant to type Anders :-) ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] New defaults in DatabasePager, please test

2010-11-05 Thread Alexandre Amalric
Hi Robert, I am wondering why there is no way to remove PagedLod child wich are visited by the culling but wich are also out of range from the camera. Here is a simple case let's image I have 100 PagedLod each composed from a low poly internal model and a high res external model (displayed when

Re: [osg-users] New defaults in DatabasePager, please test

2010-11-05 Thread Robert Osfield
Hi Alex, The DatabasePager already has a scheme for load balancing and will automatically expiry PageLOD's that are out of range. It only does the expiry once a user specified maximum number of PageLOD's is reached, while the default is set to 500, but you could set this to 1 if you wanted and

Re: [osg-users] setupViewer() hijacks thread affinity mask.

2010-11-05 Thread Anders Backman
You are excused Rupert, considering you taught me to like Bowmore :-) (seems like a million years ago now). :-) Anyways, it is certainly possible to reset the threading mask. It was just the fact that setupViewer() set this, and then left it locked to one core. The main thread (where

Re: [osg-users] New defaults in DatabasePager, please test

2010-11-05 Thread Alexandre Amalric
Hi Robert, I'm using osg 2.8.3 and it seems it's not the case. To continue with this sample, let's imagine I set the _targetMaximumNumberOfPageLOD to 20, in capped_removeExpiredSubgraphs if the camera is looking to those 100 PagedLod at the same time the _inactivePagedLODList is empty and the

Re: [osg-users] does LiSPSM cull the objects in the scene?

2010-11-05 Thread Wojciech Lewandowski
Hi Ramy, Teoretically LispSM uses one extra pass to render shadow map. However, optimal shadow volume computation requires some extra work. Default LispSM uses DrawBounds to compute shadow volume, which means it does extra pererender to compute box around pixels in prerenderd map. You may

Re: [osg-users] setupViewer() hijacks thread affinity mask.

2010-11-05 Thread Robert Osfield
Hi Anders, On Fri, Nov 5, 2010 at 10:26 AM, Anders Backman ande...@cs.umu.se wrote: You are excused Rupert, considering you taught me to like Bowmore :-) (seems like a million years ago now). :-) So did Keneth get liking the Highland Park then? ;-) Anyways, it is certainly possible to reset

Re: [osg-users] New defaults in DatabasePager, please test

2010-11-05 Thread Robert Osfield
Hi Alex, I've got too many things on to try and get my head around your understand of some code that has already been modified in svn/trunk. In svn/trunk and the 2.9.x series the DatabasePager has been improved further, so go test there. Robert. On Fri, Nov 5, 2010 at 10:32 AM, Alexandre

Re: [osg-users] How can I calculate a matrix via a MatrixManipulator

2010-11-05 Thread Martin Großer
Hello Jean-Sébastien, I guess it wouldn't work, because I use the setUpViewerAsEmbeddedInWindow(...)-Method of the osgViewer::Viewer. The composite viewer don't have this function. Cheers Martin Original-Nachricht Datum: Wed, 03 Nov 2010 10:45:46 -0400 Von:

Re: [osg-users] New defaults in DatabasePager, please test

2010-11-05 Thread Alexandre Amalric
Hi Robert, Reviewing the latest snv code from the databasepager, the problem remains the same. The only expired nodes the databasepager is removing are the one wich are in the inactivePagedLODList this one is only filled with node that hasn't been traversed for a while (compare

Re: [osg-users] OSG ActiveX + IFC - looking for developer

2010-11-05 Thread Zdravko Clarion
Hi, Do you/your company have any clue about time when you will know something about distribution? Thank you! Cheers, Zdravko -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33517#33517 ___

Re: [osg-users] Generate mipmaps from arbitrary image

2010-11-05 Thread Brad Christiansen
Hi, The latest version of VPB has all the code you need to generate mip maps for an osg::Image / Texture. This code also allows you to select between NVTT (no context) or the current context based approach. The code is in TextureUtils: void compress(State state, Texture texture,

Re: [osg-users] does LiSPSM cull the objects in the scene?

2010-11-05 Thread Jean-Sébastien Guay
Hi Wojtek, There is a catch though. ViewBounds method has a bug which basically ignores MinimalLightMargin parameter. I have made a fix for this but it was not yet submitted, because its in the pack with TrapezoidalShadowMap which is still in work. Maybe I can will split them and send

Re: [osg-users] setupViewer() hijacks thread affinity mask.

2010-11-05 Thread Jean-Sébastien Guay
Hi Anders, What we do now is to reset the threadmask after setupViewer is called. Then we get all the core-usage we want :-) Just curious, could you share the code you use to reset that? Also, since the code that sets the affinity is in ViewerBase::setUpThreading(), I guess each time an app

Re: [osg-users] How can I calculate a matrix via a MatrixManipulator

2010-11-05 Thread Jean-Sébastien Guay
Hello Martin, I guess it wouldn't work, because I use the setUpViewerAsEmbeddedInWindow(...)-Method of the osgViewer::Viewer. The composite viewer don't have this function. But that method is not magical, you can just copy the code from it and do it yourself. All it does AFAIK is create a

Re: [osg-users] include obj, camera fov, complex texture formats

2010-11-05 Thread Ares Lagae
Hi all, I have solved the issues with the complex textures. In the end, I had to write a new image plugin that loads files with OpenGL texure data (much like the KTX format). There seem to be some issues with OSG's texture loading code, more specifically, with how internalFormat and format

Re: [osg-users] Generate mipmaps from arbitrary image

2010-11-05 Thread Sukender
Hi Brad and Robert, Well thanks for the answers. I don't know if I'll wait for Robert's implementation or use VPB. Is there a plan to move this code from VPB to OSG? Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ - Brad Christiansen

Re: [osg-users] New defaults in DatabasePager, please test

2010-11-05 Thread Robert Osfield
Hi Alex, Just because children of a PagedLOD may be out of range doesn't mean that the PageLOD itself isn't required in memory, if the cull traversal is hitting the PagedLOD it's active an really can't be expired, even if the children are being culled at that point in time. I rather feel that

Re: [osg-users] What are txf and tpf files ?

2010-11-05 Thread henry adler
robertosfield wrote: Hi Henry, Terrapage database tend to built with very aggressive LOD range settings so that the tiles cull out even when you aren't that far away. The default position that the osgviewer places you at start up is placed far enough away to view the whole database, but

Re: [osg-users] How can I calculate a matrix via a MatrixManipulator

2010-11-05 Thread Martin Großer
Oh yes, now I understand it! I must delegate the functionality to the views. For example: viewer-setSceneData(...) ...; MyCompsiteViewer(...){... getView(i)-setSceneData(...); } And I write a own setUpViewerAsEmbeddedInWindow(...) like that: GraphicsWindowEmbedded*

Re: [osg-users] How can I calculate a matrix via a MatrixManipulator

2010-11-05 Thread Martin Großer
Hello Jean-Sébastien, I tried it and it works. Your tip was perfect. Thanks Martin Original-Nachricht Datum: Fri, 05 Nov 2010 16:50:22 +0100 Von: Martin Großer grosser.mar...@gmx.de An: OpenSceneGraph Users osg-users@lists.openscenegraph.org Betreff: Re: [osg-users] How

Re: [osg-users] How can I calculate a matrix via a MatrixManipulator

2010-11-05 Thread Jean-Sébastien Guay
Hi Martin, I tried it and it works. Your tip was perfect. Wow, that was quick, great to know you were able to make it work. So, now you're using a CompositeViewer with 4 views and 4 TrackballManipulators? Are you creating one GraphicsWindowEmbedded per view or only one for all 4 views? (I

Re: [osg-users] Best way to pass geometry?

2010-11-05 Thread Cong Wang
Hi, I'm totally new to OSG, and maybe this is a pretty simple question, but I searched around and can't find the answer. Basically, I have my own code to do continuous LOD, and select cut --which is a packed array of vertices and attributes-- based on view point etc. I want to pass this array

[osg-users] License Question

2010-11-05 Thread Dinesh Malav
Hi, We are looking at using OSG libraries with our existing code for displaying complex object and we think this could be a good source to enhance our OpenGL displaying capabilities, while looking through the license I see the following note: Notes: the OSGPL is based on the LGPL, with the 4

[osg-users] Rotation

2010-11-05 Thread Cosimo Luigi Manes
Hi, I implemented the rotation of an object with a node PositionAttitudeTransform. How can I set the point around which the rotation takes place? Thank you! Cheers, Cosimo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33547#33547

Re: [osg-users] OSG and OpenGL version testing and OpenGL extension testing

2010-11-05 Thread David Glenn
Well, I have some Good news and bad! It seems that I needed to add two lines to the 1D texture: setWrap and setFilter. I guess that I got away from having to set it on my OGL 2.1 cards, but I got caught using the OGL2.0 cards. Bad News: I'm getting another error with the same card loading a