[osg-users] stateset, culling

2009-04-15 Thread petr srom
Hi, I need to render back face of .ive models, in open GL is the syntax: glEnable(GL_CULL_FACE); glCullFace(GL_FRONT); Is the syntax in OSG these way? osg::StateSet *myst = new osg::StateSet(); myst->setMode(GL_CULL_FACE, osg::StateAttribute::ON); myst->setMode(GL_FRONT, osg::StateAttribute:

Re: [osg-users] Skybox example problem

2009-04-15 Thread Großer Martin
Hello Robert, I'm sorry, thats right. I mean the osgvertexprogram. This example use a Skybox. When I zoom out or when I use a bigger scene then I get artefacts in the Skybox. When I change the following line from ... clearNode->setRequiresClear(false); ... in ... clearNode->setRequiresClear(tru

Re: [osg-users] Can not create OpenGL texture in OSG

2009-04-15 Thread su hu
After glGenTextures, I use glGetError to get the error. The result is : GL_INVALID_OPERATION. OpenGL manual ( http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/gentextures.html)gives the reason as: *GL_INVALID_OPERATION* is generated if *glGenTextures* is executed

[osg-users] Can not create OpenGL texture in OSG

2009-04-15 Thread su hu
Hi all, When I tried to create a texture by glGenTextures in OSG, I met a problem. glGenTextures can not create a texture object. Zero is returned and no texture is created. Source codes are as follow: while(!Viewer.done()) { ... if(Render) {

Re: [osg-users] GPU Feedback

2009-04-15 Thread Jason Daly
Ed wrote: Evidently I didn't look hard enough... I found what I was looking for: The NVPerfKit counters. http://developer.nvidia.com/object/nvperfkit_counters.html. Do the stats you refer to come from these counters or this type of feedback mechanism? i.e. low level counters inside the hard

[osg-users] Problem with CompositeViewer in osg2.8 static libs

2009-04-15 Thread heishuijing_2000
hello everyone, Recently,i had a problem with Osg 2.8. I have write a very simple program to test a "bug" with osg 2.8 static libs and VS2008.The test program is below: #include #include #include USE_GRAPHICSWINDOW(); int main(int argc, char* argv[]) {

[osg-users] vertex data in byte precision

2009-04-15 Thread Luigi Calori
Probably a newbie question: Is it possible to store vertex data in byte array like Vec3bArray ? I' ve tried but it seem not allowed: I obtain crash when call setVertexArray Is it something dependent on driver? I attach two sample files, short working, byte hanging Thanks Luigi G

Re: [osg-users] Dinamic Line Drawing

2009-04-15 Thread Paul Martz
setUseDisplayLists( false ). Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Allen Saucier Sent: Wednesday, April 15, 2009 3:

Re: [osg-users] [vpb] Building a geocentric database with heigh data

2009-04-15 Thread Mauricio
The source data are ordinary tiff files. I tried several. Can you point any sample image which you know that works? See attached screen capture of osgdem output issued before crash. Thank you. Mauricio Hofmam -- Read this topic online here: http://forum.openscenegraph.org/viewt

Re: [osg-users] terrain database popping...

2009-04-15 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
I think it would be good to fold libmini (or something equivalent) into OSG. That way you can use the databases built with VPB. I don't know much about VTP but using VPB databases are nice... -Shayne -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-bou

Re: [osg-users] Dinamic Line Drawing

2009-04-15 Thread Allen Saucier
Thanks Paul! I didn't understand that in the previous postings. Would you mind telling me how to "disable" the display listings for this geometry? ** PAUL wrote *** Your geometry is probably using display lists (on by default). setVertexArray will dirty and rebuild them. A more efficient solut

Re: [osg-users] Dinamic Line Drawing

2009-04-15 Thread Paul Martz
Your geometry is probably using display lists (on by default). setVertexArray will dirty and rebuild them. A more efficient solution would be to disable display lists. If you do that, you should be able to change individual elements of your array and not have to set the entire array. Paul Martz Sk

Re: [osg-users] Dinamic Line Drawing

2009-04-15 Thread Allen Saucier
boooch (and anyone who might have suggestions...), I really appreciate the code you posted but I can't get it to work as you did. The ONLY way I was able to get the "lines" drawn was to RE-set the vertexArray of my geometry. Like so: m_ogeomTrailGeometry->setVertexArray(vad); However, this

[osg-users] OverlayNode question

2009-04-15 Thread paul1492
Can somebody give me a explanation of how an OverlayNode is used? I need to render some geometry stuff (i.e. geopolitical, grid lines) on top of terrain elevation geometry and currently, I'm rendering to a texture and laying this texture on my terrain polygons. Should I be using an Overlay no

Re: [osg-users] Problem of points showing

2009-04-15 Thread Ismail Pazarbasi
Hi Martin, ISO 14882:2003 (the C++03) standard doesn't clearly specify how containers must swap its contents. It's clearly specified in C++0x drafts. Most implementations simply exchange internal block (pointers) and capacity, if allocators are the same. Otherwise, each element will be copied. re

Re: [osg-users] [vpb] Building a geocentric database with heigh data

2009-04-15 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Perhaps you can provide more info on what osgdem reports when it crashes. Try running gdalinfo on your source files to see what format they're using... -Shayne -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behal

[osg-users] osgTerrain

2009-04-15 Thread GuiYe
  Hello,robert!   Can you provide some examples about how to use the library of osgTerrain except osgTerrain! The library is so complex that I don't know how to use it to render terrain data! Can you provide some documents about the library! On the other hand , I hope that the example of osgTe

Re: [osg-users] Callbacks - Automatic assignment

2009-04-15 Thread Thrall, Bryan
Appolloni, Thomas wrote on Wednesday, April 15, 2009 1:59 PM: > I have a very dynamic and large data set that is made up of several > levels of PagedLODs so nodes are being continually loaded/unloaded > to/from memory. However, I would also like to apply callbacks to the > nodes upon loading so th

[osg-users] Callbacks - Automatic assignment

2009-04-15 Thread Appolloni, Thomas
I have a very dynamic and large data set that is made up of several levels of PagedLODs so nodes are being continually loaded/unloaded to/from memory. However, I would also like to apply callbacks to the nodes upon loading so that they might be dynamically modified based upon user preferences befor

Re: [osg-users] Problem of points showing

2009-04-15 Thread Lingyun Yu
no, 2G is avaible I mean On Wed, Apr 15, 2009 at 5:43 PM, Lingyun Yu wrote: > Thank you very much, Ismail and Martin, > > I have 3G memory installed. and 1.02G is avaible, I use windows vista. and > I didn't use file page file/swap. > > I will read carefully about both of you suggested. If you h

Re: [osg-users] any help would be appreciated -updatingagroupofcameras (UNCLASSIFIED)

2009-04-15 Thread Paul Martz
Hi Danny -- On the assumption that your code is supposed to change the text, I put a breakpoint at each call to setText in your app. I saw several calls initially, but once the app started rendering, none of the breakpoints were hit after that point. So, it seems J-S's advice is sound: The reason y

Re: [osg-users] GPU Feedback

2009-04-15 Thread Ed
Evidently I didn't look hard enough... I found what I was looking for: The NVPerfKit counters. http://developer.nvidia.com/object/nvperfkit_counters.html. Do the stats you refer to come from these counters or this type of feedback mechanism? i.e. low level counters inside the hardware and dr

Re: [osg-users] any help would be appreciated - updating a groupofcameras (UNCLASSIFIED)

2009-04-15 Thread Jean-Sébastien Guay
Hello Danny, thanks for the insight into OSG. i'm looking through the fixed example now. thanks for the help. My pleasure. J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.co

Re: [osg-users] any help would be appreciated - updating a groupofcameras (UNCLASSIFIED)

2009-04-15 Thread Konkle, Daniel T AMRDEC/Dynetics
Classification: UNCLASSIFIED Caveats: NONE > > Hello Danny, > > > i didn't send it twice because i wanted more help or faster help. > > i sent it twice because i was having problem with email and i didn't > think the message went out. > > i check the list server and it wasn't there. > > i was

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

2009-04-15 Thread Mick
Hi Robert, robertosfield wrote: > Hi All, > > I've now fixed the svn2cl usage in Cmake so that that ChangeLog generation > should now reflect either the branch or svn/trunk that a release is tagged > from.  I've also merged a change to OperationThread to enable multi-thread > usage with the u

Re: [osg-users] Problem of points showing

2009-04-15 Thread Lingyun Yu
Thank you very much, Ismail and Martin, I have 3G memory installed. and 1.02G is avaible, I use windows vista. and I didn't use file page file/swap. I will read carefully about both of you suggested. If you have some source can be read for that, please tell me. Yun On Wed, Apr 15, 2009 at 5:10

Re: [osg-users] any help would be appreciated - updating a groupofcameras (UNCLASSIFIED)

2009-04-15 Thread Jean-Sébastien Guay
Hello Danny, i didn't send it twice because i wanted more help or faster help. i sent it twice because i was having problem with email and i didn't think the message went out. i check the list server and it wasn't there. i was obviously mistaken and i apologize. OK, apology accepted, but loo

Re: [osg-users] Problem of points showing

2009-04-15 Thread Martin Beckett
vector typically doubles the size of memory it reserves when it needs more space. This is because every time it allocates new memory it must move the contents of the existing memory - it's slow to copy all the existing elements and so it makes sense to only increase as few times as possible (see

Re: [osg-users] terrain database popping...

2009-04-15 Thread Chris 'Xenon' Hanson
Raymond de Vries wrote: >> geosimulation app on, depending on your requirements. You can try to >> stick libmini into >> plain OSG as well, but VTP already has done the integration for you. > I think this is not entirely true. I believe they have integrated it > into VTP but not with OSG. There was

Re: [osg-users] GPU Feedback

2009-04-15 Thread Tomlinson, Gordon
Run osgviewer with you favorite models and cycle through the stats options ( the 's' key ) you will see some GPU stats Gordon Product Manager 3d __ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com ___

Re: [osg-users] any help would be appreciated - updatingagroupofcameras (UNCLASSIFIED)

2009-04-15 Thread Konkle, Daniel T AMRDEC/Dynetics
Classification: UNCLASSIFIED Caveats: NONE reproducer code without boost. > -Original Message- > From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- > boun...@lists.openscenegraph.org] On Behalf Of Paul Martz > Sent: Wednesday, April 15, 2009 9:52 AM > To: 'OpenSceneGrap

Re: [osg-users] any help would be appreciated - updating a groupofcameras (UNCLASSIFIED)

2009-04-15 Thread Konkle, Daniel T AMRDEC/Dynetics
Classification: UNCLASSIFIED Caveats: NONE i didn't send it twice because i wanted more help or faster help. i sent it twice because i was having problem with email and i didn't think the message went out. i check the list server and it wasn't there. i was obviously mistaken and i apologize

[osg-users] GPU Feedback

2009-04-15 Thread Ed
Does OSG provide in mechanism for retrieving any metrics from the GPU? Seems like I read a few months ago on the nvidia dev site that certain drivers allowed for the retrieval of GPU performance metrics, but I can't find that information now. Anyone know what I am referring to? Or if I am h

Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-15 Thread david bruyer
Bonjour Jean-Sébastien, Merci pour ta prise en compte. David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10255#10255 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.ope

Re: [osg-users] any help would be appreciated - updating agroupofcameras (UNCLASSIFIED)

2009-04-15 Thread Paul Martz
Hi Danny -- Can you create a reproducer code that doesn't use Boost? Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Konkle,

Re: [osg-users] any help would be appreciated - updating a groupofcameras (UNCLASSIFIED)

2009-04-15 Thread Jean-Sébastien Guay
Hello Danny, Sending your message twice will not get you help faster. Good etiquette would be to wait a little, and if you don't get any response after a few days then you can send a reminder, like "no one has any idea what I'm doing wrong?" or something like that. We all have day jobs and sen

Re: [osg-users] Problem of points showing

2009-04-15 Thread Lingyun Yu
Hi, Ismail, ok, jey, I really need to read it. thank you very much. On Wed, Apr 15, 2009 at 4:11 PM, Ismail Pazarbasi wrote: > Lingyun, > > I strongly recommend you to read your std::vector implementation's > source code and debug it to understand its behavior. > > Vector starts with 0 or room f

Re: [osg-users] The orthographic projection near/far plane

2009-04-15 Thread Kees van Kooten
Hi Thomas, it is indeed a matter of the actual argument names. As the function interface just duplicates glOrtho(), it probably won't confuse anyone but me. My personal pick would be nearDistance, farDistance or something similar. Regards, Kees Jolley, Thomas P wrote: Hi Kees, I would ex

Re: [osg-users] Problem of points showing

2009-04-15 Thread Ismail Pazarbasi
Hi Lingyun, How much memory is installed on your computer? How much of it is available and which operating system are you using? Do you use page file/swap? 2009/4/15 Lingyun Yu : > And yes, > > after I did > if (NumPart > 1000) > { >   try >   { >      vertices->reserve(NumPart); >   } >   catch

Re: [osg-users] Problem of points showing

2009-04-15 Thread Ismail Pazarbasi
Lingyun, I strongly recommend you to read your std::vector implementation's source code and debug it to understand its behavior. Vector starts with 0 or room for few elements. When you push_back, it checks for available space in its internal block. If requested size is greater than current capaci

Re: [osg-users] any help would be appreciated - updating a groupofcameras (UNCLASSIFIED)

2009-04-15 Thread Konkle, Daniel T AMRDEC/Dynetics
Classification: UNCLASSIFIED Caveats: NONE So from helpful comments, I believe I know what I'm doing wrong. I am creating a group and adding cameras to the group. in the cameras I have various drawables that I'd like to update with my program. i can't get the camera's children to update and ca

Re: [osg-users] Problem of points showing

2009-04-15 Thread Lingyun Yu
And yes, after I did if (NumPart > 1000) { try { vertices->reserve(NumPart); } catch (std::bad_alloc& e) { // handle exception here; log and return error from this function. // alternatively, you can rethrow here, and catch in caller. } } it jumps to catch part. 200

Re: [osg-users] Erratic intersections with long line segments

2009-04-15 Thread Tomlinson, Gordon
Thanks Marcin That's sort of what I was thinking that it had to be rounding, our tiles are localized so YX are relatively small but the Z could be any value range on the earth and seabed, 1million,-1million was over kill for the segment length. Be we will look to go the double route . Tha

Re: [osg-users] Problem of points showing

2009-04-15 Thread Lingyun Yu
Hi, Ismail, I don't understand how the "expanding" happen? I read all dataset into an array of P, then when it expands? and why? and what's old array? On Tue, Apr 14, 2009 at 2:27 PM, Ismail Pazarbasi wrote: > Hi Lingyun, > > std::bad_alloc is thrown when operator new cannot allocate memory, > w

Re: [osg-users] The orthographic projection near/far plane

2009-04-15 Thread Jolley, Thomas P
Hi Kees, I would expect (0,0,-zNear,1) to transform to (0,0,-1,1). zFar and zNear are positive in the direction you're looking and negative behind you. I didn't see anything in the osg code that defines zFar and zNear as being the actual Z values. Perhaps having the variables begin with "z" is

Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-15 Thread Jean-Sébastien Guay
Hello David, Code: /home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:90: erreur: 'ENOMEM' was not declared in this scope /home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:91: erreur: 'EILSEQ' was not declared in this

Re: [osg-users] Turning the main viewer camera on and off (when taking high-res camera screenshots).

2009-04-15 Thread Ismail Pazarbasi
Jesper, 2 days ago, I was doing the same thing, same problem, but with composite viewer. Here is what I did... I create my screenshot camera while I create my main CompositeViewer and its children Viewers. When I create this screenshot viewer, I set its nodemask to 0 - by default, it won't render

[osg-users] Turning the main viewer camera on and off (when taking high-res camera screenshots).

2009-04-15 Thread Jesper D. Thomsen
Hi all, I have an application where I use an osg::viewer for a single viewport of a model. The camera for the viewer is created like this: -- // Init a new Camera (Master for this View) camera = mViewer->getCamera(); // Assign Graphics Context to the Camera camera

[osg-users] The orthographic projection near/far plane

2009-04-15 Thread Kees van Kooten
Hi, I don't know whether this has been brought up before (I couldn't find any posts regarding this matter in the user forum), but when using the orthographic projection matrix's setProjectionMatrixAsOrtho(), the near/far plane z values supplied as arguments are not set as according to the Ope

[osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-15 Thread david bruyer
Hi, I'm trying to compile the last version of OSG-dev but I have a build error at the "make" : Code: /home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:90: erreur: 'ENOMEM' was not declared in this scope /home/player/FlightGear-dev/build/OpenSceneGraph/src

[osg-users] Osg bug when the program exits?

2009-04-15 Thread heishuijing_2000
hello everyone, Recently,i had a problem with Osg 2.8. I have write a very simple program to test a "bug" with osg 2.8 and VS2008.The test program is below: #include #include #include USE_GRAPHICSWINDOW(); int main(int argc, char* argv[]) { osg::ref_ptr

Re: [osg-users] HDR Skybox

2009-04-15 Thread josselin . petit
Hi Rob, I think you forgot to set the data in the textureCubeMap in float, that's why you see strange colors for values above 1.0. You can try this : osg::TextureCubeMap* cubemap = new osg::TextureCubeMap; cubemap->setInternalFormat(GL_RGBA16F_ARB); cubemap->setSourceType

Re: [osg-users] Erratic intersections with long line segments

2009-04-15 Thread Marcin Prus
Hi Gordon, we had similar problem here. We were standing exactly at the edge of 2 adjacent triangles in large terrain database and osgUtil::LineSegmentIntersector failed because of internal floating precision. Using doubles instead of floats inside osgUtil::LineSegmentIntersector solved our pr