Re: [osg-users] Openscenegraph Image to Windows HBITMAP

2009-04-02 Thread Jesper D. Thomsen
Thank you, I can certainly rewrite the rest of the pipeline to work with osg::Image, but I just needed to check if there was some easy method that I hadn't found yet myself. regards, Jesper D. Thomsen From: osg-users-boun...@lists.openscenegraph.org [osg-users-

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

[osg-users] Loading of osga models dynamically?

2009-04-02 Thread Akilan
Hi, I have created virtual earth and wanted to load thousands of osga models(each 28MB) on it. I am loading all models in the begining itself and starting the viewer. But it keeps increase the RAM size. When the number of models increases still more, the application fails. I want to know how

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] [build] Windows binary download

2009-04-02 Thread Philip Lowman
On Thu, Apr 2, 2009 at 3:57 PM, Jean-Sébastien Guay < jean-sebastien.g...@cm-labs.com> wrote: > Hello Martin, > > It's not a big deal - it's just one of those detail things that puts off >> new users if to try OSG they have to go and install some other third party >> app to open the download. >>

Re: [osg-users] setPolygonMode for Geometry?

2009-04-02 Thread Paul Martz
For the record, basic concepts like setting state are covered pretty well in the Quick Start Guide: http://www.lulu.com/content/paperback-book/openscenegraph-quick-start-guide/ 767629 Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 __

Re: [osg-users] setPolygonMode for Geometry?

2009-04-02 Thread Martin Beckett
Thanks Paul - for the archives here's the code sample: Code: osg::StateSet* stateSet = new osg::StateSet(); model->setStateSet(stateSet); osg::PolygonMode* state = new osg::PolygonMode; state->setMode(osg::PolygonMode::FRONT_AND_BACK,osg::PolygonMode::POINT); stateSet->setAttributeAndModes(state

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

2009-04-02 Thread Lucasw
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 fine and running

Re: [osg-users] setPolygonMode for Geometry?

2009-04-02 Thread Paul Martz
Yes, attach a PolygonMode StateAttribute to the StateSet. See the osggeometry example, which does this. 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.opensc

[osg-users] setPolygonMode for Geometry?

2009-04-02 Thread Martin Beckett
I would like to render objects in a scene in different polygon modes -some as points, others as mesh etc. Is there anyway to set a polygon mode for a Geometry rather than a global view or camera? Thanks Martin -- Read this topic online here: http://forum.openscenegraph.org/viewt

Re: [osg-users] SGI declares bankruptcy (UNCLASSIFIED)

2009-04-02 Thread Brian Stewart
So sad. I had the first Indigo that would digitize video back in '92, and later on I had an Onyx in my house for about a year. It did use a lot of electricity though... This certainly wasn't a surprise, but I will miss them. -- Read this topic online here: http://forum.opensceneg

Re: [osg-users] SGI declares bankruptcy (UNCLASSIFIED)

2009-04-02 Thread Jason Daly
Tomlinson, Gordon wrote: Again They died the day they killed their logo and changed name, the head had gone but the tale took some time to catch up Found memorys though of great hunking Iron and I loved Irix.. I agree. IRIX was such a great platform to develop on. --"J" __

Re: [osg-users] SGI declares bankruptcy (UNCLASSIFIED)

2009-04-02 Thread Brian R Hill
I grew up on SGI's starting with the VGX (1990) all the way through the IR-3 (2001). It was a fun and exciting time. 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 mistake in delivery. NOTE: Regardless o

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Jean-Sébastien Guay
Hello Martin, It's not a big deal - it's just one of those detail things that puts off new users if to try OSG they have to go and install some other third party app to open the download. If making them zip on windows is as easy as Mattias said, we should do it. Agreed. It's just that as Rob

Re: [osg-users] Euler angle rotation

2009-04-02 Thread Jason Daly
Robert Osfield wrote: Hi Jason, Well there is many different ways to define an Euler angle, which convention would you go for??? Rather than go down this tangled route the OSG just uses quaternions for rotation, they are far more robust and lack the ambiguities of Euler angles. I'm well a

Re: [osg-users] SGI declares bankruptcy (UNCLASSIFIED)

2009-04-02 Thread Tomlinson, Gordon
Again They died the day they killed their logo and changed name, the head had gone but the tale took some time to catch up Found memorys though of great hunking Iron and I loved Irix.. Gordon Product Manager 3d __ Gordon Tomlinson Ema

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Robert Osfield
Hi All, I'm open to OSG's CPack support being tweaked support generated of .zip's under Windows, but am against support multiple archive formats for each platform. The decision to go for .tar.gz under Windows was discussed on osg-users and there was no one who thought it an problem at the time so

[osg-users] SGI declares bankruptcy (UNCLASSIFIED)

2009-04-02 Thread Buckley, Bob CTR MDA/IC
Classification: UNCLASSIFIED Caveats: NONE A moment of silence please ... http://www.modsim.org/index.php?name=News&file=article&sid=1999 They sure were amazing. Classification: UNCLASSIFIED Caveats: NONE ___ osg-users mailing list osg-users@

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Martin Beckett
It's not a big deal - it's just one of those detail things that puts off new users if to try OSG they have to go and install some other third party app to open the download. If making them zip on windows is as easy as Mattias said, we should do it. -- Read this topic online here:

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Mattias Helsing
Hi guys, ANECDOTE WARNING! Have to share or head will explode: My company's computer and network admins (outsourced) decided that firefox is not secure, scanned every computer on the intranet for firefox.exe and sent mail warnings instructing people to remove it or... Now I have a bad conscience

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Jean-Sébastien Guay
Hi Mattias, We could do set(CPACK_GENERATOR "ZIP TGZ") for win32 and get both. Will require more space on server but no biggie I guess. I don't see a reason to get both... Who on Windows can't open zip files and would prefer .tar.gz? Let's just pick one convention (probably one convention

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

2009-04-02 Thread Paul Martz
This behavior is allowed by the OpenGL spec. It's one good reason why polygons are removed in OpenGL 3.1. 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.open

Re: [osg-users] Minimizing OSG app window frees memory

2009-04-02 Thread Paul Martz
I don't believe this has anything to do with OSG. This looks like typical MS Windows memory management. Are you saying you don't see this same kind of behavior in non-OSG apps? I certainly have. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -Original Message--

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Mattias Helsing
Hi J-S On Thu, Apr 2, 2009 at 7:45 PM, Jean-Sébastien Guay wrote: > Hi Mattias, > >> This is a q about user-friendliness so perhaps others would care to >> have an opinion. If the support for zip archives is demanded to some >> degree (and Robert approves) I'll be happy to implement it in our >>

Re: [osg-users] default coordinate system and camera - newbie

2009-04-02 Thread Paul Martz
My guess is that, at the time you do the query, you haven't rendered a frame yet. If so, the Viewer object hasn't queried the manipulator matrix yet. You have the source code, so you can easily verify this with a debugger. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com

Re: [osg-users] Euler angle rotation

2009-04-02 Thread Robert Osfield
Hi Jason, Well there is many different ways to define an Euler angle, which convention would you go for??? Rather than go down this tangled route the OSG just uses quaternions for rotation, they are far more robust and lack the ambiguities of Euler angles. Robert. On Thu, Apr 2, 2009 at 7:34 PM

Re: [osg-users] Viewer::frame() thread-safety

2009-04-02 Thread Robert Osfield
Hi Tanguy, It all depends upon the threading model your are using. Lots has been written on this topic so searching the archives will reveal lots of info. The threading models that require extra care are DrawTheadPerContext and CullThreadPerCameraDrawTheadPerContext, for these the draw thread can

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Jean-Sébastien Guay
Hi Jason, BTW, J-S, I think the order of installation is actually Firefox first, then Nvidia driver, then 7-zip ;-) Diff'rent strokes for diff'rent folks :-) If you really want to be nitpicky, I agree for Firefox, because I need it to download 7-zip (IE should only ever be used to download

[osg-users] Euler angle rotation

2009-04-02 Thread Jason Daly
Hi, Robert, I'm porting an old Performer application to OSG. It's not a problem for me, but I noticed that there is practically no support for Euler angle rotations (heading, pitch, roll) in OSG anywhere. (I'm not sure how I missed this all this time, but there it is.) I ended up having t

Re: [osg-users] Openscenegraph Image to Windows HBITMAP

2009-04-02 Thread Jason Daly
I believe an HBITMAP is more than just an array of pixels. It's more like a drawing context (HDC). I think no matter what you do, you'll have to create your HBITMAP from scratch and copy data to it. Do you really need an HBITMAP for what you're doing? --"J" Glenn Waldron wrote: Not sure

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Jason Daly
Jean-Sébastien Guay wrote: I agree with all your points. If we had had lots of requests for .zip since 2.8 shipped, that would be a different story, but since this has been the first (and it was discussed on osg-submissions when the packaging was being developed and no one objected) it probably

Re: [osg-users] Openscenegraph Image to Windows HBITMAP

2009-04-02 Thread Glenn Waldron
Not sure, but the code in the "bmp" plugin might help. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 2009/4/2 Jesper D. Thomsen > Hi all, (and thank you for you help on previous occasions). > > I'm writing (in Visual studio 2005sp1) the Openscenegraph (2.6.1)

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Jean-Sébastien Guay
Hi Mattias, This is a q about user-friendliness so perhaps others would care to have an opinion. If the support for zip archives is demanded to some degree (and Robert approves) I'll be happy to implement it in our build scripts. I agree with all your points. If we had had lots of requests for

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Mattias Helsing
Hi J-S, Martin, On Thu, Apr 2, 2009 at 3:04 PM, Jean-Sébastien Guay wrote: > Hi Martin, > >> It also seems that windows binaries are packed as .tar.gz - could we make >> them .zip? Windows users that are downloading binaries are unlikely to have >> cygwin/ming tools installed. > > Most unzip tool

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

2009-04-02 Thread Adrien Joly
Thank you for the answers. I finally found, thanks to you, how to make it work ! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=9657#9657 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Node to Geode

2009-04-02 Thread Robert
Thanks for your help but you were right robertosfield, I realised I could get what I wanted without using geodes so, my fault. Thanks anyway. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=9656#9656

[osg-users] Viewer::frame() thread-safety

2009-04-02 Thread Tanguy Fautre
Hi Robert, Chasing a set of bugs, I'm very sceptical about the update logic of our application. In a nutshell, here is currently what we are doing: while (! done) { const double time = elapsedTime(); updateScene(time); osgViewer::V

Re: [osg-users] osgmovie plugins supported

2009-04-02 Thread Robert Osfield
Hi Francesco, I don't recall there being support for the Quicktime plugin back in the days of OSG-1.2, so if you want video support you'll have to backport either the Quicktime plugin or the new ffmpeg plugin. Or... just upgrade to OSG-2.8 to get acess to the Quicktime plugin, or OSG-2.9.x/svn fo

[osg-users] osgmovie plugins supported

2009-04-02 Thread Francesco Argese
Hi guys, I want to add a movie in my scenegraph builded with openscenegraph 1.2 (on a windows machine). The problem is that I have a .flv video and I don't know what types of formats are supported in order to convert it in a supported format. How can I see this? I have already done some tests wit

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

2009-04-02 Thread Tomlinson, Gordon
Look through the examples in the OSG src and also look through the tuorials on the Web site, you will find code that's shows you how to do this Gordon Product Manager 3d __ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com __

Re: [osg-users] Object oriented coding

2009-04-02 Thread Paul Speed
Note that the e-mail address was only viewable by forum members. I'm not a member and couldn't see it. May be small consolation, I guess. -Paul Tomas Lundberg wrote: Thank you. I will check it out. Can you please edit the replies and remove my name and email? I have chosen the settings no

Re: [osg-users] osgUtil::Simplifier in OpenSceneGraph 1.1 or 1.2 Version

2009-04-02 Thread Sam
Thank you Robert and Brian i appreciate your help :) :o -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=9644#9644 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegra

[osg-users] default coordinate system and camera - newbie

2009-04-02 Thread ami guru
Hello Paul, I have made the following changes, still having the same value: *** int main() { //Creating the viewer osgViewer::Viewer viewer ; *viewer.setCameraManipulator(new osgGA::TrackballManipulator());* //add some event handler

Re: [osg-users] osgUtil::Simplifier in OpenSceneGraph 1.1 or 1.2 Version

2009-04-02 Thread Brian R Hill
Sam, Robert suggested back porting the osgUtil::Simplifier class. Grab those files and add them to your 1.x distribution. 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 mistake in delivery. NOTE: Regardl

Re: [osg-users] osgUtil::Simplifier in OpenSceneGraph 1.1 or 1.2 Version

2009-04-02 Thread Robert Osfield
Hi Sam, On 4/2/09, Sam wrote: > Thank you Brian. > > But once again if i tried to use osgUtil::Simplifier in osg1.2 what should i > do to get the Simplifier options in my program without updating the OSG > version I'm lost. What are you looking for? The code to the OSG is all open source, you

Re: [osg-users] osgUtil::Simplifier in OpenSceneGraph 1.1 or 1.2 Version

2009-04-02 Thread Sam
Thank you Brian. But once again if i tried to use osgUtil::Simplifier in osg1.2 what should i do to get the Simplifier options in my program without updating the OSG version Thank you in advance. Cheers -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.p

Re: [osg-users] [build] Build problem with gdk-x11-2.0

2009-04-02 Thread Harry Plantinga
Yes, there is a symbolic link: libgdk-x11-2.0.so -> libgdk-x11-2.0.so.0.1000.6 libgdk-x11-2.0.so.0 -> libgdk-x11-2.0.so.0.1000.6 libgdk-x11-2.0.so.0.1000.6 Harry -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=9639#9639 ___

[osg-users] Openscenegraph Image to Windows HBITMAP

2009-04-02 Thread Jesper D. Thomsen
Hi all, (and thank you for you help on previous occasions). I'm writing (in Visual studio 2005sp1) the Openscenegraph (2.6.1) part of an application for Windows (XP/Vista). I need to be able to record and take screenshots of my Openscenegraph viewports and also from non-viewport cameras. I'm go

Re: [osg-users] osgUtil::Simplifier in OpenSceneGraph 1.1 or 1.2 Version

2009-04-02 Thread Brian R Hill
I've migrated one small-medium project from 1.2 to 2.x and am preparing to migrate another really large project. The biggest issue is removing producer. If you don't do much with the internals of osgProducer::Viewer or Producer::Cameras then the upgrade should be pretty straight forward. If you do,

Re: [osg-users] How to get heightfield from ReadFileCallback VPB Terrain

2009-04-02 Thread Ralf Stokholm
Hi Robert Thanks a lot, was starting to get at this but using a more primitive approach of running through all the children of the node that I did get. Will try to implement your method. Brgs. Ralf Stokholm 2009/4/2 Robert Osfield : > Hi Ralf, > > You'll need to write a custom NodeVisitor that

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Jean-Sébastien Guay
Hi Martin, It also seems that windows binaries are packed as .tar.gz - could we make them .zip? Windows users that are downloading binaries are unlikely to have cygwin/ming tools installed. Most unzip tools support tarballs - 7-zip, winrar, etc. You could argue that Windows has native suppo

Re: [osg-users] osgUtil::Simplifier in OpenSceneGraph 1.1 or 1.2 Version

2009-04-02 Thread Sam
Thank you Robert for the answer. But updating the osg version of the application(it's a huge application with too many classes and dependencies) may cause some problems. I don't know realy the real impact of a such update but i remember that i tried to update the old version to the new one and

Re: [osg-users] How to get heightfield from ReadFileCallback VPB Terrain

2009-04-02 Thread Robert Osfield
Hi Ralf, You'll need to write a custom NodeVisitor that traverses through the loaded scene graph and picks out the TerrainTile using dyanmic cast. It just so happens that I'm actually working on a ReadFileCallback/custom Visitor that does pick out all the TerrainTile's in a subgraph (there will

Re: [osg-users] How to get heightfield from ReadFileCallback VPB Terrain

2009-04-02 Thread Ralf Stokholm
Hi Jason Thanks for the surgestion, tried the following. osgDB::ReaderWriter::ReadResult result = osgDB::Registry::instance()->readNodeImplementation(fileName,options); if (result.validNode()) { LOG_ERROR("Found a valid Node"); if (dynamic_cast(r

Re: [osg-users] osgUtil::Simplifier in OpenSceneGraph 1.1 or 1.2 Version

2009-04-02 Thread Robert Osfield
Hi Sam, You can should be able to back port osgUtil::Simplifier to OSG 1.2. The other approach you could take is just port your app to OSG 2.8, as this will bring you plenty of other benefits besides the Simplifier. Robert. On Thu, Apr 2, 2009 at 1:16 PM, Sam wrote: > Hello everybody, > > Bec

Re: [osg-users] Controlling the rendering order

2009-04-02 Thread Robert Osfield
Hi Tanguy, The rendering backend is set up to allow nesting of RenderBin, so you can implement layer within layers. The rendering backend also support multiple RenderStage for RTT and HUD purposes. A RenderStage is just a subclass from RenderBin that adds a clear at the begining of the stage, an

Re: [osg-users] Running OSG app across multiple GPUs (windows)

2009-04-02 Thread Robert Osfield
Hi Endre, On Thu, Apr 2, 2009 at 12:56 PM, Endre Lidal wrote: > Yes, that is correct. What I did was to run the my application unchanged on > the multi-GPU computer, expand the application window by dragging the window > sidebar cross all 4 displays. Everything except the textures that are > aff

Re: [osg-users] How to get heightfield from ReadFileCallback VPB Terrain

2009-04-02 Thread Jason Beverage
Hi ralf Try casting the node to an osgTerrain::TerrainTile. If the cast works you'll be able to grab the elevation layer and cast it to a heightfieldlayer and grab the hf Jason Sent from my iPhone On Apr 2, 2009, at 8:05 AM, Ralf Stokholm wrote: Hi List Im trying to get the heightf

[osg-users] osgUtil::Simplifier in OpenSceneGraph 1.1 or 1.2 Version

2009-04-02 Thread Sam
Hello everybody, Because i'm doing a work that a colligue started about 2 years ago, i'd like to improve performance and efficiecy for his program by adding a support for the osgUtil::Simplifier to use the Decimation algorithm implementation. Since the older version there was no support for the

[osg-users] How to get heightfield from ReadFileCallback VPB Terrain

2009-04-02 Thread Ralf Stokholm
Hi List Im trying to get the heightfiled data from a VPB terrain using ReadFileCallback. I use the code from readfile callback like this. class MyReadFileCallback : public osgDB::Registry::ReadFileCallback { public: virtual osgDB::ReaderWriter::ReadResult readNode(const std::strin

Re: [osg-users] Controlling the rendering order

2009-04-02 Thread Tanguy Fautre
Hi Robert, I do have a Layer class (although it's more than just a node), and I also have an Overlay class. An overlay sets up the orthogonal project and the common state set. It also contains several layers. The overlay guarantees that the layer are rendered in order (i.e. you add them to

Re: [osg-users] Running OSG app across multiple GPUs (windows)

2009-04-02 Thread Endre Lidal
Hi Robert, thank you for quick replay. robertosfield wrote: > Hi Endre, > > Just to be clear, do you have your app running across all displays right > now?   Is it just the subloading that isn't working? > > Yes, that is correct. What I did was to run the my application unchanged on the mu

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] Controlling the rendering order

2009-04-02 Thread Tanguy Fautre
Hi Guy, >From what I’ve seen osgWidget would be an overkill for us, while not >implementing the features we do need. In any case, I’ve quickly looked into osgWidget source code, and it seems it’s using a single transparent bin with z ordering (WindowManager.cpp, around line 400, assigns

Re: [osg-users] Controlling the rendering order

2009-04-02 Thread Robert Osfield
HI Tanguy, 2009/4/2 Tanguy Fautre > Do you suggest I create an additional bin type (e.g. GUI_ELEMENT_BIN) in > addition to OPAQUE_BIN and TRANSPARENT_BIN, and write my own sort algorithm > for those (i.e. render in the same order children appears in) ? > Implicit rendering order is bound to be

Re: [osg-users] ObjectType querry...

2009-04-02 Thread neil.hughes
Hi Robert, Please ignor last email, and this request. I've just realised what to do. Put it down to temporary moment of insanity on my part. Thanks for help. Neil. neil.hug...@tesco.net wrote: > Hi Robert, > > Thanks for coming back to me so quickly, however I don't think I made myself

Re: [osg-users] Controlling the rendering order

2009-04-02 Thread Guy
Maybe you should look at osgWidget which handles GUI elements. Guy. מאת: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] בשם Tanguy Fautre נשלח: Thursday, April 02, 2009 2:27 PM אל: OpenSceneGraph Users נושא:

Re: [osg-users] Depth buffer data is not clamp to [0.0,1.0].

2009-04-02 Thread YangXiao
Thanks ulrich I paste this code from others,and not check! --- 09年4月2日,周四, Ulrich Hertlein 写道: 发件人: Ulrich Hertlein 主题: Re: [osg-users] Depth buffer data is not clamp to [0.0,1.0]. 收件人: "OpenSceneGraph Users" 日期: 2009年4月2日,周四,下午5:14 Hi YangXiao, On 2/4/09 3:22 PM, YangXiao wrote: > z = flo

Re: [osg-users] Controlling the rendering order

2009-04-02 Thread Tanguy Fautre
Hi Robert, Do you suggest I create an additional bin type (e.g. GUI_ELEMENT_BIN) in addition to OPAQUE_BIN and TRANSPARENT_BIN, and write my own sort algorithm for those (i.e. render in the same order children appears in) ? Would it be relatively easy to do so? The thing is I'm quite ha

Re: [osg-users] Controlling the rendering order

2009-04-02 Thread Robert Osfield
Hi Tanguy, The OSG sorts the objects in opaque bin to minimize state changes, this is crucial for performance - it's a pretty fundamental part to efficient rendering and standard practice in high performance graphics toolkts.. This does mean the ordering changes. You have complete control over t

Re: [osg-users] Running OSG app across multiple GPUs (windows)

2009-04-02 Thread Robert Osfield
Hi Endre, Just to be clear, do you have your app running across all displays right now? Is it just the subloading that isn't working? W.r.t subloading, this the unknown variable that makes it difficult to comment on. The best I can say is that osg::Texture* maintains a seperate OpenGL texture

[osg-users] Controlling the rendering order

2009-04-02 Thread Tanguy Fautre
Hi, When doing GUI elements in OpenGL, it's particularly useful to exactly control the rendering order. Usually, this goes like this: glDepthMask(0); glDisable(GL_DEPTH_TEST); glDisable(GL_LIGHTING); glEnable(GL_BLEND); /* Render GUI back to front */

[osg-users] Running OSG app across multiple GPUs (windows)

2009-04-02 Thread Endre Lidal
Hi all! I'm searching for information on how OSG behaves and possible should be setup in my application when running on a multi-display (4 monitors) in a multi GPU (2 graphics cards) PC running Windows XP. I'm using OSG 2.6.1. I have searched the forum/mailing lists and available documentation,

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

2009-04-02 Thread Adrien Joly
Hi, I'm kind of newbie in 3D developpment and in openSceneGraph. I want to rotate a node using PositionAttitudeTransform::setAttitude but I don't know how to do that. I've tried to make it rotate according ti the fact that x, y and z of the Quat is the coordinate of the vector from the origin

[osg-users] Minimizing OSG app window frees memory

2009-04-02 Thread Miro Janosik
Hi, I was wondering why my OSG application frees lots of memory when I minimize its window, and why that memory is not freed if I don't. I noticed that when I create some objects in the scene by loading flt model files and remove them from scene afterwards that not all memory is freed (when looking

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

2009-04-02 Thread Max
Hi all, I've a question about the interpolation (I guess) computed to set the texture coordinates given each vertex's one (is that sentence correct?). It seems the interpolation (or whatever) is done considering the polygon as a triangle fan. As my coordinates don't perfectly match, the resu

[osg-users] Multisample Coverage in FBO

2009-04-02 Thread Rick Appleton
Hi, I'm looking into using Multisampled Coverage in FBOs in our application, and I've run into an interesting snafu. According to the extension specification coverage_samples cannot be larger than color_samples. This is enforced in OSG in two places: osgUtil/RenderStage.cpp(352) and osg/FrameB

Re: [osg-users] Depth buffer data is not clamp to [0.0,1.0].

2009-04-02 Thread Ulrich Hertlein
Hi YangXiao, On 2/4/09 3:22 PM, YangXiao wrote: z = float ( (depthBuffer->data())[i*4] ); Could it be your cast is wrong? You're only reading every fourth byte and casting that to float, which explains why you're only seeing 0-255. Try "z = ((float*) depthBuffer->data())[i];" instead. /ul

Re: [osg-users] [osgPlugins] osgmovie problem

2009-04-02 Thread salvatore
my graphics card is a ati radeon x1600 512mb, I see the movie that has a resolution of 1400 x 1050, attaching a photo with the problem[/url] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=9607#9607 <>_

Re: [osg-users] osgmovie problem

2009-04-02 Thread Lingyun Yu
I also updated my driver to the newest. it is still the same. my quicktime version is 7.3. Is it too old? On Thu, Apr 2, 2009 at 1:57 AM, Ulrich Hertlein wrote: > On 2/4/09 5:32 AM, Lingyun Yu wrote: > >> another warning >> >> TextureRectangle::apply(..) failed, texture rectangle is not support

Re: [osg-users] [osgPlugins] osgmovie problem

2009-04-02 Thread Ümit Uzun
Hi Salvatore; May be it could be general answer but it might be related about your graphic card. Sometimes streamed movie can't texture about the texturing way. As default osgmovie uses textureRectangle to show movie, try using Texture2D (osgmovie --texture2D xxx.mov). Hope this helps. Regards.

Re: [osg-users] Problem with OSG 2.8 binaries download

2009-04-02 Thread Robert Osfield
Hi Yurii, I'm pretty sure that this directory was originally accessible, so I'll ping the system admin to see what might be up. Robert. On Wed, Apr 1, 2009 at 7:58 PM, Monakov Yurii wrote: > Hi, > > I can not downlod any prebuild binaries from > http://www.openscenegraph.org/projects/osg/wiki

Re: [osg-users] testing for multisampling capability

2009-04-02 Thread Robert Osfield
Hi Peter, OpenGL doesn't provide any capability query system without first opening a graphics context... which means the OSG can't provide anything similar. The only way I know of doing what you want is to set up the GraphicsContext::Traits for what you want, then try to create the GraphicsWindow/

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Mattias Helsing
Hi Martin, Jose-Luis Hidalgo On Wed, Apr 1, 2009 at 10:55 PM, Martin Beckett wrote: > A user on general pointed out that the windows binary links on > http://www.openscenegraph.org/projects/osg/wiki/Downloads > point to the directory not the file and they can't access them. I noticed. I can't br

Re: [osg-users] [osgPlugins] osgmovie problem

2009-04-02 Thread salvatore
hi, excuse my English is not the best. I have a quicktime movie of it and when I view with osgmovie you see a line at the top of the screen and the movie is delayed -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=9601#9601 _

Re: [osg-users] [build] Windows binary download

2009-04-02 Thread Юрий Монаков
Try googling "downloads/stable_releases/OpenSceneGraph-2.8/binaries/Windows/VisualStudio9" and get the directory list from Google cache. You don't have permission to access whole direcory, but links to files work perfectly. ___ osg-users mailing list osg

Re: [osg-users] [osgPlugins] osgmovie problem

2009-04-02 Thread Ümit Uzun
Hi Salvatore, Actually I can't understand what you mean. Please refer your problem in much understandable sentence. Regards. 2009/4/1 salvatore > hello to all, > I have a problem: osgmovie use to see a movie. mov but I see a shift in the > top of the movie screen, you can help me? > Thank you

Re: [osg-users] Object oriented coding

2009-04-02 Thread Roland Smeenk
Hello Tomas, I moderated the forum posts to hide your real name and e-mail address. However it is appreciated if you make your real name visible or at least sign your post with your name. Note that all forum posts also end up on the osg-users mailing list and therefore in the mailing list arc