Re: [osg-users] Problems with VPB and DTED data.

2009-02-26 Thread J.P. Delport
Hi, Sewell, Kenneth R Civ USAF AFMC AFRL/RYZW wrote: what OS are you using? What version of GDAL? On Linux I've not had a problem reading .dt? files. OpenSuSE Linux 11.0, VPB rev 953, OSG 2.8.0 and GDAL 1.6.0. I'm not sure how it's working for you if you're using the version of VPB that check

Re: [osg-users] How to use setSampleRatio on terrain generated with VPB?

2009-02-26 Thread J.P. Delport
Hi, have a look at the osgmultitexturecontrol example. Search for setSampleRatio. jp David Karlsson wrote: Hello, I'm having problem with my terrain generated using Virtual planet builder. Basically, what I want to do is to control the resolution/lod-scale of the rendered terrain. If I simp

Re: [osg-users] How to use setSampleRatio on terrain generated with VPB?

2009-02-26 Thread J.P. Delport
sg-users-boun...@lists.openscenegraph.org] För J.P. Delport Skickat: den 26 februari 2009 10:20 Till: OpenSceneGraph Users Ämne: Re: [osg-users] How to use setSampleRatio on terrain generated with VPB? Hi, have a look at the osgmultitexturecontrol example. Search for setSampleRatio. jp David Karls

Re: [osg-users] rendered image has overally lower pixel values

2009-02-26 Thread J.P. Delport
Hi, Jiri Filip wrote: Hi all, I have a following question. When I set texture values (manually or from loaded image) and render such a texture on object and grab the final image from screenbuffer its pixel values are lower. For example, when I set value 100 (from 0-255) I get 80. I have already

Re: [osg-users] Streaming of high resolution images

2009-02-26 Thread J.P. Delport
Hi, are you creating a new image every time using osgDB::readImageFile? If so, then you might be just plain running out of memory if you are not destroying old images. You can destroy the images manually or also search setUnRefImageDataAfterApply in texture classes. I'm not sure how one re

Re: [osg-users] Streaming of high resolution images

2009-02-26 Thread J.P. Delport
difficult. Not sure if the plugin supports single frame step either. jp Francesco Argese wrote: J.P. Delport wrote: Hi, are you creating a new image every time using osgDB::readImageFile? If so, then you might be just plain running out of memory if you are not destroying old images

Re: [osg-users] Texture corruption in VPB.

2009-02-27 Thread J.P. Delport
Hi, I think you might be running into the corner equalisation bug. Search osg-submissions for the thread vpb - fix for corner equalisation The fix is not yet merged in vpb. jp Ken Sewell wrote: VPB seems to be corrupting parts of its textures. I've attached the file I used to replicate th

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-27 Thread J.P. Delport
Hi, Alejandro Aguilar Sierra wrote: Hi, I just updated both ffmpeg and osg/trunk, compiled and instaled ffmpeg but osg can't compile because these errors: [ 98%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderVideo.o /home/ale/src/osg/trunk/src/osgPlugins/f

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-28 Thread J.P. Delport
Hi Robert, if you compile newer ffmpeg without GPL functions, it still has its own versions of the swscale functions implemented. You then just do not link to the (maybe faster) GPL swscale library. I've tested this on Debian and it worked for our app. I'll send some references and code late

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-28 Thread J.P. Delport
Hi, J.P. Delport wrote: Hi Robert, if you compile newer ffmpeg without GPL functions, it still has its own versions of the swscale functions implemented. You then just do not link to the (maybe faster) GPL swscale library. I've tested this on Debian and it worked for our app. I&#x

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-28 Thread J.P. Delport
Hi, I'll send some references and code later. See e.g. here: http://lists.mplayerhq.hu/pipermail/libav-user/2008-November/001618.html and http://lists.mplayerhq.hu/pipermail/libav-user/2008-June/000683.html e.g. img_convert vs swscale ---8<--- #if defined IPF_USE_SWSCALE int err = sws_scale

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-03-02 Thread J.P. Delport
Hi, Robert Osfield wrote: Hi J.P, I'm currently looking at introducing using of sws_scale, but don't find these methods in the ffmpeg I built. Looking at the links to the mailing list thread you provided I could quite work out whether these methods require the sws library to be built, or wheth

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-03-02 Thread J.P. Delport
Hi, Robert Osfield wrote: Hi J.P, On Mon, Mar 2, 2009 at 12:34 PM, J.P. Delport wrote: The one I compiled with LGPL only, has the sws functions in libavcodec.so. nm ./libavcodec/libavcodec.so | grep sws 0008c1b0 T sws_freeContext 0008d1f0 T sws_getCachedContext 0008d0f0 T sws_getContext

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-03-02 Thread J.P. Delport
Hi, Robert Osfield wrote: Hi J.P, On Mon, Mar 2, 2009 at 12:34 PM, J.P. Delport wrote: The one I compiled with LGPL only, has the sws functions in libavcodec.so. nm ./libavcodec/libavcodec.so | grep sws 0008c1b0 T sws_freeContext 0008d1f0 T sws_getCachedContext 0008d0f0 T sws_getContext

Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread J.P. Delport
Hi Robert, Robert Osfield wrote: I've have now added the ffmpeg to the include search paths so the set up code looks like: INCLUDE_DIRECTORIES( ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS} ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/libavformat ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/ffmpeg ${FFMPEG_LIBAVDEVIC

Re: [osg-users] [osgPlugins] sequence of images that I have to convert into a. mov

2009-03-04 Thread J.P. Delport
Hi, get mencoder and do something like: mencoder mf://*.png -ovc lavc -lavcopts vcodec=mjpeg:keyint=1 -mf fps=10 -o mymovie.avi google for "mencoder mf" should get you some more examples. jp salvatore wrote: hello, I am new the forum and I have a problem, I have a sequence of images that

Re: [osg-users] Float textures seem to be clamped in GLSL

2009-03-05 Thread J.P. Delport
Hi, Thrall, Bryan wrote: Brian R Hill wrote on Wednesday, March 04, 2009 5:41 PM: // disable clamping osg::ClampColor* clamp = new osg::ClampColor(); clamp->setClampVertexColor(GL_FALSE); clamp->setClampFragmentColor(GL_FALSE); clamp->setClampReadColor(GL_FALSE); scene->getOrCreateStateSet()->

Re: [osg-users] Can't write to ALPHA component with custom fragment shader in RTT pass

2009-03-09 Thread J.P. Delport
Hi, sorry, I didn't read through all your code, but have a look at the osgmultiplerendertargets example. I don't think data is written specifically to alpha there, but you can modify it to check. Run it with --image and --hdr. I think the --image prints out some values of the texture it reads

Re: [osg-users] Can't write to ALPHA component with custom fragment shader in RTT pass

2009-03-09 Thread J.P. Delport
Hi, Jean-Sébastien Guay wrote: Hi Jim, Not necessarily. If the object-that-is-supposed-to-be-transparent still has depth writing enabled, it will overwrite more distant objects. Then there's which blend functions are enabled which can alter the output of the fragment shader. OK, but I'm tal

Re: [osg-users] Quaternion problem

2009-03-17 Thread J.P. Delport
Hi, I also vaguely remember someone having a question about the getRotate. Go check in the source if it returns an angle and vector or if you actually pass _in_ a vector/axis. jp Steven Saunderson wrote: Hi Antonin, I may be getting way out of my depth here but when I saw your problem this

Re: [osg-users] Quaternion problem

2009-03-17 Thread J.P. Delport
Hi, yes, try to store your angle manually. We have something similar, an object has yaw, pitch & roll, but we modify it depending on where on the globe it is: lori = quat made from object r,p,y // Make offset quat from position on globe qoff = mScenario->getOrientationOffsetFromLLH(i_dLat, i

Re: [osg-users] Setting alpha channel in Frag Shader does not work.

2009-03-18 Thread J.P. Delport
Hi, I haven't read your code, but I'm sure alpha channel works just fine. Attached is a modified osgmultiplerendertargets example. Run it with osgmultiplerendertargets --image which should print a=128 or with osgmultiplerendertargets --hdr --image which should print a=-1.1 You can adjust the v

Re: [osg-users] Setting alpha channel in Frag Shader does not work.

2009-03-18 Thread J.P. Delport
the file J.P. Delport wrote: Hi, I haven't read your code, but I'm sure alpha channel works just fine. Attached is a modified osgmultiplerendertargets example. Run it with osgmultiplerendertargets --image which should print a=128 or with osgmultiplerendertargets --hdr --image wh

Re: [osg-users] Setting alpha channel in Frag Shader does not work.

2009-03-18 Thread J.P. Delport
Hi, sorry, I can't remember when the MRT support was added, you'll have to search the archives. You'll have to modify the example to not use MRT to see if it can work with gl_FragColor and a single color buffer attached. jp Steven Powers wrote: Thanks JP but I dont see any attached code.

Re: [osg-users] Multithreadingcrash due toosgDb::Registry::instance()

2009-03-19 Thread J.P. Delport
Hi all, for those interested in instruction order issues, these videos might be interesting (search google video): * Herb Sutter - Machine Architecture: Things Your Programming Language Never Told You * IA Memory Ordering There is quite a bit of work going into the next C++ standard to add

Re: [osg-users] [vpb] osgdem issue

2009-03-23 Thread J.P. Delport
Hi, your VM will have to support OpenGL then. jp labrosse wrote: ok, but the problem is : i dont have root rights to install VPB on the host machine. I would like any attempt on the virtual machine before to use the host machine. -- Read this topic online here: http://forum.

Re: [osg-users] [vpb] osgdem issue

2009-03-23 Thread J.P. Delport
Are you running the apps that work "on" the VM or through X forwarding with ssh? jp labrosse wrote: I think the OpenGL is supported by my VM, as the osg examples run correctly. But how do I do to test OpenGL ? Thanks you for your help, I try to install OSG and VPB on my host machine. --

Re: [osg-users] [Fwd: Mesa and gldirect]

2009-03-24 Thread J.P. Delport
Hi, Jean-Sébastien Guay wrote: Hi Jan, Honestly, I think this will be counterproductive. It will only give companies an excuse to neglect OpenGL support further or to drop it completely ("You can use the emulation!"). The latter would be disastrous for all non-Microsoft platforms. Since the

[osg-users] License/Legal spelling/grammar

2009-03-24 Thread J.P. Delport
Hi, I've had to read through the OSG license today and would like to contribute some spelling and grammar fixes. It is in no way intented to change the terms of the license, so please check. First up is the page at: http://www.openscenegraph.org/projects/osg/wiki/Legal I selected the text al

Re: [osg-users] [Fwd: Mesa and gldirect]

2009-03-24 Thread J.P. Delport
Hi, Cory Riddell wrote: J.P. Delport wrote: What always bothers me is the whole multiple window, multiple context thing. Correct me if I'm wrong, but I've always thought DirectX caters more for the single fullscreen 3D window case (games?). Is this not why CAD apps favour OpenGL? I

Re: [osg-users] License/Legal spelling/grammar

2009-03-24 Thread J.P. Delport
Hi, Melchior FRANZ wrote: * J.P. Delport -- Tuesday 24 March 2009: I've had to read through the OSG license today and would like to contribute some spelling and grammar fixes. You missed tow "licence". From LICENSE_new.txt: | of this licence document, but changing it

Re: [osg-users] License/Legal spelling/grammar

2009-03-24 Thread J.P. Delport
icen{c,s}e was not the main point of the thread though, the other errors concern me more. rgds jp Robert Osfield wrote: Hi Guys, Licence is the British spelling as *is* correct. Robert. On Tue, Mar 24, 2009 at 2:29 PM, J.P. Delport <mailto:jpdelp...@csir.co.za>> wrote: Hi,

Re: [osg-users] OpenGL 3.1 at GDC

2009-03-25 Thread J.P. Delport
Hi, Robert Osfield wrote: Hi Hannes, On Tue, Mar 24, 2009 at 11:33 PM, hanne...@gmx.at mailto:hanne...@gmx.at>> wrote: opengl is 2 years behind direct3d and direct3d is better. and now there is d3d10 and d3d11 will even be better and d3d9 already had inst

Re: [osg-users] PositionAttitudeTransform - How do I make a rotation

2009-04-02 Thread J.P. Delport
Hi, have a look at the quaternion/Matrix member functions, e.g. makeRotate. Do not try to set the quat internal values directly. E.g. you can make a quat/Matrix from roll, pitch and yaw with three angles and 3 axes. go here: http://news.gmane.org/gmane.comp.graphics.openscenegraph.user and

Re: [osg-users] About UV coordinates interpolation in a polygon

2009-04-02 Thread J.P. Delport
Hi Max, the only way to get the picture better would be to (manually) create geometry with many more vertices to which you can attach relevant texture coords. Other option would be shader lookup table to go from input image to output image coords. jp Max wrote: Hi all, I've a question ab

Re: [osg-users] [vpb] osgdem with mesa drivers?

2009-04-02 Thread J.P. Delport
Hi, Lucasw wrote: I've seen a few other threads about osgdem with non-accelerated graphics, I've tried it myself and am curious about the details of why it won't work. I have ubuntu 8.10 running in virtualbox, have libgl1-mesa-glx installed (which has mesa '7.2-1ubuntu2'), and osg 2.8.0 builds

Re: [osg-users] vpbmaster vs osgdem

2009-04-09 Thread J.P. Delport
Hi, can you also report what cpp flags were used in your build? Search for: CMAKE_CXX_FLAGS_RELEASE in CMakeCache.txt. I assume that the script made the release build. Also what does g++ -v give? I remember a problem on Debian once where -O3 caused osgdem to segfault. -O2 worked fine. jp

[osg-users] Quat * Vec3 proposals - request for comments/help

2009-04-21 Thread J.P. Delport
Hi all, it's been known for a while [1] that there are inconsistencies with the way OSG handles Quat * Vec3. In short: Quat * Vec3 is written in code as a post-multiply, but the result of the operation is as if a pre-multiply was performed. The attached test app also shows the problem (more on

Re: [osg-users] Quat * Vec3 proposals - request for comments/help

2009-04-29 Thread J.P. Delport
Anyone? It does not seem that many people are affected by this issue, so I think it's safe to add the pre-multiply quat functions. I'll create a submission if there are no comments. rgds jp J.P. Delport wrote: Hi all, it's been known for a while [1] that there are inconsist

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

Re: [osg-users] Support becoming less and less personal

2009-05-06 Thread J.P. Delport
Hi, Robert Osfield wrote: HI Art, On Wed, May 6, 2009 at 10:35 AM, Art Tevs wrote: Couple of months ago as you told about cryptic names of the forum users, we have introduced rules in our forum. I have also then informed users, that they have to change there name first. Users has changed the

Re: [osg-users] Support becoming less and less personal

2009-05-06 Thread J.P. Delport
Hi, Art Tevs wrote: Hi Robert, robertosfield wrote: In the real world almost all of us will have a family name and a personal name and typically the personal name is used in conversation. Different cultures or even different companies will have different conventions on which names are put fi

Re: [osg-users] Thoughts on a non Collada DOM based Collada plugin

2009-05-06 Thread J.P. Delport
Hi, Jean-Sébastien Guay wrote: Hi Robert, I'm not familiar with the Collada format itself, rather I have always just been a maintainer of the OSG that relies on others for development and support of the Collada plugin, but I do wonder just how much value we get from using the DOM rather than r

Re: [osg-users] Thoughts on a non Collada DOM based Collada plugin

2009-05-06 Thread J.P. Delport
Hi Robert, Robert Osfield wrote: Hi JP, On Wed, May 6, 2009 at 2:44 PM, J.P. Delport wrote: Can a known working version of the DOM not be included in the OSG code tree or as an external reference to a copy on the OSG server? Then the matching between plugin code and DOM stops being a

Re: [osg-users] switch between two camera

2009-05-08 Thread J.P. Delport
Hi, Allen Saucier wrote: Hi all, After reading this thread, i think i'm in the right place. Please let me know if I'm not w/my question. I've got one scene, two graphics windows each with a different camera and I want to be able to manipulate the camera in each window separately. Right

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

2009-05-11 Thread J.P. Delport
Hi, search for drawelements in the osgthirdpersonview example. jp Christian Sam wrote: Hi, i have a similar situation like the threadstarter longa...@gmail.com. i think i understand what you are recommending, but i dont know how to apply duplicate vertices (i also want to use different norm

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

2009-05-11 Thread J.P. Delport
Hi Chiristian, Christian Sam wrote: Hi, thank you for the reply. to give you some more information of my situation: i want to visualize certain roof types. i generate the geometry information (vertices, tex-coords, normals) programmatically in my application. i'm using triangle_strips with draw

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

2009-05-12 Thread J.P. Delport
Hi, Christian Sam wrote: Hi, okay, now i think i understand you. first step: construct the roof in conjunction with a normalarray that defines normals for as much as complete faces as possible. for the remaining ones, construct further primitives, which overlap the faces where the right norm

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

2009-05-12 Thread J.P. Delport
Hi, Christian Sam wrote: Hi J.P. Thank you for taking the time in helping me. i have two questions regarding your recommendations. I think most people would nowadays advise to just specify normals per vertex and not try to use normals per face (slow path). - does this mean: if a normals-i

Re: [osg-users] how to get a city's image data?

2009-05-12 Thread J.P. Delport
See also http://www.vterrain.org/Imagery/sources.html forest wrote: hi all I want to use vpb to build a terrain and I have got the digital elevation data from ftp://ftp.glcf.umiacs.umd.edu/glcf/SRTM/Degree_Tiles/ Now I want to find some corresponding texture image data for free, where

Re: [osg-users] Geodes VS Shaders

2009-05-12 Thread J.P. Delport
Hi, don't be discouraged to ask again. Just try to rephrase your question to help people understand exactly what you mean/want. If the examples don't do exactly what you want, describe how your situation is different. jp Maxime BOUCHER wrote: Well, thanks anyway and I apologize if I bothere

Re: [osg-users] Dinamic Line Drawing

2009-05-13 Thread J.P. Delport
Hi Sergey, what you are trying to do is certainly possible, but it is hard to follow and correct code snippets. I suggest you make a very simple example that people can compile. Then post the zipped code to the forum/mailing list and let someone fix it. jp Sergey Bocharov wrote: All my ex

Re: [osg-users] OSGViewer Camera Coordinate System, elevation

2009-05-14 Thread J.P. Delport
Hi, did you build your DB with --geocentric? jp Chris 'Xenon' Hanson wrote: I've noticed that when using VPB terrain, the coordinates of the OSGViewer Camera as determined by Camera::getViewMatrixAsLookAt(eye,dir,up) appear to be in the same coordinate system as the terrain. For example, my

Re: [osg-users] light, normals

2009-05-15 Thread J.P. Delport
Hi, Jean-Sébastien Guay wrote: Hi Christian, my geometry has 9 vertices - i thought if i use a drawElement index with index swaps to revist a vertex, this would give me the opportunity to use more than one normal per vertex (there are reasons why i need this ;-). i now think the truth is, on

Re: [osg-users] VPB stuff

2009-05-15 Thread J.P. Delport
Hi, Mao wrote: Hi! Recently, our project is planning to migrate from mini to VPB. However, we encounter with several questions. 1. In the example of osgDEM, I infer that osgDEM processes tiff format only. But tiff uses 32-bit offset which limits its size to 4G bytes. Most of our dat

Re: [osg-users] Remote execution and OSG

2009-05-15 Thread J.P. Delport
Hi, paul1...@yahoo.com wrote: Already tried "xhost +".. No help.. What is so special about "osgkeyboardmouse, osgcompositeviewer, osgsidebyside, osgtexture3D, osgslice, and osgwindows" that would cause them not to work but other do? "osgviewer --window" seems to work fine.. Does this have

Re: [osg-users] VPB stuff

2009-05-15 Thread J.P. Delport
RB extension with my ATI otherwise it crashes. Pierre Le vendredi 15 mai 2009 à 09:08 +0200, J.P. Delport a écrit : Hi, Mao wrote: Hi! Recently, our project is planning to migrate from mini to VPB. However, we encounter with several questions. 1. In the example of osgDEM, I infer t

Re: [osg-users] light, normals

2009-05-15 Thread J.P. Delport
Hi J-S, Jean-Sébastien Guay wrote: Hi JP, and make two primitives. By two primitives, do you mean two osg::Geometry objects sharing the same vertex array? (as opposed to two PrimitiveSets in the same osg::Geometry, which is what he was trying to do...) Yes, that's true and clever, I hadn'

Re: [osg-users] OSGViewer Camera Coordinate System, elevation

2009-05-18 Thread J.P. Delport
Hi Chris, Chris 'Xenon' Hanson wrote: J.P. Delport wrote: Hi, did you build your DB with --geocentric? I didn't. I hadn't explored that option. Is that necessary, and can you comment on exactly what that does? I figured that would put my data in geocentric coordinates,

Re: [osg-users] OSG_OpenCV Help

2009-05-18 Thread J.P. Delport
Hi, instead of the magic "3" in your setImage, try "GL_RGB". E.g. we have some code like this: ->setImage(ImageFormat_.getWidth(), ImageFormat_.getHeight(), 1, GL_RGB, GL_RGB, GL_UNSIGNED_BYTE, &(im->Data_[0]), osg::Image::NO_DELETE) jp Ugras Erdogan wrote: Dear All, I am using openCV and O

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

2009-05-19 Thread J.P. Delport
Hi, compiled fine (libs+examples) on Debian unstable: cmake version 2.6-patch 4 gcc version 4.3.3 (Debian 4.3.3-10) jp Robert Osfield wrote: Hi All, Any results from testing of OSG-2.8.1-rc5 yet? I'm ready to tag 2.8.1, so am now just waiting for feedback from testing. Thanks, Robert. __

Re: [osg-users] Understanding OSG : plugins runtime loading question

2009-05-19 Thread J.P. Delport
Hi Vincent, are you adding the export thingymajiggies to the singleton in your lib for Windows? Getting singletons to work across DLL's in Windows is a pain. We've had the same issues on Windows where a singleton was not exactly a singleton. We were using the Loki::SingletonHolder and got it

Re: [osg-users] Bad OSG geometry

2009-05-25 Thread J.P. Delport
Hi, I've had issues like you describe with the osg-submissions list recently. Also did not look like filtering on my side and it seemed to fix itself again. Another suggestion was to unsub/resub to see if it fixes the problem. jp Cory Riddell wrote: Did anybody else on the mailing list see

Re: [osg-users] problem with blending when using floating point FBO

2009-05-25 Thread J.P. Delport
Hi, are you sure your hardware supports 32-bit blending? What card/drivers are you using? We've tried identifying the effective resolution of blending on various cards. I don't have the results handy, will try to get them. jp jonathan.richa...@gmail.com wrote: Hi, I’m using the osgViewer :

Re: [osg-users] problem with blending when using floating point FBO

2009-05-25 Thread J.P. Delport
card is a Nvidia geforce 8800 gtx: http://www.nvidia.com/page/8800_tech_specs.html It say "32-bit per component floating point texture filtering and blending". Jonathan On 2009-05-25 10:26am, "J.P. Delport" wrote: > Hi, > > > > are you sure your

Re: [osg-users] problem with blending when using floating point FBO

2009-05-26 Thread J.P. Delport
T); } I hope it can help you to help me ;) I could provide you my testing project is you want. Thank you Jonathan On 2009-05-25 10:59am, "J.P. Delport" wrote: > Hi, > > > > posting some code would prob be best. How are you attaching the colours to your "face

Re: [osg-users] problem with blending when using floating point FBO

2009-05-26 Thread J.P. Delport
Hi, Jonathan Richard wrote: > > |// Tell to sort the mesh before displaying it > |AFAIK OSG does not sort at the triangle level, there is an option to > make the sorting happen at a primitive level, but I think the default is > sorting on bounding sphere. > > I take this line (and the comment)

[osg-users] OpenThreads::Condition and spurious wakeups

2009-05-26 Thread J.P. Delport
Hi all, I'm using OpenThreads in a cross-platform application and wanted to use the Condition implementation, specifically the wait(timeout) version. However, the pthread docs suggest that pthread_cond_timedwait (that is used by OT) can return without explicitly being signalled (so-called spu

Re: [osg-users] OpenThreads::Condition and spurious wakeups

2009-05-27 Thread J.P. Delport
o use the timed wait is to make sure the users of my app don't deadlock it waiting for a condition. If there is some other way to handle it without the timed wait, I'm interested. rgds jp > and restart the wait if necessary. Cory J.P. Delport wrote: Hi all, I'm

Re: [osg-users] OpenThreads::Condition and spurious wakeups

2009-05-27 Thread J.P. Delport
Hi, J.P. Delport wrote: Hi, Cory Riddell wrote: I'm using boost::threads, but not any of the timed wait stuff. I run my viewer in its own thread. It is my understanding that for a timed wait, you do need to manually track how much time has actually elapsed Only if the time specified

Re: [osg-users] transparency problem

2009-05-27 Thread J.P. Delport
Hi Robert, sorry to chip in... I've been wondering about this also recently. Robert Osfield wrote: Hi Su Hu, You need to place transparent objects in the depth sorted bin, normally loaders will do this for you. There is a chance that these objects are already in the transparent bin but you hav

Re: [osg-users] FBOs, MRTs, postprocessing, multi-pass, GLSL-Shader

2009-05-28 Thread J.P. Delport
Hi, have a look at the osgstereomatch example, there multipass and MRT are used together. Also have a look at osgPPU and osgCompute which are external to OSG. For simple flip-flop FBO use you can look at osggameoflife jp Daniel Wirz wrote: Hi, I'm a newbie on OpenSceneGraph. I have writte

Re: [osg-users] GDAL plugin moved from VirtualPlanetBuilder back into core OpenSceneGraph

2007-08-07 Thread J.P. Delport
Hi Robert, on my Debian system gdal.h lives in: /usr/include/gdal/ maybe you can add this to the paths that FindGDAL.cmake looks in. regards jp Robert Osfield wrote: > Hi All, > > I'm currently cleaning up VirtualPlanetBuilder for its 1.9.2 release > and have decided that the GDAL plugin back

Re: [osg-users] GDAL plugin moved from VirtualPlanetBuilder back into core OpenSceneGraph

2007-08-12 Thread J.P. Delport
Hi Robert, $ dpkg -S gdal.h libgdal1-dev: /usr/include/gdal/gdal.h $ ls /usr/include/gdal.h ls: /usr/include/gdal.h: No such file or directory This is on Debian Sid (unstable). The version of libgdal1-dev is 1.4.1-6+b3. regards jp Robert Osfield wrote: > Hi J.P, > > On 8/7/07, J.P

Re: [osg-users] getRotate() on non-orthogonal matrix

2007-08-12 Thread J.P. Delport
Hi, as far as I know the getRotate function assumes an orthogonal matrix (at least when returning a quat). You can find a few threads of discussion regarding the getRotate function if you search the lists. Also have a look at the workings and code of: osgunittests quat there the getRotate func

Re: [osg-users] Generating a Video

2007-08-12 Thread J.P. Delport
Hi, on Linux you might want to have a look at an app called "instanbul". cheers jp Sashidhar Guntury wrote: > Hi! > >I have written a peice of code and now I want to make a video > of the rendering. How do I do it? I tried taking screenshots and > combining them all to make a vide

Re: [osg-users] GDAL plugin moved from VirtualPlanetBuilder backinto core OpenSceneGraph

2007-08-16 Thread J.P. Delport
Hi, Norman Vine wrote: > GDAL provides 'gdal-config' > > Is there no way to use this with cmake ? this can definitely be used. I'm not sure about how to do it though. I would assume cmake has some way to call "gdal-config" on various platforms and then we could stick the directory it comes u

[osg-users] Cullvisitor question

2007-08-17 Thread J.P. Delport
Hi Robert/others, while stepping through some of my code in a debugger I stumbled across the following in include/osgUtil/CullVisitor. (It can easily be found by searching for "zn;") In both functions clampProjectionMatrix for Matrixf/d: if (result) { znear = zn; zfar = zn; return

Re: [osg-users] osg::Matrix.getRotate() problems

2007-08-27 Thread J.P. Delport
Hi all, David Spilling wrote: > Robert, > > Here we are again! > > Firstly, Farshid is right, even up to OSG 2.1.7. It looks like the "more > elegant" code I submitted way back in the thread "numerical precision > error" of 26/07/06 does break for this case. In particular : > > -1 0 0 > 0 0 -

Re: [osg-users] Line disappearing

2007-09-06 Thread J.P. Delport
Hi, I had a similar problem some time ago, a quad strip would disappear if the initial point was outside the camera FOV. Try ->dirtyBound() on the geometry node you add data to. jp [EMAIL PROTECTED] wrote: > > > I have set up a earth globe view where I have a trajectory line that > "trails

Re: [osg-users] Multiple render targets

2007-09-14 Thread J.P. Delport
Hi, as far as I know its not supported in current version of OSG, there is no call to glDrawBuffers (as opposed to glDrawBuffer) which is needed for MRT. I have a version of RenderStage.cpp that I modified to allow MRT for one of our projects, but its a hack and I still need to properly organi

[osg-users] Large dynamic high-res terrain overlays?

2007-09-18 Thread J.P. Delport
Hi, I am successfully using 2xoverlaynodes for overlays onto a large terrain database. The overlays are dynamic (i.e. can change per frame). The texture coord generation of overlaynode/texgennode are essential, as it makes the overlay follow the terrain. The users of the app are creating large

Re: [osg-users] Large dynamic high-res terrain overlays?

2007-09-18 Thread J.P. Delport
up and start implementating > some advanced texture paging techniques. > > Robert. > > On 9/18/07, J.P. Delport <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I am successfully using 2xoverlaynodes for overlays onto a large terrain >> database. The overlays are dynamic (i.

Re: [osg-users] Large dynamic high-res terrain overlays?

2007-09-18 Thread J.P. Delport
ode of OverlayNode? > > On 9/18/07, J.P. Delport <[EMAIL PROTECTED]> wrote: >> Hi, >> >> the source high-res imagery of the terrain is about 4degx4deg and blue >> marble data for the rest of the globe. The things they want to overlay >> are simple lines and f

Re: [osg-users] using Mesa instead of opengl

2007-09-24 Thread J.P. Delport
Hi, we have used it with OSMesa to get float colour channels. jp Jonathan Richard wrote: > Hi, did someone try to run open scene graph with Mesa instead of > opengl? Is it working? Or is it possible to use 16 bits color channel > with opengl instead of 8 bits color channel? Thanks > > Jo >

Re: [osg-users] using Mesa instead of opengl

2007-09-25 Thread J.P. Delport
> color channel? If not do you know another toolkit that can be use > instead of glut? Thanks > > Jo > > On 9/25/07, J.P. Delport <[EMAIL PROTECTED]> wrote: >> Hi, >> >> we have used it with OSMesa to get float colour channels. >> >> jp >>

Re: [osg-users] Trackball and view question

2007-09-27 Thread J.P. Delport
Hi, I am attaching an old email below that I think addressed some of the same issues you are having. Also attached is a code snippet of a modified manipulator base class I use. regards jp Code: ---8<-- /** get by distance, rotation, center. */ virtual void getDR

Re: [osg-users] Large dynamic high-res terrain overlays?

2007-09-28 Thread J.P. Delport
Thanks, glad I asked :) regards jp Robert Osfield wrote: > On 9/18/07, J.P. Delport <[EMAIL PROTECTED]> wrote: >> Hi, >> >> no, I have not looked at the new modes. The app was ported from OSG pre >> 1.0, so it just uses the default in the newest OSG. >> &

Re: [osg-users] Subversion Installation Step-Step manual

2007-10-02 Thread J.P. Delport
Hi, we use ssh tunnels with svnserve for a private repo. It is OK to manage if you don't have too many users. The only port open on the server is then ssh (22). You can use keypairs for auth then. Users must have something to set up the tunnel, ssh (linux), putty (win), ??? mac. jp Adrian Egl

Re: [osg-users] Subversion Installation Step-Step manual

2007-10-03 Thread J.P. Delport
Hi, as far as I know any client can work with this. You point the client at your local end of the tunnel. e.g. svn co svn://localhost/repo jp Adrian Egli wrote: > And how can i check out it? tigris.subversion client for explorer works > with this settings? > > /adegli > &

Re: [osg-users] Rendering to a texture only

2007-10-15 Thread J.P. Delport
Hi, wrt question 1: you could look at Mesa (www.mesa3d.org) and use their OSMesa (off-screen) library. It is a software-only (obviously slow compared to hardware) OpenGL 2.1 implementation and works well with OSG. This will allow you to render to main memory in the PC. jp Williams Steven-ASW0

Re: [osg-users] ConvertToInventor.cpp compilation error

2007-10-18 Thread J.P. Delport
Hi, maybe try #include in the ConvertToInventor.cpp file jp rck jobs wrote: > Hello, > > I'm installing OpenSceneGraph-2.2 under my Debian Sarge (Pentium III - > i386) server and I'm having a compilation error on file > ConvertToInventor.cpp . > > I was reading the mailing list and i don'

Re: [osg-users] Problem with osg::Fog

2007-11-13 Thread J.P. Delport
Hi, below is 'n snippet that I use that works. Only diff seems the call to gstate->setMode(GL_FOG, osg::StateAttribute::ON); cheers jp ---8<--- // Fog //float fog_density = 9.85e-5; float fog_density = g_config->getDouble("fog", "density", 0.0); osg::Vec4d fog_colour = g_

Re: [osg-users] That why I think the osg math is really wrong

2007-11-13 Thread J.P. Delport
Hi, I'm using v*q a lot, I don't mind the order changing, as long as the compiler would make me fix them all. Can the intent of v*q or q*v be anything other than rotating a vector? If this is the only meaning, I don't see why we can't have both? regards jp Robert Osfield wrote: > On Nov 13, 2

Re: [osg-users] Problem with dll

2007-11-28 Thread J.P. Delport
Hi, where the guide talks about .lib it is about when you want to compile your own programs that use the OSG. I don't use Windows, but it sounds like you just need the .dll files to be either in the PATH like Robert said, or you could just make a directory where you put all the .exe and .dll f

Re: [osg-users] Dummy Camera for taking a Screenshot

2007-11-29 Thread J.P. Delport
Hi, try this: in groups.google.com search for this: osg-users ralph kern screenshot in google.com osg-users "Taking a screenshot with" cheers jp maruti borker wrote: > Can anbody point me to the older mails atleast :( > > Waiting in anticipation > > On Nov 28, 2007 3:06 PM, maruti borker <[E

Re: [osg-users] osgText quality

2007-12-06 Thread J.P. Delport
Hi, I've also had cases with characters clipped, sometimes not even on the same edge. There has been a discussion about this quite some time ago, maybe you can find it if you search for my name, and I remember some other people also proposed solutions. What worked for me was to set the resolut

Re: [osg-users] Using osgSim::OverlayNode

2007-12-06 Thread J.P. Delport
Hi all, just to add that I also get clipping with the new modes from certain viewing angles. Sometimes the clipped edges rotate as the view moves and some parts jump in and out (dunno if this makes sense). I've thought about trying to debug it, but I have no idea where to start, the shaders lo

Re: [osg-users] Using osgSim::OverlayNode

2007-12-07 Thread J.P. Delport
Hi, Robert Osfield wrote: > The view dependent overlay codes are similar in concept to view > dependent shadow map algorithms like perspective shadow maps, the > papers of this topic will give you an overview but won't be enough to > guide you through the details. One the OSG side it has to conte

Re: [osg-users] Looking towards 2.4, and what might go into it.

2007-12-10 Thread J.P. Delport
Hi, could we get support for multiple render targets (MRT) integrated into 2.4? I know some people are using hacky patches for this. Some patches have been submitted, but they have to be reworked. I can help with this if needed. regards jp Robert Osfield wrote: > Hi All, > > After a two mont

<    2   3   4   5   6   7   8   9   10   >