Re: [osg-users] adjusting brightness and contrast in osgviewer

2010-03-04 Thread Trajce (Nick) Nikolov
Hi, I dont think there are built in methods in osg for this. But I see it doable via shaders - this way you can do any image processing you want. -Nick On Thu, Mar 4, 2010 at 9:59 PM, zhenlong li wrote: > Dear all, > > Is there any function to adjust the brightness or contrast of image in > o

Re: [osg-users] Moving Pyramid in Real Time

2010-03-04 Thread Trajce (Nick) Nikolov
I think you would want to put MatrixTransform on top of the pyramid node and update its matrix either thru updatecallback or outside your frame. Something like this class UpdatePyramidNodeCallback : public NodeCallback { virtual void operator()(osg::Node* node, osg::NodeVisitor* nv) { osg::MatrixT

[osg-users] Moving Pyramid in Real Time

2010-03-04 Thread John Galt
Hi, I want to move a pyramid based on a defined path (X,Y,Z) of its peak and the Roll, Pitch, Yaw. I have the details of X, Y, Z, Roll, Pitch, Yaw coming from another c++ code and is updated in real time. Does anyone have any suggestions as to how to go about moving it in OSG without the obv

[osg-users] Modifying scenegraph and update

2010-03-04 Thread Martin Beckett
I am modifying the scene, adding geometries, vertices etc and i have no control over when a draw traversal takes place. I am being carefull to ensure the geometry is always valid, eg. by adding vertices first then updating the PrimitiveSet but none of these operations are really atomic. Is the

Re: [osg-users] OSGViewer 'o' save scene key removed?

2010-03-04 Thread Martin Beckett
Hi, I coded something to do this as a test of writing handlers It's probably not the best solution - the keyboardhandler example describes using a single handler with loadable functions mapped to each key. But this does work and should get you started. It saves the entire scene with a filename w

Re: [osg-users] make uninstall on ubuntu

2010-03-04 Thread Alok Priyadarshi
Hi Robert, You were right. I upgraded to 2.6.2. and uninstall worked! Not a big deal but it just deleted the files and left behind all the directories. Thanks, -Alok On Thu, Mar 4, 2010 at 9:49 AM, Robert Osfield wrote: > Hi Alok, > > On Thu, Mar 4, 2010 at 4:21 PM, Alok Priyadarshi wrote: >> >

Re: [osg-users] FBX plugin: transparency and reflection maps...

2010-03-04 Thread alessandro terenzi
I've tried the latest source code from the svn repository and it works fine with transparent models. Thanks! Looking forward to trying new features like environment reflection maps and skinning animations. Let me know if I can help. Cheers. Alessandro On Thu, Mar 4, 2010 at 7:11 PM, alessandro t

[osg-users] adjusting brightness and contrast in osgviewer

2010-03-04 Thread zhenlong li
Dear all, Is there any function to adjust the brightness or contrast of image in osgviewer? If not, is it hard to add those functions in? Thanks! with best wishes Zhenlong ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.open

Re: [osg-users] fixes for warnings in vs2008.

2010-03-04 Thread Martin Naylor
Hi, LOL, I like haggis and black pudding. On the Microsoft site this says it can cause performance issues. Warning warning C4121: 'osgDB::PropByValSerializer' : alignment of a member was sensitive to packing OSG\OpenSceneGraph\include\osgDB\Serializer. But it looks like a wi

Re: [osg-users] New in using of OSG

2010-03-04 Thread Jason Daly
Milton Saulo Raimundo wrote: Hi, everybody. I'm new in using of OSG. I need to read a file containing a model and to explore a particular view of this model. I mean: when someone will click in the model, the program will jump to one room (will show another model of the room). Can someone hel

Re: [osg-users] fixes for warnings in vs2008.

2010-03-04 Thread Jolley, Thomas P
Hi Martin, I think you're heading towards a topic that was last discussed around October and November of last year. Search for Change to Optimizer OptimizationOptions. It all boils down to coding style. The result of the discussion was Robert wants us to wear kilts and toss the caber while w

[osg-users] New in using of OSG

2010-03-04 Thread Milton Saulo Raimundo
Hi, everybody. I'm new in using of OSG. I need to read a file containing a model and to explore a particular view of this model. I mean: when someone will click in the model, the program will jump to one room (will show another model of the room). Can someone help me get started? Thank you!

Re: [osg-users] FBX plugin: transparency and reflection maps...

2010-03-04 Thread alessandro terenzi
Thanks Michael, let me know if and when I can help testing any new functionality you'll add ;) BTW shall I already find the source code that correctly handle transparency in the svn repository? Cheers. Alessandro On Thu, Mar 4, 2010 at 6:14 PM, Michael Platings wrote: > Thanks for the testing.

Re: [osg-users] fixes for warnings in vs2008.

2010-03-04 Thread Martin Naylor
Or maybe _intheritanceMask should not be unsigned, no warning if I remove the unsigned from the header file? Maybe I need to understand OSG better first! From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Martin Naylor Sent: 04

[osg-users] fixes for warnings in vs2008.

2010-03-04 Thread Martin Naylor
Hi all, Thought I would have a go at fixing the warnings for visual 2008. Before I go ahead, is it ok to cast items, i am thinking from a portability sense my c++ skills are self taught so bare with me J and I am more worried about breaking the build system J For example: The first warning

Re: [osg-users] Improving the OpenSceneGraph project efficiency and balance

2010-03-04 Thread Jean-Sébastien Guay
Hi all, Back from vacation, glad to see progress has been made on this thread. A few comments: o Porting the website for MediaWiki, are there any tools that might help this? This page on the official MediaWiki site has one pointer: http://www.mediawiki.org/wiki/Manual:Importing_external

Re: [osg-users] FBX plugin: transparency and reflection maps...

2010-03-04 Thread Michael Platings
Thanks for the testing. I've now added enabled blending for transparent materials so transparency will work now. If I have time I'll see what I can do about supporting the various texture types... ___ osg-users mailing list osg-users@lists.openscenegraph.

Re: [osg-users] Did my shader compile successfully?

2010-03-04 Thread Robert Osfield
On Thu, Mar 4, 2010 at 4:27 PM, Terry Welsh wrote: > Thanks for the reply Robert. Parsing an error message sounds a bit > risky. A couple hours after writing that message I found another > solution. You cannot call > > myshader->getPCS(context)->isCompiled(); > > because getPCS() is protected.

Re: [osg-users] make uninstall on ubuntu

2010-03-04 Thread Robert Osfield
Hi Alok, On Thu, Mar 4, 2010 at 4:21 PM, Alok Priyadarshi wrote: > osg 2.9.7 > cmake --version gives me "cmake version 2.4-patch 7" > > It's pretty likely you up against a bug in cmake 2.4.7. Could you update to CMake 2.6.x or later. Robert. ___ osg-

Re: [osg-users] Did my shader compile successfully?

2010-03-04 Thread Terry Welsh
Thanks for the reply Robert. Parsing an error message sounds a bit risky. A couple hours after writing that message I found another solution. You cannot call myshader->getPCS(context)->isCompiled(); because getPCS() is protected. But you can call myprogram->getPCP(context)->isLinked(); beca

Re: [osg-users] make uninstall on ubuntu

2010-03-04 Thread Alok Priyadarshi
osg 2.9.7 cmake --version gives me "cmake version 2.4-patch 7" On Thu, Mar 4, 2010 at 9:19 AM, Robert Osfield wrote: > Hi Alok, > > I haven't seen problems with uninstall before - I used Kubuntu for > development, so should have a similar setup to yourself.  Which version of > the OSG and Cmake a

Re: [osg-users] make uninstall on ubuntu

2010-03-04 Thread Robert Osfield
Hi Alok, I haven't seen problems with uninstall before - I used Kubuntu for development, so should have a similar setup to yourself. Which version of the OSG and Cmake are you using on your system? Robert. On Thu, Mar 4, 2010 at 4:08 PM, Alok Priyadarshi wrote: > Hi Alberto/Robert, > Yes I t

Re: [osg-users] External threads and osgViewer

2010-03-04 Thread Robert Osfield
Hi Stefan, On Thu, Mar 4, 2010 at 2:30 PM, Stefan Eilemann wrote: > Correct, it works now without modifications to GraphicsContext. > Good to hear. Thanks for the testing ;-) Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http:

Re: [osg-users] make uninstall on ubuntu

2010-03-04 Thread Alok Priyadarshi
Hi Alberto/Robert, Yes I tried "sudo make uninstall" but it did not do anything just echoed "Built target uninstall". So CMakeFiles/uninstall.dir/all is being executed just not doing anything. I am not a linux developer so I have a very limited understanding of makefiles. Is there anything I can se

Re: [osg-users] Modifying editing eye separation and eye mapping in a realized OSG Viewer?

2010-03-04 Thread Christian Buchner
Okay, I got smarter. ;) The renderer duly ignores the Horizontal eye mapping settings in Quad Buffer, Anaglyph, Interlaced modes and only evaluates the parameter in the HORIZONTAL_SPLIT mode. Likewise it only takes the Vertical eye mapping setting in VERTICAL_SPLIT mode. So basically I have to tr

Re: [osg-users] External threads and osgViewer

2010-03-04 Thread Stefan Eilemann
Hi Robert, On 26. Feb 2010, at 10:02, Robert Osfield wrote: > At the end of last week I checked in a refactor of > OpenThreads::ReentrantMutex and Mutex so that the implementation of > recursive/reentrant mutex is left to the underlying threading library (i.e. > pthreads) rather than using Ope

[osg-users] Modifying editing eye separation and eye mapping in a realized OSG Viewer?

2010-03-04 Thread Christian Buchner
Hi I am using OpenSceneGraph 2.8.2 with great success to display a stereoscopic simulation on a polarized 3D display. I had intended to allow the user to interactively edit parameters such as eye separation and the eye mapping (a swap eyes function). However I am having trouble making the viewer o

Re: [osg-users] OSG Scriptable Plugin for Firefox

2010-03-04 Thread Leo Salom
Hi Jason, We just tested on Ubuntu still pending to make it work in others distributions. Best Regards ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] automatic pixel transparency adjustment

2010-03-04 Thread Guy
Thanks. From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Michael Platings Sent: Thursday, March 04, 2010 12:57 PM To: OpenSceneGraph Users Subject: Re: [osg-users] automatic pixel transparency adj

Re: [osg-users] automatic pixel transparency adjustment

2010-03-04 Thread Guy
Thanks, I'll look into it. From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Wojciech Lewandowski Sent: Thursday, March 04, 2010 12:42 PM To: OpenSceneGraph Users Subject: Re: [osg-users] automatic

Re: [osg-users] automatic pixel transparency adjustment

2010-03-04 Thread Guy
Hmm... I guess I'll have to read about the full screen antialiasing algorithm then. :-) Thanks. From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Thursday, March 04, 2010 11:0

[osg-users] FBX plugin: transparency and reflection maps...

2010-03-04 Thread alessandro terenzi
I tried some FBX models (exported from 3dsMax 2010) and I found out that the FBX plugin doesn't display transparent objects correctly (they are totally opaque in OSG 2.9.7). Another problem I experienced is with environment reflection maps, it looks like they are ignored. Are those features alread

Re: [osg-users] Symbols Font display

2010-03-04 Thread Linares Antonin
Hi, finaly I found it, the fonts lacks of ascii table, i used fontforge to regenerate the font and all is ok now. cheer Le mercredi 03 mars 2010 à 18:41 +, Linares Antonin a écrit : > Hi all, > > I have to draw some military symbols, i found a True type fonts of the > NATO standard APP-6a

Re: [osg-users] OSG Scriptable Plugin for Firefox

2010-03-04 Thread Leonardo Salom Muñoz
Hi Luigi, > > > Did you used npruntime for javascript wrapping? >>> When we started our www,virtualrome.it effort, npruntime was not >>> available, >>> but now it seem the right way to go. >>> >>> >>> >> >> Leo could answer you better to this question! :). >> >> > I'm waiting... Yes we used a

Re: [osg-users] Why :readNodeFile("http://www.aaa.com/a.ive") not take effect?

2010-03-04 Thread Robert Osfield
Hi Donlin, The net plugin is deprecated, and isn't even built by the OpenSceneGraph Cmake build system. The plugin to use curl plugin that requires libcurl and associated headers to be installed. I have just checked svn/trunk and the net plugin is still in place so I'll formally move it out of s

Re: [osg-users] automatic pixel transparency adjustment

2010-03-04 Thread Michael Platings
> > If classic multisample antialiasing does not work for you, have a look at > centroid modified in GLSL ver 1.2 and upr. See this link for example: > http://www.opengl.org/pipeline/article/vol003_6/ > I agree, if you're using shaders make sure you declare all your varyings centroid. The linked a

Re: [osg-users] automatic pixel transparency adjustment

2010-03-04 Thread Wojciech Lewandowski
errata: not centroid modified but centroid modifier. Wojtek - Original Message - From: Wojciech Lewandowski To: OpenSceneGraph Users Sent: Thursday, March 04, 2010 11:41 AM Subject: Re: [osg-users] automatic pixel transparency adjustment Hi Guy, If classic multisample a

[osg-users] Why :readNodeFile("http://www.aaa.com/a.ive") not take effect?

2010-03-04 Thread xyc508
Hi,all Why :readNodeFile("http://www.aaa.com/a.ive";) not take effect? how to use "osgviewer.exe http://www.aaa.com/a.ive";? The osgdb_net.dll is on the right way. Thanks Donlin___ osg-users mailing list osg-users@lists.openscenegraph.org http://li

Re: [osg-users] automatic pixel transparency adjustment

2010-03-04 Thread Wojciech Lewandowski
Hi Guy, If classic multisample antialiasing does not work for you, have a look at centroid modified in GLSL ver 1.2 and upr. See this link for example: http://www.opengl.org/pipeline/article/vol003_6/ Wojtek Lewandowski - Original Message - From: Robert Osfield To: OpenSceneGraph

Re: [osg-users] Matrix conversions need help

2010-03-04 Thread Michael Platings
I can't claim to be a quaternion expert, but it looks like you misunderstand how they work - converting them to XYZ angles is not nearly as simple as you seem to be suggesting. Here's my own code to get euler angles from a matrix. Converting it to using an osg Matrix will be trivial. // The return

Re: [osg-users] automatic pixel transparency adjustment

2010-03-04 Thread Michael Platings
What you're asking for sounds like this: http://glprogramming.com/red/chapter06.html#name2 To achieve this in osg you can do myStateSet->setAttributeAndModes(new osg::Hint(GL_POLYGON_SMOOTH_HINT, GL_NICEST)); However, this setting may be ignored by an OpenGL implementation. Additionally, it may lo

Re: [osg-users] PagedLod & dataBasePager memory managment

2010-03-04 Thread Robert Osfield
Hi Vincent, Could you post the whole modified file to osg-submissions. Thanks, Robert. On Thu, Mar 4, 2010 at 9:13 AM, Vincent Bourdier wrote: > Hi Robert, > > This is the memory management patch, without the callback. If you are > interested in... use it. :-) > > Regards, > Vincent. > > Le

Re: [osg-users] PagedLod & dataBasePager memory managment

2010-03-04 Thread Vincent Bourdier
Hi Robert, This is the memory management patch, without the callback. If you are interested in... use it. :-) Regards, Vincent. Le 19/02/2010 16:40, Vincent Bourdier a écrit : Hi Robert, osgcallback already implements a ReadFilecallback... so I don't know if it will be useful to make an

Re: [osg-users] Did my shader compile successfully?

2010-03-04 Thread Robert Osfield
Hi Terry, I don't recall a method for programmability getting whether a shader has compiled successfully, but you will out a warning output via osg::notify to the console if there is an error with compilation or linking. If you don't get an error then things should be fine. Up you notification l

Re: [osg-users] automatic pixel transparency adjustment

2010-03-04 Thread Robert Osfield
Hi Guy, I can't help but feel what you are asking for is full screen anti-aliasing... Robert. On Thu, Mar 4, 2010 at 4:43 AM, Guy wrote: > Hi all, > > I need "OpenGL"/driver/fixed-pipeline/whatever I don’t need to code, to do > the following thing: > > When rasterizing an object, first never

Re: [osg-users] make uninstall on ubuntu

2010-03-04 Thread Robert Osfield
Hi Alok, On Wed, Mar 3, 2010 at 11:11 PM, Alok Priyadarshi wrote: > make instclean (says invalid target, so I guess the instructions on > http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/Make > are outdated?) > Yes this path is outdated - it's for OSG-1.x, not the new CMake ba

Re: [osg-users] Rapidly updating texture data

2010-03-04 Thread Robert Osfield
Hi Jason and David, On Wed, Mar 3, 2010 at 10:09 PM, Jason Daly wrote: > Yeah, Performer wasn't written for OpenGL 2.0. OSG wasn't originally > either, which is why it defaults to resizing all images. The resize hint > was added for OpenGL 2.0 (actually for the ARB_texture_non_power_of_two > e

Re: [osg-users] make uninstall on ubuntu

2010-03-04 Thread Alberto Luaces
Hi Alok, Alok Priyadarshi writes: > Hi, > I have just started playing with osg on ubuntu. I was able to > successfully build, install, and run osgviewer. I have not been able > to uninstall though. I have tried many things without any luck: > > make uninstall (just says target built) Weird. "mak

Re: [osg-users] NodeVisitor for PagedLOD was RE: OSG 2.9.6GeometryTechnique and transparency

2010-03-04 Thread Robert Osfield
Hi Brad, On Wed, Mar 3, 2010 at 5:54 PM, Brad Colbert wrote: > Thanks for the quick reply. How is the fly-fishing in your parts? > I haven't personally fly fished since I was a teen ager, but when I walk/cycle/run along the local river paths there are often fly fisherman out trying to catch br

[osg-users] Matrix conversions need help

2010-03-04 Thread Andrzej Piatek
Hi, I want to show data from matrix and want to make it editable by user. I've got osg::Matrix f.e. mat, so i do mat.getRotate , mat.getScale, mat.GetTrans and i have problem with getRotate. It returns Quat and i want to convert to HPR but as far as i know this quaternion is scaled but maybe i am

Re: [osg-users] OSG Scriptable Plugin for Firefox

2010-03-04 Thread Luigi Calori
Rafa Gaitan wrote: Hi Luigi, On Thu, Mar 4, 2010 at 1:26 AM, Luigi Calori wrote: Great to hear there is someone else who is going along this (tiring) path... I had the impression that web apps was a topic with little appealing in this community: maybe after Google Earth plugin,O3D, Unity