Re: [osg-users] osg::Drawable::DrawCallback issue

2009-11-23 Thread Harold Comere
Hi Robert, I used dynamic data variance and it seems to have fixed the issue, thank you. Anyway i work with a single thread. But the text update is called by an event handler in MOVE event, maybe is it called too much in a short time ? What does DYNAMIC data variance change ? Is it a kind of

Re: [osg-users] Mac bundle distribution can't use plugin

2009-11-23 Thread Filip Wänström
Hi, thanks for the answer but I am using CMake/regular makefiles to do all my building and using the OSX Ingest into bundle script that comes with osg. I just presumed it did all magic but maybe I should check out the actual paths in the libs. I'll be back with a report. /Filip On Fri, Nov 20,

Re: [osg-users] Texture wrapping for a geometry object

2009-11-23 Thread Dominic Stalder
Hi Robert thanks a lot, I got it from this mailing list message: http://www.mail-archive.com/osg-us...@openscenegraph.net/msg11209.html I will try the texture coordinates scaling. But just for interesting, how would the texture matrix work, do you have some basic code snippet? Regards

Re: [osg-users] Running VPBMaster

2009-11-23 Thread Robert Osfield
HI Jacob, There really is much that others can do to help without be able to run the same test and see the same behaviour and then run vpbmaster in a debugger to see what is going on. vpbmaster should be dispatching the osgdem tasks and then sitting most idle while the osgdem tasks do the actual

Re: [osg-users] osg::Drawable::DrawCallback issue

2009-11-23 Thread Robert Osfield
On Mon, Nov 23, 2009 at 8:09 AM, Harold Comere harold.com...@gmail.com wrote: Hi Robert, I used dynamic data variance and it seems to have fixed the issue, thank you. Anyway i work with a single thread. But the text update is called by an event handler in MOVE event, maybe is it called too

[osg-users] Trees, Grass and Shadows

2009-11-23 Thread Peter Wraae Marino
Hi osgUsers, I have question about rendering shadows on grass billboards. This is not a question about anything missing or not working in OpenSceneGraph, but a question how to solve a problem with shadows and grass. The problem is the grass are created using a shader that creates billboard

Re: [osg-users] [forum] OSG Forum image attachments

2009-11-23 Thread Art Tevs
Hi, ok, I tried to post some images and was stopped by the mailing list, because to big :) There is a limitation of 300KB on the mailing list side. On the forum side, I see the problem. The thumbnail of the attachment is the downsized version with strange colors. I'll check this. However, if

Re: [osg-users] [forum] OSG Forum image attachments

2009-11-23 Thread Robert Osfield
Hi Art et. al, The mailing list has a max email size of 300KB to keep down how much bandwidth the mailing list consumes, as those 300Kb+ has to be sent to each of nearly 2000 recipients. Robert. On Mon, Nov 23, 2009 at 10:09 AM, Art Tevs arti_t...@yahoo.de wrote: Hi, ok, I tried to post some

Re: [osg-users] Texture wrapping for a geometry object

2009-11-23 Thread Ulrich Hertlein
On 23/11/09 10:09 AM, Dominic Stalder wrote: I will try the texture coordinates scaling. But just for interesting, how would the texture matrix work, do you have some basic code snippet? osg::TexMat provides a matrix and any texture coordinates you specify will be multiplied by that. The

Re: [osg-users] [forum] OSG Forum image attachments

2009-11-23 Thread Art Tevs
Hi folks, OK, it seems, I've corrected the issue. Since mailing list has a quota of 300KB, I changed the forum settings in the way, so that any attachment sent with a message from the forum will not be attached to the mail, but a link will be used instead. So that this attachments can then be

Re: [osg-users] [forum] OSG Forum image attachments

2009-11-23 Thread Kim Bale
Hi Art, That appears to work perfectly. Cheers! Kim. 2009/11/23 Art Tevs arti_t...@yahoo.de: Hi folks, OK, it seems, I've corrected the issue. Since mailing list has a quota of 300KB, I changed the forum settings in the way, so that any attachment sent with a message from the forum

Re: [osg-users] [forum] OSG Forum image attachments

2009-11-23 Thread Art Tevs
Good to hear, due to the current implementation of the forum-mailing list connection, users are allowed to specify the settings of how their attachments are treated. So a user can force real attachments to be used (instead of links in emails). He can also force thumbnails to be attached

[osg-users] TriStripVisitor issue

2009-11-23 Thread Emmanuel Roche
Hi everyone, I have a strange problem with the TryStripVisitor: When I use it on a model (with about 6000 triangles, described as TRIANGLES [thus using 18000 vertices]) I get trip strip primitive sets indeed BUT actually I get a few TRIANGLE_STRIP primitive sets with 4 vertices in each, and

Re: [osg-users] Texture wrapping for a geometry object

2009-11-23 Thread Dominic Stalder
Hi everybody thanks for the help. It's really that easy, but I didn't see the hint ;-) Sorry for that. Now I just set the value of the geometry width instead just 1.0. Cheers, Dominic -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=20132#20132

Re: [osg-users] Trees, Grass and Shadows

2009-11-23 Thread Dominic Stalder
Hi Peter I can't help you with your problem. I am a newbie to OSG, but I'm actually trying to have a nice (back)ground for our scene and thought that grass and a tree would look very nice. And I have to say that your video looks amazing! Where can I find some helpful information for

Re: [osg-users] Refactoring DatabasePager NeedToRemove stringflagging technique

2009-11-23 Thread Wojciech Lewandowski
Hi Guys, I wish to join the discussion because we are currently dealing with real problem related to this topic. First some background. Its a long comedy of circumstances and sideffects. But please bear with me...: 1. We use PagedLOD database. We used our tools to build it, but it does not

[osg-users] CMake Dashboard showing incorrect information

2009-11-23 Thread Alberto Luaces
Hi, did anyone noticed that the dashboard at http://cdash.openscenegraph.org/index.php?project=OpenSceneGraph displays incorrect information? It reports successful builds even they are not; furthermore, it is evident that the number of updated files every day is also incorrect: in the last ten

Re: [osg-users] TriStripVisitor issue

2009-11-23 Thread Emmanuel Roche
Okay, more details on this: the problem comes from the helper structure VertexAttribComparitor in the function VertexAttribComparitor::compare(unsigned int lhs, unsigned int rhs) we call the template array compare(unsigned int lhs, unsigned int rhs) function, and there we just use regular

Re: [osg-users] TriStripVisitor issue

2009-11-23 Thread Robert Osfield
Hi Manu, The TriStripVisitor shouldn't change anything in the data apart form re-organize it. Adding in tolerances to the vertex comparisons would require the vertex data to modified to collapse adjacent vertices's onto the same position in space. Would could add such functionality as an extra

Re: [osg-users] TriStripVisitor issue

2009-11-23 Thread Stephan Kussmaul
Hi Manu, We found a bug those days in TriStripVisitor.cpp. I didn't really read your latest email, but this might be related to your precision issues: class WriteValue : public osg::ConstValueVisitor { ... // add those 3 lines virtual void apply(const Vec2d v) { _o v; }

Re: [osg-users] Refactoring DatabasePager NeedToRemovestringflagging technique

2009-11-23 Thread Wojciech Lewandowski
Hi Robert, My apologies for SARCASM. I wanted to be provocative because former posts went unnoticed. Maybe I have gone too far... But I would strongly defend merits of arguments in the post. You say we did wrong, but whats you recommendation on mixing many intersections with rendering ?

Re: [osg-users] Running VPBMaster

2009-11-23 Thread Jacob Armstrong
Well, let me ask you this then...I launched vpbmaster.exe passing in a list of 490 bitmaps with --xt, --yt, --xx, --yy, and --t arguments. Earlier in this thread I showed the last line output to the screen. It has generated a .task file at Level 0, 16 at Level 3, and 256 at Level 7. It sat for

Re: [osg-users] TriStripVisitor issue

2009-11-23 Thread Robert Osfield
HI Stephan, On Mon, Nov 23, 2009 at 2:31 PM, Stephan Kussmaul stephan.kussm...@triangraphics.de wrote: We found a bug those days in TriStripVisitor.cpp. I didn't really read your latest email, but this might be related to your precision issues: What bug was this? Could you explain? Which

Re: [osg-users] TriStripVisitor issue

2009-11-23 Thread Stephan Kussmaul
Hi Robert, We are using OSG 2.8.2. The problem we encountered was when the TriStripVisitor was used with double data (e.g. for OpenFlight with double precision). As far as I can remember in this case the wrong member function (remap(...)) in the base class was used. That's why we had to add

Re: [osg-users] TriStripVisitor issue

2009-11-23 Thread Robert Osfield
Hi Stephan, On Mon, Nov 23, 2009 at 4:15 PM, Stephan Kussmaul stephan.kussm...@triangraphics.de wrote: The problem we encountered was when the TriStripVisitor was used with double data (e.g. for OpenFlight with double precision). As far as I can remember in this case the wrong member function

Re: [osg-users] Refactoring DatabasePager NeedToRemovestringflagging technique

2009-11-23 Thread Glenn Waldron
On Mon, Nov 23, 2009 at 11:10 AM, Robert Osfield robert.osfi...@gmail.comwrote: Hi Wojtek, On Mon, Nov 23, 2009 at 2:34 PM, Wojciech Lewandowski lewandow...@ai.com.pl wrote: But I would strongly defend merits of arguments in the post. You say we did wrong, but whats you recommendation on

Re: [osg-users] Height fields implementation

2009-11-23 Thread Chris 'Xenon' Hanson
Janna Terde wrote: Hi Robert, Thank you very much for your reply! I am going to look into the osg::Terrain. The other goal is to make an interactive editing of the height field so we can change the layout of the terrain on fly. However when I used Height Field class and alternated the

Re: [osg-users] Running VPBMaster

2009-11-23 Thread Chris 'Xenon' Hanson
Jacob Armstrong wrote: Well, let me ask you this then...I launched vpbmaster.exe passing in a list of 490 bitmaps with --xt, --yt, --xx, --yy, and --t arguments. Earlier in this thread I showed the last line output to the screen. It has generated a .task file at Level 0, 16 at Level 3, and 256

Re: [osg-users] Height fields implementation

2009-11-23 Thread Janna Terde
Hi Chris, Sorry for mentioning HeightFields again. But thank you for taking your time replying! Currently I am implementing functionality using osg::Terrain::TerrainTile/HeightFieldLayer. Thanks again! Cheers, Janna -- Read this topic online here:

Re: [osg-users] Refactoring DatabasePagerNeedToRemovestringflagging technique

2009-11-23 Thread Wojciech Lewandowski
Hi Robert, How should we tackle it, if current approach is wrong ? [..] If you do want to mix the two then you need to ask questions about how you want to do intersections and how your thread them. Do you do intersections in the main loop? In a separate thread? Do you run the

Re: [osg-users] Refactoring DatabasePagerNeedToRemovestringflagging technique

2009-11-23 Thread Wojciech Lewandowski
Thanks Glenn. I will look at this. Wojtek - Original Message - From: Glenn Waldron To: OpenSceneGraph Users Sent: Monday, November 23, 2009 5:41 PM Subject: Re: [osg-users] Refactoring DatabasePagerNeedToRemovestringflagging technique On Mon, Nov 23, 2009 at 11:10 AM,

Re: [osg-users] Height fields implementation

2009-11-23 Thread Chris 'Xenon' Hanson
Janna Terde wrote: Hi Chris, Sorry for mentioning HeightFields again. But thank you for taking your time replying! Currently I am implementing functionality using osg::Terrain::TerrainTile/HeightFieldLayer. Let us know how it performs for you. I think you will be satisfied with the

Re: [osg-users] Height fields implementation

2009-11-23 Thread Janna Terde
Hi! Chris, thank you for your advice! I will definitely take a look into VPB! I got some results but couple of things did not work as I expected, yet. Sorry in advanced for so many questions. When I use osg::Terrain::TerrainTile/HeightFieldLayer regardless of X/Y intervals I set while

Re: [osg-users] Height fields implementation

2009-11-23 Thread Chris 'Xenon' Hanson
Janna Terde wrote: When I use osg::Terrain::TerrainTile/HeightFieldLayer regardless of X/Y intervals I set while creation of the HeightField I always get the same result (as if I set X/Y to 1). When I used only HeightFields+ShapeDrawable it worked fine. I am wondering if something like

[osg-users] newbie question about osgTerrain yet again

2009-11-23 Thread Anton Lauridsen
Hi, By searching the forums I have found quite a few questions regarding the use of osgTerrain, but somehow I have never found a satisfactory solution. I have - by using the osgTerrain example code - constructed a heightmap based terraintile. I'm having two issues, the terrain is ridiculously

Re: [osg-users] heightfield change height crashes

2009-11-23 Thread Thomas Maier
Hi, i only have set -setDataVariance(osg::Object::DYNAMIC); to the geode, now i also have set it to the shapeDrawable. Should i apply it only to the shapeDrawable or to both? After this change it draws the first point of my setHeight() changes, any following setHeight() call doesnt paint

Re: [osg-users] newbie question about osgTerrain yet again

2009-11-23 Thread Anton Lauridsen
Hi, It's usually best to break this up into smaller tiles. OSGDEM/VPB uses 64x64 tiles, and LODs each group of four of those into a smaller 64x64 tile, etc, etc. Thanks for the quick reply, 2 million polys shouldn't be able to pull the framerate that far down, especially since the

Re: [osg-users] heightfield change height crashes

2009-11-23 Thread Thomas Maier
Hi, i use SingleThreaded, i got no multithreading enum property only these SingleThreaded, CullDrawThreadPerContext, ThreadPerContext = CullDrawThreadPerContext, DrawThreadPerContext, CullThreadPerCameraDrawThreadPerContext,

Re: [osg-users] Export osgAnimation callbacks into osg files

2009-11-23 Thread Peter Wrobrl
Hi, and thanks for your fast answer. To reconstruct my problem I take the osgAnimationNode Example and tweak its main, so that it writes an osg file instead of creating the viewer ( Attachment ). When I open the osg file with an text editor, the UpdeteCallbacks are empty, and the file crashes

[osg-users] [build] How to properly use the OSG_GL3_AVAILABLE CMake option?

2009-11-23 Thread John Price
Hi, My nVidia graphics driver supports GL 3.2. So I enabled OSG_GL3_AVAILABLE and got hundreds of errors about gl3.h. I downloaded gl3.h from OpenGL.org and placed it where it would be found, and got hundreds of new errors. I know I am doing something wrong and was wondering if someone would

Re: [osg-users] broken osgconv.exe

2009-11-23 Thread ted morris
Hi Mattias, OK, after checking PATH, and setting OSG_NOTIFY_LEVEL=DEBUG, it finds all the libraries in the pluggin and 3rdparty path but I still get This application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem for the following

Re: [osg-users] broken osgconv.exe

2009-11-23 Thread Mourad Boufarguine
Hi Ted, You can use the Dependency Walker (http://www.dependencywalker.com/) to check the version number of the runtime, the dependencies were compiled against. I just tried it with the zlib and png dlls contained in VisualStudio 9 (2008) SP1 prebuild dependencies (

Re: [osg-users] [osgOcean] Wake effects?

2009-11-23 Thread Tian Ma
Hi Kim, I update the source code from SVN today and generate the new ocean project. When run the example, some errors emerge. The error image is as follow link: http://storage.openlab.net.cn/forums/2009-11-24/1981569/%e9%94%99%e8%af%af.JPG Something wrong with the water.frag? Thank you!

Re: [osg-users] [forum] how add SDL in osg project

2009-11-23 Thread Ivan Salguero
Hi, thanks for help but really i need add SDL to my osg project How i do that?? some body help me ... Thank you! Cheers, Ivan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=20197#20197 ___

[osg-users] [forum] help me with osg::Imagestream and osg::Image

2009-11-23 Thread Ivan Salguero
Hi, I tried compile osgmovie and I have problems with that classes because i have 3 errors say me getFrameRate isn't member of osg::Imagestream and getPixelAspecRatio isn't member of osg::Image. so what happened somebody have any idea because i download that classes of osg page and replace

Re: [osg-users] How can I get last frame time inn order to create indepent FPS aniamtions?

2009-11-23 Thread Rafa Gaitan
Hi Ricardo, On Mon, Nov 23, 2009 at 3:58 PM, Ricardo Ruiz osgfo...@tevs.eu wrote: Thanks Rafa, but it does not work. Try something like this: Code:        double angle=0;        while (!viewer.done()) {                angle=viewer.getFrameStamp()-getReferenceTime();