Re: [osg-users] What is the meanings of setMinimumScale(1)and setMaximumScale(2)?

2009-04-23 Thread Roland Smeenk
Hi Wangjian, please don't post the same question twice. You probably didn't receive an answer, because the question was too vague. It would have been clearer if you said that setMinimumScale and setMaximumScale are part of AutoTransform. > When I run the program You are probably talking abo

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Abhinav Dubey
Skylark wrote: > Hello Abhinav, > > > > but i want to directly get these files in bin instead of copying them. can > > yoyu uggest the code for it!! > > > > You don't need to change anything in CMake to get binaries in bin, just > set CMAKE_INSTALL_PREFIX = (your OSG directory) and build the

[osg-users] What is the meanings of setMinimumScale(1)and setMaximumScale(2)?

2009-04-23 Thread Wangjian
Hi, What the meanings of setMinimumScale(1) and setMaximumScale(2)? When I run the program,I found if I use the right button,the model disappeared.The function of setMinimumScale(1) have no effect.I think whatever I move the mouse,I can still see the model. Thank you. -- Read

[osg-users] OSG .NET demo using C++/CLI

2009-04-23 Thread Ernest Abbott
Hi, I've downloaded OSG2.8 and any trying heiscong osgNetDemo, mainly because I found an issue with C# as it does not expose the 'inheritedWindowData' so C# can't have the rendering window embedded in the program as osgNetDemo does. All that beside. In running osgNetDemo it throws an excepti

Re: [osg-users] Picking Problem PolytopeIntersector

2009-04-23 Thread Jason Daly
Paul Martz wrote: You _can_ use a line segment for mouse click picking, but in a perspective view, polytope is really better suited for this task. Also, polytope will pick point and line primitives, while line segment intersection will miss them. Unless you're dealing with points/lines, I'm

Re: [osg-users] Modifying SG based on viewpoint location

2009-04-23 Thread Roland Smeenk
Paul Martz wrote: > The HUD issue shouldn't require modifying the scene graph at all. Create one > HUD scene graph with the entire HUD in it. Parent it to two HUD cameras with > two different views. One Camera has its view matrix set to view the left > half of the HUD, and the other is similarly c

Re: [osg-users] osgEarth 1.1 Released

2009-04-23 Thread Paul Martz
Will one of you be at SIGGRAPH this year? The OSG BOF is Wednesday afternoon, and it'd be great to get a demo of osgEarth (if you can get to the internet). I'll post a call for participation as SIGGRAPH approaches. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com

Re: [osg-users] Modifying SG based on viewpoint location

2009-04-23 Thread Paul Martz
The HUD issue shouldn't require modifying the scene graph at all. Create one HUD scene graph with the entire HUD in it. Parent it to two HUD cameras with two different views. One Camera has its view matrix set to view the left half of the HUD, and the other is similarly configured to view the right

Re: [osg-users] Modifying SG based on viewpoint location

2009-04-23 Thread Roland Smeenk
Related to this question I have two cases where I want to do something similar. 1. HUD across multiple slave views I have a view that uses multiple slave camera's with a projection offset (or viewmatrix offset). Simply adding a HUD camera like in the osghud example will result in two similar HU

[osg-users] osgEarth 1.1 Released

2009-04-23 Thread Jason Beverage
Hi all, Cross posting from the osgEarth forums. We've just tagged the osgEarth 1.1 release. Changes in this release include: *Enhanced WCS driver with support for ArcGIS Server *Added GDAL dependency to osgEarth to support new SpatialReference classes *Added new GeoExtent class *Added a memory c

Re: [osg-users] Modifying SG based on viewpoint location

2009-04-23 Thread Paul Martz
Yeah, what does "modify" mean, that's the question. I have a client who is modifying the scene graph in a number of ways during the cull traversal and is therefore only able to run SingleThreaded. I'm still digging in to find out exactly what it is they are doing that isn't thread safe (even the

Re: [osg-users] OpenSceneGraph-2.8.1 release candidate three tagged

2009-04-23 Thread Paul Martz
Just tested the following with my current software project and encountered no issues: 2.8.1 rc3 on WinXP using VS8 with Quadro 1500M svn head on WinXP using VS8 with Quadro 1500M svn head on Mac OS X using makefiles/gcc with GeForce 8800 Paul Martz Skew Matrix Software LLC http://www.skew-ma

Re: [osg-users] DBPager continuously reloading tiles

2009-04-23 Thread Jean-Sébastien Guay
Hi Robert, On the same track, perhaps we should also consider artificially restricting frame rate to prevent running apps running at full pelt due to vsync being off. The later is possible more important under Linux as I've found ATI, Nvidia and Intel drivers neglect to enable vysnc by default.

Re: [osg-users] DBPager continuously reloading tiles

2009-04-23 Thread Robert Osfield
Hi All, Out of curiosity I did some power tests viewing a paged database with different viewer frame updating configs. Power is measure at the wall using so it's the complete machine. T 103W Compute at idle 103W Lazy frame rendering (based on modified version of Evan's viewer) 125W Continuous f

Re: [osg-users] DBPager continuously reloading tiles

2009-04-23 Thread Robert Osfield
On Thu, Apr 23, 2009 at 5:51 PM, Evan Andersen wrote: > Things seem to work fine if I only call advance() when a render is done. > Off the top of your head, can you think of any problems that might be caused > by not doing an advance for every iteration of the event and update > traversals?  Would

Re: [osg-users] DBPager continuously reloading tiles

2009-04-23 Thread Robert Osfield
HI Evan et. al, On Thu, Apr 23, 2009 at 5:16 PM, Robert Osfield wrote: > Tweaking the > application code so that it doesn't do an viewer.advance() until a new > frame is actually required. I've now tried this and got the viewer supplied by Evan to do lazy updating of the graphics to work withou

Re: [osg-users] DBPager continuously reloading tiles

2009-04-23 Thread Evan Andersen
Robert, Things seem to work fine if I only call advance() when a render is done. Off the top of your head, can you think of any problems that might be caused by not doing an advance for every iteration of the event and update traversals? Would it be better to advance the reference time at each it

Re: [osg-users] DBPager continuously reloading tiles

2009-04-23 Thread Robert Osfield
On Thu, Apr 23, 2009 at 4:32 PM, Robert Osfield wrote: > Thanks Evan, with your example I'm able to see the problem when > browsing http://www.openscenegraph.org/data/earth_bayarea/earth.ive. > I'll now dig into the DatabasePager to see what is up. The culprit looks to be the following (normally

Re: [osg-users] Modifying SG based on viewpoint location

2009-04-23 Thread Chris 'Xenon' Hanson
Paul Martz wrote: > Hi all -- I'd like to see how members of the community are handling this > fairly common OSG problem. > Imagine that your app needs to modify the scene graph I guess the important question is, what kind of modifications exactly? -- Chris 'Xenon' Hanson, omo sanza lettere

Re: [osg-users] Modifying SG based on viewpoint location

2009-04-23 Thread Mathias Fröhlich
Hi, On Thursday 23 April 2009 16:59, Paul Martz wrote: > But I'm interested in hearing other ideas on how to handle this issue. > Thanks in advance for any feedback. That depends on what you need to do 'modify' in the scenegraph. In certain situations, like dynamic model view transform updates

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Luigi Calori
It depends if you want them put there at INSTALL time or at BUILD time. CMAKE_INSTALL_PREFIX set the installation path If you want the dll and ex in bin at BUILD time, as I' ve already suggested, set RUNTIME_OUTPUT_DIRECTORY in bin AND put >../< in front of your name or prefix prope

Re: [osg-users] Modifying SG based on viewpoint location

2009-04-23 Thread Thrall, Bryan
Paul Martz wrote on Thursday, April 23, 2009 9:59 AM: > Hi all -- I'd like to see how members of the community are handling this > fairly common OSG problem. > > Imagine that your app needs to modify the scene graph based on the viewpoint > location, view frustum, distance to the viewpoint, etc.

Re: [osg-users] OpenSceneGraph-2.8.1 release candidate three tagged

2009-04-23 Thread Andy Skinner
Thanks. Sorry I'm slow--I have built rc2 on Intel Mac, win32, and Linux 64. I have tried it in my app on win32. I guess instead of trying what I have on the other platforms, I should get the new one. I've had a lot going on, so haven't been able to give quick responses. andy -Original

Re: [osg-users] DBPager continuously reloading tiles

2009-04-23 Thread Robert Osfield
Thanks Evan, with your example I'm able to see the problem when browsing http://www.openscenegraph.org/data/earth_bayarea/earth.ive. I'll now dig into the DatabasePager to see what is up. On Thu, Apr 23, 2009 at 4:08 PM, Evan Andersen wrote: > Robert, > > Here's a simple viewer I wrote that does

Re: [osg-users] DBPager continuously reloading tiles

2009-04-23 Thread Kawicki, Ryan H
Though I do not believe this problem to be limited to a particular application, we are seeing this problem with our terrapage databases produced through Terra Vista. I'll try and see if our database group can produce a dataset that exhibits this problem and can be released to the community with n

Re: [osg-users] OpenSceneGraph-2.8.1 release candidate three tagged

2009-04-23 Thread Robert Osfield
On Thu, Apr 23, 2009 at 4:04 PM, Paul Martz wrote: > Robert -- Typo. I think when you say "subsurface" in regards to OpenFlight, > you actually mean "subface". We're talking about coplanar polygons, not > translucent light scattering, right? Thanks for the note, I've ammened the blog and NEWS ite

Re: [osg-users] [osgPlugins] collada: use of bind_vertex_input

2009-04-23 Thread Roger James
Martin Scheffler wrote: Hi, I export from Max using the feeling exporter 3.05b (c gives the same results). I have a diffuse map and an ambient map in my model. When importing the collada file into osg, the maps are not shown. It seems that I have to modify [code][/code] to [code] [/co

Re: [osg-users] DBPager continuously reloading tiles

2009-04-23 Thread Evan Andersen
Robert, Here's a simple viewer I wrote that does non-continuous render and exhibits the problem. You can just run it like the osgviewer application, passing in the path to a database on the command line. I have also included a stats handler that will cause the app to switch to continuous render

Re: [osg-users] Modifying SG based on viewpoint location

2009-04-23 Thread Robert Osfield
Hi Paul, On Thu, Apr 23, 2009 at 3:59 PM, Paul Martz wrote: > Hi all -- I'd like to see how members of the community are handling this > OSG itself needs to handle this situation in a few places. AutoTransform, > Billboard, LOD, and screen-oriented text, just to name a few. I believe OSG > handle

Re: [osg-users] OpenSceneGraph-2.8.1 release candidate three tagged

2009-04-23 Thread Paul Martz
Robert -- Typo. I think when you say "subsurface" in regards to OpenFlight, you actually mean "subface". We're talking about coplanar polygons, not translucent light scattering, right? I'll switch over to the rc3 tag and try it out. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +

[osg-users] Modifying SG based on viewpoint location

2009-04-23 Thread Paul Martz
Hi all -- I'd like to see how members of the community are handling this fairly common OSG problem. Imagine that your app needs to modify the scene graph based on the viewpoint location, view frustum, distance to the viewpoint, etc. This information is not guaranteed to be available, accurate, or

[osg-users] OpenSceneGraph-2.8.1 release candidate three tagged

2009-04-23 Thread Robert Osfield
Hi All, (from my blog at blog.openscenegraph.org) I’ve just tagged the 2.8.1 release candidate 3. The are a couple of fixes since rc2: * Fix to the subsurface handling in OpenFlight files * Removal of an old hack to PolygonOffset’s unit multiplier for ATI cards that is no longer required

[osg-users] Stereo with my own model

2009-04-23 Thread tien dat
Dear all, I have a little problem with stereo display. When I run osgviewer with "--stereo HORIZONTAL_SPLIT" and the cow.osg, it looks great. But when I try to run osgviewer with my own model, it looks weird. It seems that the eye separation is too far (although I'm not sure). I try to change to ey

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Abhinav Dubey
Skylark wrote: > Hello Abhinav, > > > > but i want to directly get these files in bin instead of copying them. can > > yoyu uggest the code for it!! > > > > You don't need to change anything in CMake to get binaries in bin, just > set CMAKE_INSTALL_PREFIX = (your OSG directory) and build the

Re: [osg-users] Picking Problem PolytopeIntersector

2009-04-23 Thread Jean-Sébastien Guay
Hi Paul, Hi J-S -- You can dismiss tradition in this area, but I prefer to learn lessons instead. I was just joking :-) I've used GL_SELECTION too in the past, it was a good tool, but there are better ways now. Generally speaking, polytope is what you want. It generally runs faster than a

Re: [osg-users] OpenFlight, subsurfaces and PolygonOffset settings

2009-04-23 Thread Robert Osfield
Hi Paul, I do wonder if the right way to solve subsurfaces is modify the underlying geometry so it shares the same vertices as the subsurface, and then insert any vertices of the underlying geometry into the subsurface geometry, then render with the depth test to pass when fragments are less than

Re: [osg-users] OpenFlight, subsurfaces and PolygonOffset settings

2009-04-23 Thread Paul Martz
-1,-1 has always worked for me in the typical case, and the OpenFlight setting is excessive for the typical case. In the typical case, your geometry is near the origin. In an atypical case, imagine two coplanar polygons with an arbitrary (non-axis aligned) orientation and a heterogeneous set of ve

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Jean-Sébastien Guay
Hello Abhinav, but i want to directly get these files in bin instead of copying them. can yoyu uggest the code for it!! You don't need to change anything in CMake to get binaries in bin, just set CMAKE_INSTALL_PREFIX = (your OSG directory) and build the INSTALL project in the VS solution. T

Re: [osg-users] how to use the function of getParent(0)

2009-04-23 Thread Vincent Bourdier
Hi, In the most case, you node only get one parent, so getParent(0) is safe... You can also consider that if you node is in the scene graph, the parent(0) is valid. I you do getParent(i) with i>0, you have to check the parent you get, if null or not ... Hope this help. Regards, Vincent 2009/

Re: [osg-users] 300 forum members

2009-04-23 Thread Art Tevs
Oh, in deed, hmm, I didn't knew that there exists such a capability. OK, I will then write a script which will check how much of the overlap there is between mailing list and forum users. As soon as I have the info, I let you all know. Roland, thank you again for pointing me into the right direc

[osg-users] how to use the function of getParent(0)

2009-04-23 Thread Wangjian
Hi, Can you tell me the meaning of the node->getParent(0)?Why is it not node->getParent(1) or node->getParent(2)? Thank you. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10723#10723 ___ osg-users

Re: [osg-users] Picking Problem PolytopeIntersector

2009-04-23 Thread Paul Martz
Hi J-S -- You can dismiss tradition in this area, but I prefer to learn lessons instead. Generally speaking, polytope is what you want. It generally runs faster than a cull traversal, so performance is rarely an issue. Most users can tolerate a small delay anyway, but are very unforgiving of accur

Re: [osg-users] 300 forum members

2009-04-23 Thread Roland Smeenk
Art, if you are subscribed to the mailing list you can retrieve a list of subscribers. That's how I know the ML numbers. See osg-users Subscribers at http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Roland -- Read this topic online here: http://for

Re: [osg-users] 300 forum members

2009-04-23 Thread Art Tevs
Hi, yeah this are interesting news. To hook up to the thread about 200 forum users from the last month, it would be interesting to know how much is the overlap between forum and mailing list users. Robert, could you still provide me with the list of the names (or emails) of all mailing list u

Re: [osg-users] OpenFlight, subsurfaces and PolygonOffset settings

2009-04-23 Thread Mathias Fröhlich
Hi, On Thursday 23 April 2009 14:16, Robert Osfield wrote: > As an another little aside, in testing on my ATI card I found that the > original hack that was introduced into osg::PolygonOffset, to try and > cope with implementations differences of glPolygonOffset between ATI > and NVidia, now is d

[osg-users] OpenFlight, subsurfaces and PolygonOffset settings

2009-04-23 Thread Robert Osfield
Hi OpenFlight users, I had a support email this morning that led me to investigate problems with the way the OSG's present OpenFlight plugin handles subsurfaces. The particular problem observed was that a road that had been modelled in creator was clipping out vehicles on top of the road. I inves

Re: [osg-users] DoomLike manipulator

2009-04-23 Thread Simon Loic
Hi Richard, I wouldn't want to fool you with this collision stuff. The goal is simply to prevent the player (the camera) to cross through the walls of the scene, and in the meantime to stick to the ground in case of grounded mode. Something alike is already done in the DriveManipulator, using a Lin

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Abhinav Dubey
will dis put the .exe file directly in bin folder without creating a copy in debug folder?? because what i actually want is when i debug my project the .exe file gets created in bin folder and run from there!! -- Read this topic online here: http://forum.openscenegraph.org/viewt

Re: [osg-users] Public ffmpeg plugin testing streams

2009-04-23 Thread Tanguy Fautre
Hi J-S, FFmpegDecoder.cpp : -> bool FFmpegDecoder::readNextPacketNormal() [Line 246 to 308] -> bool FFmpegDecoder::readNextPacketEndOfStream() [Line 312 to 320] More precisely, I wonder about the API validity of the following code in the case of a streaming video. FFmpeg documentation is quite

[osg-users] [osgPlugins] collada: use of bind_vertex_input

2009-04-23 Thread Martin Scheffler
Hi, I export from Max using the feeling exporter 3.05b (c gives the same results). I have a diffuse map and an ambient map in my model. When importing the collada file into osg, the maps are not shown. It seems that I have to modify [code][/code] to [code] [/code] Then everything works as e

[osg-users] 300 forum members

2009-04-23 Thread Roland Smeenk
Just wanted to inform you that we have reached 300 forum members. Small overview over forum and ML members (non-digest/digest) 25 februari 2009 Forum 100 ML 1842 (1410/432) 24 march 2009 Forum 200 ML? 23 april 2009 Forum 300 ML 1852 (1413/439) 22 may 2009 Forum 400??? kind regards

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Luigi Calori
Try this SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${your_exe_dir} ) SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${your_lib_dir} ) IF(MSVC_IDE) SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES PREFIX "../")

Re: [osg-users] Copying top half of image using osg::copyImage

2009-04-23 Thread Donald Cipperly
Hi Robert, I have indeed gone through the debugger and the values are what I would expect. I've attached an example so you could see the issue. If I am interpreting the osg::copyImage parameters correctly, then the "if ((src_t+height) > (dest_t + destImage->t()))" check seems should rather be "i

Re: [osg-users] Is polygon on screen

2009-04-23 Thread Dror Lawa
Hello there, are you the famous manguliok from the vegaprime forum?? I hope so... to the business, I'm new to the OSG, as I understood from your question I'm in the same need, but I just can't understand Robert tips. I set up my entire camera as the frustrum, but where do I select the triangle I

Re: [osg-users] How to make a thread running into the graph safely ?

2009-04-23 Thread Vincent Bourdier
Hi Robert, You're right of course, I was just asking if you remember something about that, but the code seems to always tell the truth, and so I need to upgrade ... I'll notice that for the day when we upgrade. Thanks for your time and your explanations. Regards, Vincent. 2009/4/23 Robert Os

Re: [osg-users] How to make a thread running into the graph safely ?

2009-04-23 Thread Robert Osfield
Hi Vincent, I can't keep track of every little bit of code in every previous OSG release. The code works in 2.8.0 as far as I'm aware so why not just upgrade, all it should require is a download and recompile of the OSG and your app. Robert. On Thu, Apr 23, 2009 at 10:13 AM, Vincent Bourdier w

Re: [osg-users] How to make a thread running into the graph safely ?

2009-04-23 Thread Vincent Bourdier
Hi Robert, First, thanks for the answers. Next, I get my camera stats, it contains a lot of things : In _collectMap there are (gpu, true) and (rendering, true), and in _attributeMapList there are 25 item, which are empty or containing some things like "cull traversal begin time" or Draw traversal

Re: [osg-users] How to make a thread running into the graph safely ?

2009-04-23 Thread Robert Osfield
Hi Vincent, Camera's don't have a Stats object assigned to them by default, you have to assign it. osgViewer does assign Stats for the viewer camera, or at least in 2.8. Go check the differences between the viewer libs. Robert. On Thu, Apr 23, 2009 at 9:34 AM, Vincent Bourdier wrote: > Hi Rob

Re: [osg-users] How to make a thread running into the graph safely ?

2009-04-23 Thread Vincent Bourdier
Hi Robert, I am using the 2.6.1 that's why I didn't found stats code. For the moment, I just copy the code from 2.8 concerning camera stats (visible vertices, ...) but it does not work correctly : In the StatsHandler, in the case of camera stats, there is : > for(osgViewer::ViewerBase::Cameras:

Re: [osg-users] Jerky display?

2009-04-23 Thread Robert Osfield
On Thu, Apr 23, 2009 at 6:20 AM, Akilan wrote: > Hi > > I bit know about the concept of quad tree. But  I want to know applying the > concept on OSG construction. > Can I get any reference for organizing the scenegraph in quad tree form? I have help with API, but it's not my role to teach your a

Re: [osg-users] DBPager continuously reloading tiles

2009-04-23 Thread Robert Osfield
Hi Evan, On Wed, Apr 22, 2009 at 10:05 PM, Evan Andersen wrote: > Ryan, > > Thank you for the suggestion.  When I call > setTargetMaximumNumberOfPagedLOD(0) on the database pager, as you suggested > and then set the expiry delay to DBL_MAX and the expiry frames to 10, as > Jason Suggested the pro

Re: [osg-users] RecordCameraPathHandler where is the saved_animation.path file?

2009-04-23 Thread Robert Osfield
HI Rodrigo, On Wed, Apr 22, 2009 at 8:39 PM, Rodrigo Salvador wrote: > Felix, did you achieve to replay the animation? > > I recorded a animation in a "saved_animation.path" file, but what I want is > to play it in a external player. Does OSG save the animation with another > kind of file, like

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Abhinav Dubey
i know that way it can be done..but i am using Qt+VS+Cmake and need to do this cia CMakeLists.txt. right now what i am doing is that i copy these file from the repective folders as a post build even. the code i am using is: if(WIN32) add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD

Re: [osg-users] Picking Problem PolytopeIntersector

2009-04-23 Thread Peter Hrenka
Hi Jean-Sébastien, Jean-Sébastien Guay schrieb: Hello Matthias, [...] Another difference, the line segment intersector orders objects by their distance (closest intersection first), but the polytope intersector doesn't (it would be pretty hard to implement even an approximation, and even th

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Vincent Bourdier
Hi, You don't need Cmake for that, just run into VS project properties -> Linker -> General -> output file (or similar, my VS is in French) Same thing for the .pdb file in properties -> Linker-> debug Regards, Vincent. 2009/4/23 Abhinav Dubey > Hi, > i am building my project in VS2005. rig

[osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Abhinav Dubey
Hi, i am building my project in VS2005. right now the .exe file and .pdb file go in debug folder but i want the to go in the bin folder instead and run from there. plz suggest the CMakeList.txt code for it ... Thank you. -- Read this topic online here: http://forum.openscenegra