[osg-users] [osgCompute] MSVC 2008 and cuda 2.2

2009-05-05 Thread Roman Grigoriev
Hi guys! I try to compile osgCompute under MSVC 2008 and beta cuda2.2 vista and 8600GT 185 nvidia drivers and got hangup on this What should I do? 1-- Build started: Project: Examples osgEndiannessDemo, Configuration: Release Win32 -- 1Generating main.gen.cpp 1main.cu

Re: [osg-users] [build] 2.9.3 cmake error

2009-05-05 Thread Mattias Helsing
Hi Alex, On 5/4/09, Alexandra Diehl ale.di...@gmail.com wrote: [quote=Mattias Helsing]Hi Alex, The complete error logs didn't come through. Could you repost. You should *not* need to move packaging into src. Where are you telling cmake to find the sources? i.e. what does it say next to

Re: [osg-users] isVertexBufferObjectSupported() ?

2009-05-05 Thread Ufuk
Hi, Actually i dont think it is about hardware or driver because i did a project similar to this with this hardware and it is still working on my computer. it returns true on isVertexBufferObjectSupported() but this project was made in like osg ~1.6. The function on Geometry was virtual void

Re: [osg-users] ViewDependentShadow and Lod

2009-05-05 Thread Wojciech Lewandowski
Hi Antonin, I am glad you had this sorted it out. You may try to replace shaders with yours. Its possible to set only fragment shaders and use fixed pipeline for vertices by setting MainVertexShader and ShadowVertexShader to NULL. Cheers, Wojtek - Original Message - From: Antonin

Re: [osg-users] Slave camera perspective

2009-05-05 Thread Robert Osfield
On Mon, May 4, 2009 at 6:44 PM, Guy Volckaert guy.volcka...@meggitt.com wrote: I should have looked at the osg::view code before posting the message. Now that I set the camera as ABSOLTE_REF, the camera manipulators don't work (as I feared). If you want a synchronized camera you use

Re: [osg-users] [build] Build problem with gdk-x11-2.0

2009-05-05 Thread Robert Osfield
Hi Davin, One should use CMake to set up the paths correctly rather than have to edit the link.txt, so the fact you needed to do this suggests that either the required libs were found correctly, or that the pdf/CMakeLists.txt is missing a search path. What values does Cmake report for the gdk

[osg-users] Problem with Cullvisitor

2009-05-05 Thread Jan
Hi, first of all, i'd like to introduce you to my problem to you. I have a PagedLOD DB for representing the ground. On this ground I want to position vegetation also as PagedLOD Nodes. X and Y Values are fix. The Problem is that I have to set the vegetation exactly on the ground, using an

Re: [osg-users] Linker error with VirtualPlanetBuilder

2009-05-05 Thread Robert Osfield
Hi Mike, As Paul mentions the OSG now sets up the values that are used by default for things like floating matrices and bounding boxes/spheres. The settings are stored in the include/osg/Config file. This file is automatically generated by CMake when you configure the build system. It sounds

Re: [osg-users] TexGen texture coordinates

2009-05-05 Thread Robert Osfield
Hi Brad, You have to apply translation and scale matrix to convert from eye coords to texture coords. The osgspotlight example will be doing this. Robert. On Tue, May 5, 2009 at 12:28 AM, Brad Huber br...@procerusuav.com wrote: Hello, I’ve been playing with code very similar to the

Re: [osg-users] isVertexBufferObjectSupported() ?

2009-05-05 Thread Robert Osfield
Hi Ufuk, I really can't guess what might be wrong because I know absolutely nothing about your application, I simply don't have magically powers to divine this stuff. What I do know is that the vertex buffer objects support does usually work, others do not report problems with it, so there

Re: [osg-users] Problem with Cullvisitor

2009-05-05 Thread Robert Osfield
HI Jan, It'd be fine to refine the vegetation step by step, but the time to do it would be per LOD level, and during load. Doing it per LOD level would avoid the issue of terrain and vegetation swapping a different times and having to track each other. Doing the operation during load (i.e. from

Re: [osg-users] Not OT: Visual Studio 2008 and deploying an OSG application

2009-05-05 Thread Christian Buchner
If you're still deploying the VC 2008 runtime as private assemblies (both manifest and directory Microsoft.VC90.CRT copied to both the OSG top level folder, as well as the OSG plugins folder) - you might want to a note I found attached to the following MSDN article

[osg-users] The mystery of the Disappearing Texture....

2009-05-05 Thread neil.hughes
Hi All, I have an application that employs OSG in a window. I load a scene with textures and everything is fine. If I move the window to a different screen, the textures disappear ! I move the window back to the original screen, the textures reappear. Back-and-forth my window goes from screen

Re: [osg-users] Adding and removing objects to scenegraph duringruntime?

2009-05-05 Thread Björn Blissing
The viewer.sync() and viewer.update() seems to be deprecated. And it seems a bit odd (at least for me) to just throw away the functionallity contained in viewer.run(). I have searched the mail archive but I still can't find any information how to properly add and remove content to the

[osg-users] Problem with large images

2009-05-05 Thread Peter
Hi all, I have a problem with large images. When I use the large image (1024x1024, PNG format) for texture mapping, it gives wrong result. There is a dark strip on the edge of the object. The farther the view is, the darker the strip is. Can anyone explain why it happened? Thanks, Peter

Re: [osg-users] Adding and removing objects to scenegraph duringruntime?

2009-05-05 Thread Vincent Bourdier
You can just call frame() in the while loop (if I'm right). See what the viewer.run() do, you'll have a good overview of what to use or not. Vincent. 2009/5/5 Björn Blissing bjorn.bliss...@vti.se The viewer.sync() and viewer.update() seems to be deprecated. And it seems a bit odd (at least

Re: [osg-users] isVertexBufferObjectSupported() ?

2009-05-05 Thread Ufuk
Thanks Robert, i know that you cant know the problem without seeing the code :) i just want to know that when isVertexBufferObjectSupported() function returns true or false? to use this support should i enable something? anyway now i will try to make a simpler example, then maybe i could show you

Re: [osg-users] Problem with Cullvisitor

2009-05-05 Thread J.P. Delport
Hi, see also the osggis project: http://osggis.org/ I don't think it does exactly what you want, but it shows how to create a database that runs in parallel with the terrain database. E.g. vector data follows the terrain and pages in with terrain data. jp Jan wrote: Hi Robert, I already

[osg-users] Frame Averaging

2009-05-05 Thread paul1492
I asked a similar question to this several months ago... I'm looking to average several frames together, however, this time I want to average discrete frames. That is, I want to average, for example, the first X frames and then display the results and then average the next X frames and

Re: [osg-users] Adding and removing objects to scenegraphduringruntime?

2009-05-05 Thread Björn Blissing
Well that will of course be diffrent depending on if I use Viewer or CompositeViewer. Never the less, I still think it is strange that I would be forced to tear down the Viewer.run() functionallity into pieces just to add and remove objects to the scenegraph during runtime. Which (at least

Re: [osg-users] Adding and removing objects to scenegraphduringruntime?

2009-05-05 Thread Vincent Bourdier
The Viewer.run() has been made to allow every one to cut it into pieces. This is not a special behavior, most of the OSG user do it. Vincent. 2009/5/5 Björn Blissing bjorn.bliss...@vti.se Well that will of course be diffrent depending on if I use Viewer or CompositeViewer. Never the less,

Re: [osg-users] Projective texture mapping with occluders/visibility computation

2009-05-05 Thread josselin . petit
Hi Max, Well, one year ago I was ignorant too in OpenGL and shaders, now I'm still ignorant in OpenGL but I begin to understand how to use shaders ;-) For shaders, the first reference is the orange book (Addison Wesley - 2006 - OpenGL Shading Language). But here are some cool

Re: [osg-users] Adding and removing objects to scenegraphduringruntime?

2009-05-05 Thread Serge Lages
Hi, Did you try to just add an UpdateCallback to your root node for example who makes the job to add or remove nodes ? 2009/5/5 Björn Blissing bjorn.bliss...@vti.se Well that will of course be diffrent depending on if I use Viewer or CompositeViewer. Never the less, I still think it is

Re: [osg-users] The mystery of the Disappearing Texture....

2009-05-05 Thread Robert Osfield
Hi Neil, This will be a driver dependent issue, the driver/OS managing graphics contexts behind the scenes for you, but not doing it 100% correctly. Personally I much prefer window managers/drivers that don't attempt to be clever on your behalf, and just done allow such windows to be dragged

Re: [osg-users] Problem with large images

2009-05-05 Thread Robert Osfield
Hi Peter, Your image may simply have a black band in it, or it could be that your texture coordinates are causes the the driver to wrap the tex coords around. Try setting the texture clamp to clamp to edge. BTW, 1024x1024 isn't a particular large image, the size of the image almost certainly a

Re: [osg-users] The mystery of the Disappearing Texture....

2009-05-05 Thread neil.hughes
Hi Robert, Thanks for the info. Guess I'll stick to one monitor for the moment ;-( Neil. Robert Osfield robert.osfi...@gmail.com wrote: Hi Neil, This will be a driver dependent issue, the driver/OS managing graphics contexts behind the scenes for you, but not doing it 100%

Re: [osg-users] Adding and removing objects toscenegraphduringruntime?

2009-05-05 Thread Björn Blissing
No.. When I searched the mail archive I found the previously linked message. It stated: It's a bad thing to add/remove items to the scene graph inside an update callback. Apparently, it invalidates the iterators. It was that message that prompted my initial question. /Björn

Re: [osg-users] Adding and removing objects toscenegraphduringruntime?

2009-05-05 Thread Serge Lages
It's bad if you add/remove objects in an upper part of you graph (like a child removing from the graph its parent). But there is no problem for a parent to remove their children if needed. 2009/5/5 Björn Blissing bjorn.bliss...@vti.se No.. When I searched the mail archive I found the

Re: [osg-users] Problem with large images

2009-05-05 Thread Ulrich Hertlein
Hi Peter, On 5/5/09 1:13 PM, Peter wrote: I have a problem with large images. When I use the large image (1024x1024, PNG format) for texture mapping, it gives wrong result. There is a dark strip on the edge of the object. The farther the view is, the darker the strip is. Can anyone explain

Re: [osg-users] Adding and removing objects to scenegraph duringruntime?

2009-05-05 Thread Robert Osfield
Hi Björn, 2009/5/5 Björn Blissing bjorn.bliss...@vti.se: The viewer.sync() and viewer.update() seems to be deprecated. And it seems a bit odd (at least for me) to just throw away the functionallity contained in viewer.run(). viewer.sync() existed in Producer/osgProducer from the OSG 1.x

Re: [osg-users] isVertexBufferObjectSupported() ?

2009-05-05 Thread Ismail Pazarbasi
Ufuk, bool isVertexBufferObjectSupported() const { return _isVertexBufferObjectSupportResolved?_isVertexBufferObjectSupported:computeVertexBufferObjectSupported(); } If you have seen the code that checks whether extension is supported: bool State::computeVertexBufferObjectSupported() const {

Re: [osg-users] The mystery of the Disappearing Texture....

2009-05-05 Thread Wojciech Lewandowski
Hi If its Windows and NVidia you may try changing MultiDisplay/mixed-GPU acceleration settings in NVidia 3D settings control panel. Wojtek - Original Message - From: Robert Osfield robert.osfi...@gmail.com To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Sent: Tuesday,

Re: [osg-users] OSG 2.8.1

2009-05-05 Thread Andy Skinner
How much feedback do you need for OSG 2.8.1? thanks, andy ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] isVertexBufferObjectSupported() ?

2009-05-05 Thread Ufuk
İsmail,Thanks for your answer, probably you are right because it is a qt application. maybe i could not set the context id. i think state.getContextID() does not match with the current context... i will check for it now.. if you know something about it please help me :) thanks again... :) On

Re: [osg-users] OSG 2.8.1

2009-05-05 Thread Robert Osfield
On Tue, May 5, 2009 at 1:21 PM, Andy Skinner andy.skin...@mathworks.com wrote: How much feedback do you need for OSG 2.8.1? The the more feedback the better. I have a couple of bugs fixes that I've just merged from svn/trunk into the OSG-2.8, and have am about to a submissions purge that will

[osg-users] [3rdparty] New: Level Editor for Virtual Reality Chat (VRC)

2009-05-05 Thread Botorabi
hi, there is fresh meat in vrc project: an editor which eases the process of level design. it misses some features such as undo/redo and other stuff i would like to have, but it is a good first usable and (relatively) stable version, at least. for screenshots see here: http://www.vr-fun.net

Re: [osg-users] Problem with large images

2009-05-05 Thread Peter
Hi Ulrich, The texture file is okey. I tried few images, each with same result. When I scale down the texture, it doesn't show the problem. I set nothing special for my texture. Even if I try to map the texture on the pyramid from tutorial

Re: [osg-users] Problem with large images

2009-05-05 Thread Tomlinson, Gordon
See this http://www.vis-sim.com/osg/osg_faq_1.htm#f32 FAQ it might be relevant Gordon Product Manager 3d __ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com __

Re: [osg-users] Problem with Cullvisitor

2009-05-05 Thread Paul Martz
Not sure why you would need to place the vegetation _exactly_ on the ground for anything other than the highest LOD. Presumably, for lower LODs, the eyepoint would be too distant to notice any issues. If you agree, then you could use an LOD=savvy tool like ElevationSlice to get the elevation of

Re: [osg-users] Not OT: Visual Studio 2008 and deploying an OSGapplication

2009-05-05 Thread Tomlinson, Gordon
Part of the issue with plugins like the Collada one may be that it provides some required libs such boost, libxml2 etc which proably need to point to your own built versions as there is no info on how these are built. The problem atic one I'm finding as I go to full 64 bit support is the pcre and

Re: [osg-users] Problem with large images

2009-05-05 Thread Tomlinson, Gordon
Might be a red herring as its likely to be the clamping issue But recently I had noted several programs had issues with png when sizing, in that they count pixel 0 to n for png, rather than 1 to n as they do for other formats , so if you sized an image at 1024x1024 for png you actually go

Re: [osg-users] [build] 2.9.3 cmake error

2009-05-05 Thread Alexandra Diehl
Thank you Mattias!!! I could resolve it. I appreciate very much the time and help you bring me! I wish you a Very Good Day!!! Greettings, Alex. It works very well [quote=Mattias Helsing]Hi Alex, On 5/4/09, Alexandra Diehl wrote: Mattias Helsing wrote: Hi Alex, The complete error

Re: [osg-users] ViewDependentShadow and Lod

2009-05-05 Thread Antonin Linares
Hi Wojtek, Thanks for the vertex shader trick, but in this way i gate pure black shadow and terrible artifact on my shadow caster model. Actually i can see two way to solve my lighting problem. -Make a vertex shader who can compute lighting with glMaterial and glColor both. but it's seem

Re: [osg-users] Problem with Cullvisitor

2009-05-05 Thread Thrall, Bryan
Jan wrote on Tuesday, May 05, 2009 3:38 AM: first of all, i'd like to introduce you to my problem to you. I have a PagedLOD DB for representing the ground. On this ground I want to position vegetation also as PagedLOD Nodes. X and Y Values are fix. The Problem is that I have to set the

[osg-users] Possible dangling deleted pointer problem with Dragger/Manipulator

2009-05-05 Thread Chris Denham
I've just tracked down a problem with my osg application crashing and was wondering about the correct place to put the fix. I can fix it outside osg but it occured to me that it might be better to fix it within osg because I think its a bug that has the potential for causing memory corruption.

Re: [osg-users] Problem with Cullvisitor

2009-05-05 Thread Thrall, Bryan
Paul Martz wrote on Tuesday, May 05, 2009 8:45 AM: Not sure why you would need to place the vegetation _exactly_ on the ground for anything other than the highest LOD. Presumably, for lower LODs, the eyepoint would be too distant to notice any issues. If you agree, then you could use an

Re: [osg-users] Possible dangling deleted pointer problem with Dragger/Manipulator

2009-05-05 Thread Robert Osfield
HI Chris, I haven't reviewed the code yet, but it does sound like from your description that a ref_ptr would fix the problem. The only thing to watch with ref_ptr usage is the issue of circular references being set up, but in this context it doesn't seem like an issue. Robert. On Tue, May 5,

Re: [osg-users] Possible dangling deleted pointer problem with Dragger/Manipulator

2009-05-05 Thread Jean-Sébastien Guay
Hi Chris, Why not: bool CommandManager::disconnect(Dragger dragger) { osg::ref_ptrDragger localDragger(dragger); _draggerSelectionMap.erase(dragger); _draggerConstraintMap.erase(dragger); // may be deleted at this point return true; } or just: bool

Re: [osg-users] Problem with Cullvisitor

2009-05-05 Thread Paul Martz
Depending on the LOD data, this could cause the vegetation to be placed under the terrain, effectively causing it to disappear at certain distances. It still might be acceptable, though, depending on the requirements of the project. Hi Bryan -- Agreed. And if it turns out the discrepancy is

Re: [osg-users] Possible dangling deleted pointer problem with Dragger/Manipulator

2009-05-05 Thread Chris Denham
Thanks J-S, Yes, your first suggestion certainly fixes the problem (I tried it earlier!) and I agree, its probably and advantage to keep the interface the same. I think I just had a niggling feeling that it probably wasn't a good idea in principle to pass around C++ references to ref counted

Re: [osg-users] OSG 2.8.1

2009-05-05 Thread Robert Osfield
Hi Tanguy, On Tue, May 5, 2009 at 4:22 PM, Tanguy Fautre tang...@aristechnologies.com wrote: Is there any ETA on the final 2.8.1 if this RC4 goes according to plan? It would be good to get 2.8.1 out for the middle of this month. I need to get on top of submissions and make another rc, then

Re: [osg-users] TexGen texture coordinates

2009-05-05 Thread Robert Osfield
HI Brad, I'm afraid I don't have any ideas what might be up. You're tweaking code I wrote a long while back in ways that I don't understand. The best I can do is recommend you do some background reading on projective textures. I can point you in the right direction, but it's not my role to

Re: [osg-users] ViewDependentShadow and Lod

2009-05-05 Thread Wojciech Lewandowski
Hi Antonin, Sounds like your issue might be related to GL_LIGHTING or GL_MATERIAL_COLOR mode usage. GL_COLOR_MATERIAL selects source of diffuse/ambient/emissive/specular term. Its either taken from material or from color set in geometries. This fixed pipeline attribute is not passed to

[osg-users] Collada plugin not found.... but it is!

2009-05-05 Thread lucas Grijander
Dear all, I installed the last version of OSG (2.8.0) and the 2.2 version of the collada-dom. I compiled and installed everything (debug and release). Now, when I execute my application and I try to writeNodeFile in dae format I get the well-known warning: plugin not found. I got this

Re: [osg-users] OSG 2.8.1

2009-05-05 Thread Tanguy Fautre
Hi Robert, Good to know. I think we're going to start the testing and (pre-)release process with the RC4 then, and move to Final at a later point. For you it means you'll get our whole testing department busy on OSG 2.8.1 RC4. ;-) Tanguy -Original Message- From:

Re: [osg-users] Collada plugin not found.... but it is!

2009-05-05 Thread Roger James
lucas Grijander wrote: Dear all, I installed the last version of OSG (2.8.0) and the 2.2 version of the collada-dom. I compiled and installed everything (debug and release). Now, when I execute my application and I try to "writeNodeFile" in dae format I get the well-known warning:

Re: [osg-users] swapBuffers warning when window minimized

2009-05-05 Thread Chris Denham
Bit of a late reply to this one, but just arrived at the same problem. For me, on Windows, I also get a slew of these warnings when I move the window off screen. So, might be a bit fiddly to try and prevent frame update in all situations that SwapBuffers retuns false. I wondered if we could

Re: [osg-users] Collada plugin not found.... but it is!

2009-05-05 Thread lucas Grijander
you mean I should use 2.1 version of collada DOM instead of 2.2? J. Date: Tue, 5 May 2009 17:54:05 +0100 From: ro...@beardandsandals.co.uk To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Collada plugin not found but it is! lucas Grijander wrote: Dear all,

Re: [osg-users] swapBuffers warning when window minimized

2009-05-05 Thread Tomlinson, Gordon
I have seen this as well . I say 'THE WORD' :), a fix for this would be welcome Gordon Product Manager 3d __ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com __

Re: [osg-users] TexGen texture coordinates

2009-05-05 Thread Brad Huber
Actually the solution is simple. I was barking up the wrong tree with the texgennode. That's why I was soliciting help. What my code (and osgspotlight) was lacking is a texture matrix to center the spotlight and make it accurate. I've included the snippet for reference.

Re: [osg-users] Shadows textures

2009-05-05 Thread Patrick Pogscheba
Thank you, I've managed the Text-issue. On the issue with the textures in shadowed scenes i checked the models twice and now the flt-files work :) It must be an error in the collada files. I generated them from the flt-files both with blender and maya. With the maya-Export i get no textures

[osg-users] osgOcean release

2009-05-05 Thread Kim C Bale
Hello all, Many moons ago I emailed the list to announce my intentions of releasing an ocean rendering library for the OSG. Well after many delays and things getting in the way i've put some code up for your perusal. http://code.google.com/p/osgocean/ At the moment i have only put the

Re: [osg-users] Collada plugin not found.... but it is!

2009-05-05 Thread Roger James
lucas Grijander wrote: you mean I should use 2.1 version of collada DOM instead of 2.2? J. Date: Tue, 5 May 2009 17:54:05 +0100 From: ro...@beardandsandals.co.uk To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Collada plugin not found but it is! lucas

[osg-users] [Beginner question]Keyboard event handling tutorial.

2009-05-05 Thread Lev
Hi, I have using been keyboard handling code from basic keyboard handling (http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/BasicKeyboardInput) tutorial. As I understand to implement further functionality, I need to modify tankInputDeviceStateType class. However I cannot

[osg-users] How to recover the ParticleSystem?

2009-05-05 Thread Wangjian
Hi, I create a ParticleSystem,such as: _ps=create_complex_particle_system(_sceneRoot); osgParticle::ParticleSystemUpdater *psu=newosgParticle::ParticleSystemUpdater; psu-addParticleSystem(_ps); _sceneRoot-addChild(psu); Now I hope that the psu disappear,so I write

[osg-users] libSquish and VPB?

2009-05-05 Thread Chris 'Xenon' Hanson
I went to build the SVN-head VPB (on Windows) today, and discovered it now needs libSquish for DXT software compression. I grabbed it from Google code via SVN, and tried to get CMake to accept it. I set the libsquish-DIR manually to the root of the libSquish SVN checkout, but CMake doesn't

[osg-users] constructing geometry using position, normal and uv coord arrays

2009-05-05 Thread OSG Newbie
Hi, What I have are position array, normal array and uv coordinate array (these arrays don't have the same number of elements) and a list of index that specify each vertex's position, normal and uv coordinate by their respective index. I would like to construct geometry from these arrays and

[osg-users] how to get transpose matrix?

2009-05-05 Thread Dongpyo Hong
Hi, I don't think osg provide a method to get transposed matrix from matrix (i.e., matrix.transpose() something like that). Or, I couldn't find it? -- Thanks in advance. === Dongpyo Hong, Research Assistant 500-712 Oryong-dong Buk-gu Gwangju, Korea GIST U-VR Lab http://uvr.gist.ac.kr