[osg-users] [forum] OSG Users in Korea

2009-08-07 Thread Hansoo Kim
Hi, all I'm looking for OSG users in South Korea. Maybe we can help each other or share know-how. Please post reply or send me email :) ... Thank you! Cheers, Hansoo VR Lab, Konkuk University, South Korea -- Read this topic online here:

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-07 Thread Ulrich Hertlein
On 6/08/09 8:19 PM, Pau Moreno wrote: No I'm not having errors of compiling shaders, and executing it. Returning to the topic of this post: If I comment the MultitexCoord line, nothing is showing in the viewer, but that's logic. The problem if is it uncommented ( I need theis function so I

Re: [osg-users] osg::Image with signed int

2009-08-07 Thread J.P. Delport
Hi Pau, Pau Moreno wrote: Hi, I've create an int matrix[16][256] and I need to pass it to the GPU. So what I've done is create a osg::Image, but when I have to pass the data to setImage, I have to do a cast to my data, because it needs an unsigned char *. The unsigned char * is just to get

Re: [osg-users] Vec2ul and isomorphic variants?

2009-08-07 Thread J.P. Delport
Hi, Chris 'Xenon' Hanson wrote: I'm also looking for a STL expert who knows for_each, mem_fun and bin1st better than I to tell me what I'm doing wrong on a piece of GDAL code related to VPB. But that's a different issue. Anyone who wants to point out my mistake, contact me privately and I'll

Re: [osg-users] Hello from New Orleans

2009-08-07 Thread Wang Rui
Hi, I'm in Seattle now, and will be back to China in 1-2 days. Really glad to meet many friends at the BOF. Hope to see you again next year, although it's diffcult to apply for visa here. :) Wang Rui 2009/8/6 Paul MARTZ pma...@skew-matrix.com OSG BOF was a success. Attendance was light, 65

Re: [osg-users] Problems compiling OSG 2.8.2 on Solaris 10

2009-08-07 Thread Robert Osfield
Hi Carol, Solaris is not a platform that many users develop on these days so it doesn't get the exposure and testing that the major platforms undergo - we have to rely on members of the community to help support the platforms they use as no single group/person has access to all the platform

Re: [osg-users] Vec2ul and isomorphic variants?

2009-08-07 Thread Robert Osfield
Hi Chris, On Fri, Aug 7, 2009 at 3:07 AM, Chris 'Xenon' Hansonxe...@alphapixel.com wrote:  So, two questions:  1. Robert, are you even in support of refactoring the existing Vec* classes into manifestations of a template if it can be done transparently and cleanly with regard to existing

Re: [osg-users] Z-buffer transparency / Alpha

2009-08-07 Thread Ulrich Hertlein
Hi Maxime, On 6/08/09 4:41 PM, Maxime BOUCHER wrote: I know Z-buffer isn't very in fond of transparency, and actually, when I capture it on a model having transparent faces it stores strange things (a kind of luminance image of some textures on parts corresponding to these transparents

Re: [osg-users] Z-buffer transparency / Alpha

2009-08-07 Thread Maxime BOUCHER
Hi Ulrich, Ulrich Hertlein wrote: Hi Maxime, I'm extremely irritated by what you write and maybe I'm not the only one. I am very sorry, please apologize. Maybe could you tell me why so that I won't do it again. Ulrich Hertlein wrote: Why do you suspect that the Z-buffer is influenced

Re: [osg-users] Perspective / Orthogonal projection matrix with CameraManipulator

2009-08-07 Thread Andrew Burnett-Thompson
Hi Robert, Thanks for your helpful reply. I've sorted this problem by taking the following steps 1. Removal of camera manipulators from the scene (I had a custom manipulator that allowed you to set target/position, but event handling was done elsewhere in my external application) 2. Creation of

Re: [osg-users] Perspective / Orthogonal projection matrix with CameraManipulator

2009-08-07 Thread Andrew Burnett-Thompson
Oh and for reference (forgot to add) the method to update the camera is as follows / void CCameraView::UpdateCameraMatrices(osg::Camera * camera) { // Set the projection matrix on the camera if (this-m_bIsOrthogonal) {

[osg-users] [osgPPU] Running the processor between pre-render and main render

2009-08-07 Thread Miika Aittala
Hi, I'm implementing a more advanced SSAO algorithm using osgPPU. I need to use the results more carefully than just multiplying them on top, so the resulting texture is used as an input to a regular surface fragment shader during the main rendering pass. Therefore the processing needs to

[osg-users] [osgPlugins] Unable to load plugin for jpeg file....

2009-08-07 Thread manish Choudhary
Hi, I'm using OSG-2.8.0 version.. on Visual studio-2008. I have a problem with reading .jpg files with OpenSceneGraph (warning: Could not find plugin to read objects from file X.jpg). I see a source file in osgPlugin/jpeg but don't know how to use it ... Thank you! Cheers, manish

Re: [osg-users] [osgPPU] Running the processor between pre-render and main render

2009-08-07 Thread Art Tevs
Hi Mika, Is it possible that you provide me with a simple test case implementation to test it. Because then maybe I would be able to find an answer how to correct it. However, this causes another problem which I don't even begin to understand (which may or may not be related to osgPPU).

Re: [osg-users] Computing depth buffer in osgVolume

2009-08-07 Thread Yvon Halbwachs
Hi Robert, Thanks for your tips, I managed to compute correctly the depth value in the fragment shader. I only needed access to the volume locator matrix to compute the right position of the ray, and then use the projection transformation matrix to compute the depth value in the range [-1,1].

Re: [osg-users] [osgPPU] Running the processor between pre-render and main render

2009-08-07 Thread J.P. Delport
Hi, Miika Aittala wrote: Hi, ... where do I put the Processor and what else do I need to do in order to make its units render AFTER the depthCamera but BEFORE the osgViewer's camera? The main camera needs to render to an FBO too, because its results are also further processed with another

[osg-users] Using OSG Shadow mapping to compute a shadow map on a texture or bitmap

2009-08-07 Thread Andrew Thompson
Hi there, I have a rather strange problem that I would like to tackle using OSG, I wonder if anyone could offer some advice on whether it is possible or not? In brief, the application I am working on must allow users to detect what parts of a scene containing in a large CAD model are and are

Re: [osg-users] [osgPPU] Running the processor between pre-render and main render

2009-08-07 Thread Miika Aittala
Hi Art and J.P., thanks for the quick replies. :) art wrote: Is it possible that you provide me with a simple test case implementation to test it. Because then maybe I would be able to find an answer how to correct it. I'll probably put some simple test case together at the beginning of

Re: [osg-users] Z-buffer transparency / Alpha

2009-08-07 Thread Ulrich Hertlein
Hi Maxime, On 7/08/09 12:02 PM, Maxime BOUCHER wrote: Ulrich Hertlein wrote: Hi Maxime, I'm extremely irritated by what you write and maybe I'm not the only one. I am very sorry, please apologize. Maybe could you tell me why so that I won't do it again. No need to apologize. (I meant

Re: [osg-users] Blending Low Resolution Texture to Big Screen

2009-08-07 Thread kiruba nantham
Hi Robert,       Thank you, for your reply. i am tring some other method now (integrating image processing alogothms in my code) i hope this will help me. thanks again for suggesting me the third party implementations. regards,K.Kiruba.  --- On Wed, 8/5/09, Robert Osfield

Re: [osg-users] Computing depth buffer in osgVolume

2009-08-07 Thread Robert Osfield
Hi Yvon, Good to hear you've got it working. Maybe this should be integrated in the next release of OSG? I can send you the code of each shaders if you are interested. Possibly. It's not clear to me which depth you are computing, as each fragment can have only one depth, for a volume what

[osg-users] Infinite Grid in OSG

2009-08-07 Thread Andrew Thompson
Hi there, A simple question, would anyone know how I could implement an infinite grid in OSG? This is an image showing what I am trying to achieve. [Image: http://i137.photobucket.com/albums/q217/andyb1979/InfiniteGrid.png ] Ideally as the user zooms in/out I would like the grid to

Re: [osg-users] Infinite Grid in OSG

2009-08-07 Thread Andrew Thompson
Edit: Perhaps another way of asking this question - I know how to render my grid using OpenGL calls, I would basically use glBegin(GL_LINES) / glEnd and draw the lines at the appropriate spacing and thickness. So the question is - is there a way to directly push something onto the GL

Re: [osg-users] Infinite Grid in OSG

2009-08-07 Thread Brian R Hill
Andrew, You could implement it as an ortho projection (look at HUD examples) and draw text and lines as geometry based on current scale and position. Brian This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the

Re: [osg-users] Computing depth buffer in osgVolume

2009-08-07 Thread Yvon Halbwachs
Yes I agree that the z-buffer depth value makes more sense for the isosurface technique since it defines a single position. I only meant that I modified the shaders for the isosurface technique (volume_iso.frag and volume_tf_iso.frag). Yvon Robert Osfield wrote: Hi Yvon, Good to hear

Re: [osg-users] Deadlock when loading osg.dll, singletons are evil

2009-08-07 Thread Tanguy Fautre
Hi Robert, I had the chance to test your patch. As expected, it fixes the problem. The debugger shows the singleton is only initialized well after DllMain has been called. No deadlock to report. As you stated, we need to fix all the getenv() that can be called from constructing a global

Re: [osg-users] Computing depth buffer in osgVolume

2009-08-07 Thread Robert Osfield
Hi Yvon, On Fri, Aug 7, 2009 at 3:02 PM, Yvon Halbwachsy...@kalkulo.no wrote: Yes I agree that the z-buffer depth value makes more sense for the isosurface technique since it defines a single position. I only meant that I modified the shaders for the isosurface technique (volume_iso.frag and

Re: [osg-users] Deadlock when loading osg.dll, singletons are evil

2009-08-07 Thread Robert Osfield
Hi Tanguy, On Fri, Aug 7, 2009 at 3:14 PM, Tanguy Fautretang...@aristechnologies.com wrote: I had the chance to test your patch. As expected, it fixes the problem. The debugger shows the singleton is only initialized well after DllMain has been called. No deadlock to report. Great, a good

[osg-users] Open source projects for eye tracking

2009-08-07 Thread Robert Osfield
Hi VR-experts, There is a project proposal that I'm looking into that will require real-time eye tracking using standard PC webcams. A quick search of the web suggests that there are solutions out there, including some open source ones, but as to how good they or how suitable they are for use in

Re: [osg-users] Infinite Grid in OSG

2009-08-07 Thread Andrew Thompson
Ok, so I could use a HUD and attach behind my scene - clever, I like it :-) Now the question is, how do I get access to just glBegin/glEnd? I was thinking of creating a class that inherits ShapeDrawable and just rendering my lines (I have found some legacy code that calculates the lines and

Re: [osg-users] Infinite Grid in OSG

2009-08-07 Thread Brian R Hill
Andrew, I would recommend converting your glBegin/glEnd code to use native osg drawing constructs (geode,geometry,primitives,...). Check out the osggeometry example. Brian This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by

Re: [osg-users] Infinite Grid in OSG

2009-08-07 Thread Andrew Thompson
Ok, wise advise, just since this is a grid (Rendered once) per frame, I will need to resize the grid lines/thicknesses/spacing on every frame (as I zoom/pan my scene). I guess I have enough to go digging now though, certainly you've given me some good ideas, Thank you, Andrew

Re: [osg-users] Vec2ul and isomorphic variants?

2009-08-07 Thread Chris 'Xenon' Hanson
Robert Osfield wrote: Well I have no clue what you are specifically thinking of changing so I can't say anything about it either one way or the other. The osg::Array classes already use templates, and are already extensible, so I don't what you're trying to address. Well, I'm not aiming at

Re: [osg-users] Vec2ul and isomorphic variants?

2009-08-07 Thread Chris 'Xenon' Hanson
J.P. Delport wrote: I'm no expert, but what I do know is that tr1::function and tr1::bind are much easier to understand than the original variants. I've once made a little test app for myself that I attach. I agree. However, I can't rely on tr1 in my build at this time. Likewise with boost.

Re: [osg-users] Infinite Grid in OSG

2009-08-07 Thread Chris 'Xenon' Hanson
Brian R Hill wrote: Andrew, You could implement it as an ortho projection (look at HUD examples) and draw text and lines as geometry based on current scale and position. You can create a custom drawable that does anything at all you want when its code is called. Brian -- Chris 'Xenon'

Re: [osg-users] Open source projects for eye tracking

2009-08-07 Thread Martin Beckett
It's fairly easy to do in OpenCV using Haar trackers. OpenCV also handles all the webcam stuff for you fairly painlessly. See http://www.codeproject.com/KB/cpp/TrackEye.aspx for example. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15968#15968

Re: [osg-users] [3rdparty] osgOcean 1.0 (LGPL) Released

2009-08-07 Thread Jean-Sébastien Guay
Hello Peter, that got cmake to build it, but now when trying to compile, it gives tons of errors and fails compiler is vs08 sp1 32 bit Are you sure about that? This: C:\Program Files\Microsoft Visual Studio 9.0\VC\ in your log suggests you're using VC9. Perhaps you have mixed-up

Re: [osg-users] Open source projects for eye tracking

2009-08-07 Thread Martin Beckett
Sorry forgot to add, OpenCV is C/C++, cross platfom is BSD licensed and works well with OSG. The documentation isn't bad and it's used by a lot of vision courses so quite a few tutorials out there. There is a good intro book from O'Reilly Martin -- Read this topic online

Re: [osg-users] [osgPlugins] Unable to load plugin for jpeg file....

2009-08-07 Thread Martin Beckett
Do you have a osgdb_jpeg.dll file? Is it in a directory on your path ? Did you build OSG from source? You may need the 3rd party add-ons (especially if on windows) this contains the low level jpeg library needed the plugin. Martin ps. You should probably post in the 'general' forum - this is

Re: [osg-users] Vec2ul and isomorphic variants?

2009-08-07 Thread Robert Osfield
HI Chris, OK, I understand better where you coming from now - making a template of Vec to enable easier implementation of the various implementations. I chose not to use templates in the first place to avoid the compiler doing too much work on such a commonly used class and to enable easier

Re: [osg-users] Open source projects for eye tracking

2009-08-07 Thread Robert Osfield
Hi Martin, Thanks for the pointer. Have you use TrackEye yourself? Robert. On Fri, Aug 7, 2009 at 4:32 PM, Martin Beckettm...@mgbeckett.com wrote: It's fairly easy to do in OpenCV using Haar trackers. OpenCV also handles all the webcam stuff for you fairly painlessly. See

Re: [osg-users] Vec2ul and isomorphic variants?

2009-08-07 Thread Chris 'Xenon' Hanson
Robert Osfield wrote: HI Chris, OK, I understand better where you coming from now - making a template of Vec to enable easier implementation of the various implementations. I chose not to use templates in the first place to avoid the compiler doing too much work on such a commonly used class

Re: [osg-users] Deadlock when loading osg.dll, singletons are evil

2009-08-07 Thread Tanguy Fautre
Hi Robert, From our SVN log I've extracted a unified diff of the modifications I've had to make on our branch of OSG (i.e. a stabilized trunk snapshot taken around OSG 2.9.3). This should give a fair idea of the places where I found a potentially dangerous getenv(). See attached file. Be

Re: [osg-users] Open source projects for eye tracking

2009-08-07 Thread Martin Beckett
No, other than running the demo. I once did something to automatically find pupil position/size for an opthalmic system but it didn't do gaze direction. One thing that was very useful (if you can control the environment) was to use an IR LED which reflects off the cornea and an IR sensitive

Re: [osg-users] Feature request for 2.9: please include swig bindings in main release

2009-08-07 Thread john casu
Hi, thanks for the replies.. I'd just like to state that the aim of my request is to get the basic swig prototypes/bindings in place, to ensure their correctness. I think that process could be automated, somewhat. Even though the automatically generated bindings would be unwieldy for end

Re: [osg-users] osg::Image with signed int

2009-08-07 Thread Pau Moreno
Hi J.P., Finally I can figure out a way so I don't need the signed int. Anyway, I think my really problem is that by some reason, the texture is not uploading correctly to the GPU :S In my OGL code I have: Code: glGenTextures(1, (this-triTableTex));

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-07 Thread Pau Moreno
Hi, Thanks Ulrich, but I think this set one parameter for each vertex, and I really need 32 values for each vertex (that's what I'm using multitexcoord) Finally I think I have this problem solved, I had some problems with the glew initialization. Now I'm having other problems uploading a

[osg-users] RTT with FBO then copy Texture to image using PBO results in blank image.

2009-08-07 Thread Steven Powers
Hi, using OSG 2.2 I'm currently rendering to a texture using a FBO with an attached texture: Code: _texture = new osg::Texture2D(); _texture-setTextureSize((int)_camera-getViewport()-width(),(int)_camera-getViewport()-height());

Re: [osg-users] RTT with FBO then copy Texture to image using PBO results in blank image.

2009-08-07 Thread Steven Powers
Hi, I should add that the RTT Texture is attached to one of two osg::Cameras in the scene. Thank you! Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15983#15983 ___ osg-users

Re: [osg-users] Hello from New Orleans

2009-08-07 Thread Hansoo Kim
Great time in BOF, Happy to meet many OSG users (especially over 2000 friends in China) :D Maybe I have to trip 26hrs again to return, but it's no matter. I hope that I'm there in 2010. Hansoo Kim. Konkuk Univ., Korea. Wang Rui 쓴 글: Hi, I'm in Seattle now, and will be back to China in 1-2

Re: [osg-users] [osgPlugins] Unable to load plugin for jpeg file....

2009-08-07 Thread manish Choudhary
Hi, I have osgdb_jpegd.dll and it directory is currently set I have used other image plugin for *.rgb,*.bmp , it was working correctly for them I have seen tht for *.rgb file it was using two dll i.e osgdb_rgbd.dll and osgdb_rgb.dll and it required both these dll. same case i

Re: [osg-users] [osgPlugins] Unable to load plugin for jpeg file....

2009-08-07 Thread Martin Beckett
The XXXd.dll is the debug version, it will be used by the debug build of osg. Don't know why you don't have the release version. As a test I think you should just be able to copy the debug dll to osgdb_jpeg.dll (although this might depend on how forgiving your compiler is) Cheers, Martin

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-07 Thread Jean-Sébastien Guay
Hi Pau, Thanks Ulrich, but I think this set one parameter for each vertex, and I really need 32 values for each vertex (that's what I'm using multitexcoord) Finally I think I have this problem solved, I had some problems with the glew initialization. Now I'm having other problems uploading a

Re: [osg-users] Writing single plugin to handle multiple extensions

2009-08-07 Thread Paul Martz
A while ago, I added the ability to store extension aliases in a text file, and load that text file (and register the aliases within) with a single function call to Registry. If you search Registry.cpp for addFileExtensionAlias, you should see this. Personally, I'd like to extend this so that

Re: [osg-users] Hello from New Orleans

2009-08-07 Thread Paul Martz
Kudos to Hansoo Kim and Wang Rui for making the long trip from east Asia to New Orleans to attend the OSG BOF. I don't recall anyone from east Asia at past BOFs so maybe this was a first. Certainly Wang Rui's presentation on the growth/acceptance of OSG in China was impressive. I was

Re: [osg-users] Hello from New Orleans

2009-08-07 Thread Jean-Sébastien Guay
Hi all, It was great meeting all of you at the BOF. Great presentations all around, and very encouraging to see such an active community in China. I've started a page on the wiki: http://www.openscenegraph.org/projects/osg/wiki/Support/SIGGRAPH2009 Perhaps people can post their

Re: [osg-users] Writing single plugin to handle multiple extensions

2009-08-07 Thread Rick Pingry
Thanks Paul, I ended up just creating a second dll to handle the csg extension, so I am doing ok now, but I like your idea. I don't know about anyone else, but I know I like using the standard OSG viewer with my models, and I think it is a good idea to NOT have to modify the OSG code to load

Re: [osg-users] Writing single plugin to handle multiple extensions

2009-08-07 Thread Thrall, Bryan
Rick Pingry wrote on Friday, August 07, 2009 4:52 PM: Is there a way already to force the viewer to load a specific library based on some environment variable or better yet a command line parameter? would that be sufficient? Yes, osgviewer supports '-l libname' (that's a lower-case L) to load

Re: [osg-users] osg::Image with signed int

2009-08-07 Thread Pau Moreno
Hi, I'm sorry about that, but the texture upload it wasn't the problem. That's the problem working in the GPU, something is wrong but you don't have a way to determine what's wrong :P The problem was that in the GPU i had a vec3 array of 8 values, and I was setting it like Code:

Re: [osg-users] Hello from New Orleans

2009-08-07 Thread Paul Martz
Hi J-S - I'll add presentations and photos shortly. Marc's volume fire rendering software was created as part of his work with NIST (National Institute of Standards Technology). Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 Jean-Sbastien Guay wrote: Hi