Re: [osg-users] OSG 3.4 + FFmpeg
Hi Sam, if you don't have a pre-built libraries than you can choose the FFmpeg version you like since you have to build them on your own. With OSG 3.4 now I build ffmpeg 3.0.2. Cheers, Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69413#69413 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] calculating area of the 3d model.
Hi, Thanks for the reply robert and sebastain :) ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69412#69412 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgQT - Windows 10 pthread.h - not found
Here is a hacked solution, I am not sure if threads are even needed, there seems to be a few hangovers from the original osg CMakeLists... Code: # This should set CMAKE_USE_WIN32_THREADS_INIT = 1 if the CMAKE_SYSTEM = "Windows"... # FIND_PACKAGE(Threads) # However it doesn't even though we are Windows... message("CMAKE_SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}") # and tries to find pthread.h... # So we will just do it ourselves... IF(CMAKE_SYSTEM MATCHES "Windows") SET(CMAKE_USE_WIN32_THREADS_INIT 1) ENDIF(CMAKE_SYSTEM MATCHES "Windows") # and viola we have done what FIND_PACKAGE(Threads) failed to do... message("CMAKE_USE_WIN32_THREADS_INIT: ${CMAKE_USE_WIN32_THREADS_INIT}") Should FIND_PACKAGE(Threads) not be there at all? I also get an error with Find3rdPartyDependencies but gather that is not needed either? Code: # 3rd Party Dependency Stuff # paulmc IF(WIN32) # paulmcINCLUDE(Find3rdPartyDependencies) # paulmc ENDIF() I am now at the point of building but getting... Code: C:\Users\internetscooter\xyaz\osgQt\build\PlatformSpecifics\Windows\OpenSceneGraphVersionInfo.rc(2): error RC2127: version WORDs separated by commas expected Cheers, Paul -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69411#69411 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgQT - Windows 10 pthread.h - not found
Hi All, I am trying to get the new osgQT (https://github.com/openscenegraph/osgQt) building but I am having trouble with threading on Windows Code: Looking for pthread.h Looking for pthread.h - not found Found Threads: TRUE Found OpenGL: opengl32 CMake Error at CMakeLists.txt:452 (INCLUDE): include could not find load file: Find3rdPartyDependencies Configuring incomplete, errors occurred! I tried adding the CMAKE_USE_WIN32_THREADS_INIT directive that is used elsewhere in osg with no luck.. Code: # Okay, here's the problem: On some platforms, linking against OpenThreads # is not enough and explicit linking to the underlying thread library # is also required (e.g. FreeBSD). But OpenThreads may be built with different # backends (Pthreads, Sproc, Windows) so we don't know what the underlying # thread library is because some platforms support multiple backends (e.g. # IRIX supports Sproc and Pthreads). Linking all libraries won't work # because the libraries may be incompatible. # So the current solution is to attempt best guess linking and exempt certain # cases. With IRIX, we're going to hope explicit linking to the underlying # library is not necessary. We currently don't case for pthreads on Windows # which might be an issue on things like Cygwin. This may need to be fixed. # I added this IF(CMAKE_SYSTEM MATCHES "Windows") SET(CMAKE_USE_WIN32_THREADS_INIT 1) ENDIF(CMAKE_SYSTEM MATCHES "Windows") FIND_PACKAGE(Threads) Has anyone worked around this issue yet? Cheers, Paul -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69410#69410 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Feedback/guidance sought on move of osgQt out into it's own project/repository
thanks for the reply - I will give it a go with the geenral list and use osgQT in the subject line to make it easy to see. Cheers, Paul -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69409#69409 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] OSG 3.4 + FFmpeg
Hi Guys, What was the version of FFmpeg that OSG 3.4 was developed against? Thanks, Sam ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Fwd: Unstable passive stereo on Quadro using Quadbuffer
On 16/11/16 01:06, ZJ Tian wrote: > Hi, Voerman, > > Glad to hear your idea. > > I previously made a mistake to assume that there is an automatic frame > synchronization between the video card and the monitor. Now it appears not. > > I think it do will work by using the monitor's SDK. > Thanks for your reminder. > You may not need the SDK initialization (depends on how the display handles the stereo signal), but at the very least you need the synchronization cable. Without that it won't work properly. J. signature.asc Description: OpenPGP digital signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] help for warping
Warping done with MVP matrix, thanks anyway. Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69406#69406 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to implement pagedLOD without reading from files?
Hi Werner, There isn't any need to put ReaderWriter's in plugins as the osgDB::ReaderWriter architecture has been designed to allow them to be placed in plugins on just directly in applications. All you need to do is include the custom ReaderWiter's soure file into your application and then register an instance of it using the REGISTER_OSGPLUGIN(..) macro to create the required proxy object that will register an instance of your ReaderWriter with osgDB::Registry. Robert. On 16 November 2016 at 15:51, Werner Modenbachwrote: > Hi Robert, > > I think I have all the coding done and in my opinion it should work. > But it doesn't and I figured out why. > When using osgDB with my own ReaderWriter it automatically uses the > dynamic load feature and the ReaderWriter is expected to be a dll in the > plugins folder. > Unfortunately my ReaderWriter is very much depending on many classes I have > in my > project and also has dependencies to Qt. > Creating such a dll would be a complete overkill of link dependencies. > Is there any way avoiding the dynamic load mechanism and using an instance > of a > class being part of my static libs? > > Thanks in advance for any hints. > > - Werner - > > Am 11.11.2016 um 12:47 schrieb Robert Osfield: > > Hi Wener, > > On 11 November 2016 at 11:32, Werner Modenbach > wrote: > > just one more small question. > As to my understanding the ReaderWriter classes are instantiated > automatically > according to the "file extensions". So I get no hands on the instances of > the reader. > How can I give the reader class a reference to my data structures? > > You can pass data into a plugin via the osgDB::Options object that you > can pass along with the string used for the filename. The Options > object can store user data as well be subclassed. > > Robert. > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > -- > TEXION Software Solutions, Rotter Bruch 26a, D-52068 Aachen > Phone: +49 241 475757-0 > Fax: +49 241 475757-29 > Web: http://texion.eu > eMail: i...@texion.eu > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to implement pagedLOD without reading from files?
Hi Werner, I think you may try using osg::Registry::instance()->addReaderWriter( YourReaderWriterInstance ) to add your own localy defined RW. Your RW will need to override supportedExtensions() and/or acceptsExtension() virtual methods. But I guess you must have already done that Cheers, Wojtek 2016-11-16 16:51 GMT+01:00 Werner Modenbach: > Hi Robert, > > I think I have all the coding done and in my opinion it should work. > But it doesn't and I figured out why. > When using osgDB with my own ReaderWriter it automatically uses the > dynamic load feature and the ReaderWriter is expected to be a dll in the > plugins folder. > Unfortunately my ReaderWriter is very much depending on many classes I > have in my > project and also has dependencies to Qt. > Creating such a dll would be a complete overkill of link dependencies. > Is there any way avoiding the dynamic load mechanism and using an instance > of a > class being part of my static libs? > > Thanks in advance for any hints. > > - Werner - > > Am 11.11.2016 um 12:47 schrieb Robert Osfield: > > Hi Wener, > > On 11 November 2016 at 11:32, Werner Modenbach > wrote: > > just one more small question. > As to my understanding the ReaderWriter classes are instantiated > automatically > according to the "file extensions". So I get no hands on the instances of > the reader. > How can I give the reader class a reference to my data structures? > > You can pass data into a plugin via the osgDB::Options object that you > can pass along with the string used for the filename. The Options > object can store user data as well be subclassed. > > Robert. > ___ > osg-users mailing > listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > -- > *TEXION Software Solutions*, Rotter Bruch 26a, D-52068 Aachen > Phone: +49 241 475757-0 > Fax: +49 241 475757-29 > Web: http://texion.eu > eMail: i...@texion.eu > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to implement pagedLOD without reading from files?
Hi Robert, I think I have all the coding done and in my opinion it should work. But it doesn't and I figured out why. When using osgDB with my own ReaderWriter it automatically uses the dynamic load feature and the ReaderWriter is expected to be a dll in the plugins folder. Unfortunately my ReaderWriter is very much depending on many classes I have in my project and also has dependencies to Qt. Creating such a dll would be a complete overkill of link dependencies. Is there any way avoiding the dynamic load mechanism and using an instance of a class being part of my static libs? Thanks in advance for any hints. - Werner - Am 11.11.2016 um 12:47 schrieb Robert Osfield: > Hi Wener, > > On 11 November 2016 at 11:32, Werner Modenbach >wrote: >> just one more small question. >> As to my understanding the ReaderWriter classes are instantiated >> automatically >> according to the "file extensions". So I get no hands on the instances of >> the reader. >> How can I give the reader class a reference to my data structures? > You can pass data into a plugin via the osgDB::Options object that you > can pass along with the string used for the filename. The Options > object can store user data as well be subclassed. > > Robert. > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- *TEXION Software Solutions*, Rotter Bruch 26a, D-52068 Aachen Phone: +49 241 475757-0 Fax: +49 241 475757-29 Web: http://texion.eu eMail: i...@texion.eu ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] calculating area of the 3d model.
On 16 November 2016 at 13:21, Uma Devi Selvarajwrote: > I need to calculate area , perimeter & volume of a selected part or area > in 3d model. For example after rendering 3d model, if I select some > area(cloased area) , say point1 point2 point3. Point1 connected to point2 > point2 to point3, point3 connected to point1. Is it possible to do it with > the help of OSG.? The OSG has basic vector maths code that can help with the low level calculations but there no utility that provides the functionality you are after - it's very niche application specific task you are after not appropriate for a general purpose scene graph. You'll need to work out how to build each of the components necessary yourself, it's very much as task in the domain of your application. I'm afraid this is not an trivial task, it's not something I'd expect a developer new to scene graphs and vector maths to try and tackle so you may have a steep learning curve ahead if you want to tackle it yourself. Much of this learning isn't OSG specific, the OSG is only relevant to storage of data, computation of what parts of the scene graph are relevant and the maths you want to use will all be down to you and tailored to your applications needs. >And how can I get longitude,latitude and altitude for the points(say > point1).? Is there any example for this.? So that it can be helpful for me. The way you typically do this type of task is to transform local vertices of geometries into world coordinates which is typically. ECEF (Earth Center Earth Fixed) for whole earth databases, then use the osg::ElipsoidModel to compute the world coords into lats and longs. I don't recall any specific example code that does this. the headers to EllispodModel has all that you need at the low level of the conversion. > Do I need to build any other OSG application for this task.? Where does the > longitude,latitude and altitude informations are stored in 3d models > (.3ds,.osg,.osgt)? Lat, long and altitude are not generally stored in subgraphs of a scene graph, instead the subgraphs have their own local coordinate frames or may be stored in world coodinates. The only place where lat,longs and altitude come in are implicitly via the EllipsoidModel attached to a CoordinateSystemNode that can be used to decorate a scene graph. Typically only whole earth models will have CoordinateSystemNode. You always have to compute the lat, long and altitude for individual points on demand as they aren't stored, only the local/word coordinates are stored in the scene graph. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] calculating area of the 3d model.
Hi Uma Hi all, I would like to know some information. I need to calculate area , perimeter & volume of a selected part or area in 3d model. For example after rendering 3d model, if I select some area(cloased area) , say point1 point2 point3. Point1 connected to point2 point2 to point3, point3 connected to point1. Is it possible to do it with the help of OSG.? There might be some helper functions, but basically perimeter and area need some adjacency information, so I guess you need to do some additional work. And how can I get longitude,latitude and altitude for the points(say point1).? Is there any example for this.? So that it can be helpful for me. That doesn't make sense really if your "points" are not ECEF. Basically you can use the osg::CoordinateSystemNode and the projection to convert geographic and geocentric coordinates. In order to transform a local mesh to a specific lat-lon position you need to orient the model at the local tangent plane (you can get the matrix from the CoordinateSystemNode (set up with the ellipsoidmodell): osg::CoordinateSystemNode* csn = new osg::CoordinateSystemNode(); csn->setEllipsoidModel(new osg::EllipsoidModel()); osg::Matrixd local_frame = csn->computeLocalCoordinateFrame(position); For orientation simply rotate your model by the local_frame, where the position is ECEF. You can obtain an ECEF-position relative to the chosen Ellipsoid by using the Ellipsoid::computeLocalToWorldTransformFromLatLongHeight function. Do I need to build any other OSG application for this task.? Where does the longitude,latitude and altitude informations are stored in 3d models (.3ds,.osg,.osgt)? There is no fixed coordinate system in the files/OSG. The coordinates are simply numbers in an (orthonormal) coordinate frame. So it is up to you to interpret them as being angles, meters, microfortnights or whatever. Cheers Sebastian ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69400#69400 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] calculating area of the 3d model.
Hi all, I would like to know some information. I need to calculate area , perimeter & volume of a selected part or area in 3d model. For example after rendering 3d model, if I select some area(cloased area) , say point1 point2 point3. Point1 connected to point2 point2 to point3, point3 connected to point1. Is it possible to do it with the help of OSG.? And how can I get longitude,latitude and altitude for the points(say point1).? Is there any example for this.? So that it can be helpful for me. Do I need to build any other OSG application for this task.? Where does the longitude,latitude and altitude informations are stored in 3d models (.3ds,.osg,.osgt)? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69400#69400 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ECEF Oriented Compass Implementation
Hi Robert, On 16 November 2016 at 11:50, Rambabu Repakawrote: Hi,I got the answer for my question.In the compass node creation sample code two errors are there. First one: replace Compass(); with compass(void) { } second one: Replace virtual ~Compass() with Compass::~Compass(void) { } Neither of the above are an error, it's perfectly correct and legal C++ to not use void. The OSG uses constructors and destructor’s without void and doesn't have a problem with users linking to it. There must be something odd about your particular compile set up or how you've tweaked the code. As you've not provided any information about compilers or linking there is no way others can actually tell you want the actual problem is. He was simply missing the implementation of the constructor and destructor, that what caused his linker-errors. @Rambabu: This is basic C++-knowledge and I second Robert here: Please try to learn the basics first and learn how to ask questions. This will increase the likelihood of someone actually take care about it. Cheers Sebastian Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ECEF Oriented Compass Implementation
On 16 November 2016 at 11:50, Rambabu Repakawrote: > Hi,I got the answer for my question.In the compass node creation sample code > two errors are there. > > First one: replace Compass(); with > compass(void) > { > } > second one: Replace virtual ~Compass() with > Compass::~Compass(void) > { > } Neither of the above are an error, it's perfectly correct and legal C++ to not use void. The OSG uses constructors and destructor’s without void and doesn't have a problem with users linking to it. There must be something odd about your particular compile set up or how you've tweaked the code. As you've not provided any information about compilers or linking there is no way others can actually tell you want the actual problem is. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG depth peeling and multisampling
Hi Peter, Thank you Sebastian for the information. It seems to be over my capabilities but I will try to make some research in this area. Thank you once more. If you need professional assistance with this, drop me a line. For a small fee I can offer my experience in the field. Cheers Sebastian -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69389#69389 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ECEF Oriented Compass Implementation
Hi,I got the answer for my question.In the compass node creation sample code two errors are there. First one: replace Compass(); with compass(void) { } second one: Replace virtual ~Compass() with Compass::~Compass(void) { } ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69395#69395 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ECEF Oriented Compass Implementation
On 16 November 2016 at 11:09, Rambabu Repakawrote: > Hi,In Osg3_Cookbook.pdf implementing a compass node example page number > 74.Problem in compass class linking. Another tiny bit of info. You should have mentioned this info right in your first post - give other people context to what you are doing. Personally I'm not familiar with the Osg3_Cookbook. Still you are failing to provide crucial information about the problem you have. You have once mentioned the specific linker error you see. This is crucial. You also completely failed to mention what platform and compiler you are using? You also failed to mentioned anything about how you are compiling the libs and linking. So many failures to communicate crucial information. This is pretty appalling. You have to get far better at communicating the context of your problems if you want help. Please start making a proper effort in trying to convey relevant information. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ECEF Oriented Compass Implementation
Hi, all. Source file and header in archive. To use a class a compass: osg::ref_ptr node = osgDB::readNodeFile("arrow.osgb"); // any node looking to the north if(node.valid()) { node->getOrCreateStateSet()->setMode( GL_LIGHTING, osg::StateAttribute::OFF ); } osg::ref_ptr pos = new osg::PositionAttitudeTransform; pos->addChild(node.get()); pos->setScale(osg::Vec3(0.6,0.6,0.6)); osg::ref_ptr compass = new Compass; compass->setViewport( 0.0, 0.0, 100.0, 100.0 ); compass->setProjectionMatrix( osg::Matrixd::identity() ); compass->setNeedle( pos.get() ); compass->setMainCamera( VIEWER->getCamera() ); compass->setRenderOrder( osg::Camera::POST_RENDER ); compass->setClearMask( GL_DEPTH_BUFFER_BIT ); compass->setAllowEventFocus( false ); compass->setReferenceFrame( osg::Transform::ABSOLUTE_RF ); compass->getOrCreateStateSet()->setMode( GL_LIGHTING, osg::StateAttribute::OFF ); compass->getOrCreateStateSet()->setMode( GL_BLEND, osg::StateAttribute::ON ); root->addChild( compass.get() ); Good luck! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69393#69393 Compass.7z Description: Binary data ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ECEF Oriented Compass Implementation
Hi,In Osg3_Cookbook.pdf implementing a compass node example page number 74.Problem in compass class linking. ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69392#69392 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ECEF Oriented Compass Implementation
On 16 November 2016 at 10:43, Rambabu Repakawrote: > compass class created but it is showing linker errors due to missing of > library.How can i get that library file in osg. Still not enough information. The code itself isn't likely to be the issue so there little point in posting it. PLEASE make the effort to think about what information other people might need to be able to help. If you have colleagues then chat with them about what this might be. I feel it's really important that you fix this problem with your posts, you keep doing the same thing - just blurting out a call for help but not providing any clues. Remember that people in the community don't sit over your shoulder, we know *nothing* about what you are doing on your computer. To understand what the problem is for us think about this question. "I have piece of string, how long is it?" No if you can't answer that without asking for more information then you'll understand what we are faced with each time you post your calls for help. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ECEF Oriented Compass Implementation
Hi, class Compass : public osg::Camera { public: Compass(); Compass( const Compass& copy, osg::CopyOp copyop=osg::CopyOp::SHALLOW_COPY ); META_Node( osg, Compass ); void setPlate( osg::MatrixTransform* plate ) {_plateTransform = plate; } void setNeedle( osg::MatrixTransform* needle ) {_needleTransform = needle; } void setMainCamera( osg::Camera* camera ) {_mainCamera = camera; } virtual void traverse( osg::NodeVisitor& nv ); protected: virtual ~Compass(); osg::ref_ptr _plateTransform; osg::ref_ptr _needleTransform; osg::observer_ptr _mainCamera; }; Compass::Compass( const Compass& copy, osg::CopyOp copyop ):osg::Camera(copy, copyop), _plateTransform(copy._plateTransform), _needleTransform(copy._needleTransform), _mainCamera(copy._mainCamera) { } void Compass::traverse( osg::NodeVisitor& nv ) { if ( _mainCamera.valid() &()==osg::NodeVisitor::CULL_VISITOR ) { osg::Matrix matrix = _mainCamera->getViewMatrix(); matrix.setTrans( osg::Vec3() ); osg::Vec3 northVec = osg::Z_AXIS * matrix; northVec.z() = 0.0f; northVec.normalize(); osg::Vec3 axis = osg::Y_AXIS ^ northVec; float angle = atan2(axis.length(), osg::Y_AXIS*northVec);axis.normalize(); if ( _plateTransform.valid() ) _plateTransform->setMatrix( osg::Matrix::rotate(angle, axis) ); } _plateTransform->accept( nv ); _needleTransform->accept( nv ); osg::Camera::traverse( nv ); } compass class created but it is showing linker errors due to missing of library.How can i get that library file in osg. ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69390#69390 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG depth peeling and multisampling
Thank you Sebastian for the information. It seems to be over my capabilities but I will try to make some research in this area. Thank you once more. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69389#69389 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ECEF Oriented Compass Implementation
HI Rambabu, On 16 November 2016 at 09:57, Rambabu Repakawrote: > Hi,Iam working with compass creation Linker errors are coming asking the > compass library file.How can i solve this can anyone tell. You really need to put more effort in asking questions in a way that others might have a chance to understand what your specific problem. The above *completely* fails in this respect. The only way to have a chance at helping your with the issues are at hand are to start asking your questions, we shouldn't have to do this, you should provide the information we need, doing so will take far less time for us and yourself. Rather than one by one ask these questions I suggest you read your post, work out what other people might or might not know about your specific set up and then tell us this information so we can build a clearer picture of what you actually mean. If you have colleagues get them to read your post before you post it so they can give you suggests about what is missing. Also considering that perhaps this issue might not be an OSG issue at all, perhaps you should start looking elsewhere for answers to none OSG issues. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ECEF Oriented Compass Implementation
Hi,Iam working with compass creation Linker errors are coming asking the compass library file.How can i solve this can anyone tell. ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69385#69385 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG depth peeling and multisampling
Hi Peter, The simple depth peeling is most likely to be incompatible with multisampling as is. In order to make it work, you most probably need to set up your FBOs with multisampling enabled and adjust the shaders to use per-sample evaluation. Quite possible that you need to do a depth/color-resolve pass at some point to produce the final image/depth buffer. Basically deferred-shading with multisampling might provide some implementation details on how to set-up the buffers, samplers, textures and how to use per-sample evaluation. Cheers Sebastian No idea anyone? Thanks in forward -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69383#69383 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG depth peeling and multisampling
No idea anyone? Thanks in forward -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69383#69383 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org