Re: [osg-users] Creating an OpenGL debug context

2021-03-25 Thread Voerman, L.
Not exactly what you're asking for, but this is extracted from my code: Laurens. #ifdef OPENGL_DEBUG void APIENTRY DebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * message, const void* userParam) { printf("0x % X: %s\n", id, message); }

Re: [osg-users] OSG installation in windows 10

2021-02-19 Thread Voerman, L.
Hi Yeshwanth, from your screenshot we can see that cmake found zlib, but the import library it found (c:\Users\Yeshwanth\Anaconda3\Library\lib\z.lib) is an x86 library. (Probably the same for curl) As you are compiling x64 you need the x64 versions of the *.lib files. CMake doesn't check this, it

Re: [osg-users] How to achieve osg::Texture2D rotation 180?

2021-01-19 Thread Voerman, L.
This should do a 180 rotation: image->flipVertical(); image->flipHorizontal(); Laurens. On Tue, Jan 19, 2021 at 1:21 PM mirr...@gmail.com wrote: > win10 gtx1080 osg3.6.4 > > osg::ref_ptr image = > osgDB::readImageFile( "picture.bmp" ); > osg::ref_ptr texture = new osg::Texture2D; >

Re: [osg-users] OpenSceneGraph-3.6.5 release candidate 1 tagged, please test

2020-01-15 Thread Voerman, L.
Hi Robert, All seems fine to me, using windows 10 Enterprise 1909 18363,592 Visual Studio 15.9.19 CMake 3.15.5 Regards, Laurens. On Wed, Jan 15, 2020 at 2:24 PM Robert Osfield wrote: > > On Wednesday, 15 January 2020 13:15:27 UTC, Paul Leopard wrote: >> >> My comment was made with regard to

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-15 Thread Voerman, L.
Hi Tom, Your model works with texture for me, in osg 3.4.0 as well as 3.6.5 with the following commands: sed -E "s#(f [0-9]+/[0-9]+)/0 ([0-9]+/[0-9]+)/0 ([0-9]+/[0-9]+)/0#\1 \2 \3#" "Data2.obj" > noNormals.obj osgviewer -O noRotation noNormals.obj Laurens. On Wed, Jan 15, 2020 at 12:24 PM 'Tom

Re: [osg-users] Imported .obj file not showing textures.

2020-01-15 Thread Voerman, L.
Hi Jiljith, I see no problem in your code, and it works when I add it to my osgviewer. with OSG_NOTIFY_LEVEL=NOTICE it generates 2 messages: Obj Found map in options, [DIFFUSE]=0 Scaling image 'D:\laurens\Download\objDog/Dog_diffuse.jpg' from (450,450) to (512,512) I suggest you can convert your

Re: [osg-users] Imported .obj file not showing textures.

2020-01-14 Thread Voerman, L.
To answer my own question, not that I've joint the google group my replies by e-mail to osg-users@lists.openscenegraph.org show up in the google group as well Laurens. On Tue, Jan 14, 2020 at 2:45 PM Voerman, L. wrote: > Hi Robert, > It did work, a mail from me to osg

Re: [osg-users] Imported .obj file not showing textures.

2020-01-14 Thread Voerman, L.
Hi Robert, It did work, a mail from me to osg-users@lists.openscenegraph.org on 11 november 2019 is on groups.google.com, a post on 9 january is not. Maybe this email will show up on google groups now that I've joined the group? Laurens. On Tue, Jan 14, 2020 at 2:21 PM Robert Osfield wrote: >

Re: [osg-users] Imported .obj file not showing textures.

2020-01-14 Thread Voerman, L.
H Jiljith, The material has both an ambient and a diffuse texture (both refer to the same file) while this can be made to work with a shader, using the fixed function pipeline means you'll have to choose one: osgviewer -O DIFFUSE=0 12228_Dog_v1_L2.obj Laurens. On Tue, Jan 14, 2020 at 10:53 AM

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-13 Thread Voerman, L.
Hi Tom, I think your obj file is invalid, as the faces all reference normal "0" and 1> no normals are provided 2> normal indices start at 1 (according to wikipedia ) if I reduce your obj file to just the first face (removing

Re: [osg-users] Force osgDB::readNodeFile to not return cached model

2019-11-11 Thread Voerman, L.
Hi Brad, I think your code should work, but instead of disabling the cache you can clone only the parts you need: osg::ref_ptr newNode = dynamic_cast(oldNode->clone(osg::CopyOp::DEEP_COPY_NODES)); Assuming the rotating is done on a Transform node, this will let you share all geometry and

Re: [osg-users] [vpb] Untextured LODs in result

2019-10-23 Thread Voerman, L.
Hi Brad, it seems to me your (low-res) black pixels are interpreted as a NoData value. Maybe this can be made to work for you? Laurens. On Wed, Oct 23, 2019 at 1:35 AM Brad Colbert wrote: > Found (fixed) the issue. The

Re: [osg-users] To run this Examples osgdeferred , where to download this osgdeferred about Data Resources ?

2019-10-23 Thread Voerman, L.
These files are hidden in a directory called "Images" in OpenScenegraph-Data. Laurens. On Wed, Oct 23, 2019 at 7:51 AM Mirro Xu wrote: > > d_a_heitbrink wrote: > > They are kept in a separate repo: > > https://github.com/openscenegraph/OpenSceneGraph-Data > > > > Do keep in mind the license for

Re: [osg-users] Updating a PositionAttitudeTransform node from another PositionAttitudeTransform node

2019-10-09 Thread Voerman, L.
I'm not sure what you are trying to accomplish, maybe a custom osg::Node::ComputeBoundingSphereCallback can help; osg::Node::setComputeBoundingSphereCallback(cb) will call a custom callback when a node or it's children changes. Laurens. On Wed, Oct 9, 2019 at 3:41 PM Dan johansson wrote: > Hi!

Re: [osg-users] Updating a PositionAttitudeTransform node from another PositionAttitudeTransform node

2019-10-09 Thread Voerman, L.
Hi Dan, I think your expectations are off. pose2 gets the postition from the node2 matrix, not the world postition. to retrieve the world position you need to have a nodepath, so you can call osg::computeLocalToWorld( fullNodePath ); In your case this might be just the product for the node1 matix

Re: [osg-users] R: R: multiple matrix transfromations cause severe slowness in performance

2019-10-09 Thread Voerman, L.
Maybe the datavariance on your drawables is not set to static? Laurens. On Wed, Oct 9, 2019 at 9:27 AM Gianluca Natale wrote: > Hi Chris, > > first of all, thanks for helping. > > > > Each of those 200 objects is simply the shape of an arrow (basically a > cone and a cylinder), whose geometry

Re: [osg-users] multiple matrix transfromations cause severe slowness in performance

2019-10-08 Thread Voerman, L.
Hi Gianluca, I have a feeling something is wrong with your setup, as we do these sort of graphs in our viewer and get way higher framerates. I get about 60 fps rendering 1920x1080x2 (=red-green stereo) on my Geforce 1080, with a static scene of 1.1 M vertices (886k triangels) and in a similar

Re: [osg-users] How do I move a Texture in an model of Openflight format (.flt) in the UV direction?

2019-09-17 Thread Voerman, L.
Hi Dae, add _coord->dirty() after modification. Laurens. On Tue, Sep 17, 2019 at 3:16 AM Dae Woo Ryu wrote: > Hi, > > As shown in the code below, > I get the geometry information from the model of Openflight(.flt) format > and move the coordinates of the vertices. > But the texture doesn't

Re: [osg-users] [build] osgslice build failure on OSX

2019-09-11 Thread Voerman, L.
Hi Robert, The reference comes from include/osgViewer/GraphicsWindow near the end of the file: USE_GRAPICSWINDOW_IMPLEMENTATION(Carbon) I've created a pull request with a possible fix here ; however - I dont have an apple so I can't test

Re: [osg-users] GLSL plugin static linking issue (recent master branch)

2019-08-29 Thread Voerman, L.
Hi Andrew, the options should not influence the library loading, it's the datafiles that can be cached. I'm just guessing here, but are you trying to load a file named "filename.glsl"? that would match the problem you see. the glsl plugin is strange in that it does not support *.glsl files. rename

Re: [osg-users] OpenGL Error 'invalid value' when using osg::LineWidth

2019-06-27 Thread Voerman, L.
Hi Brett, if getHandle()->getLineWidth() returns 0 or a negative value that would explain all. Can you write out the problematic node to an osg file and see if the invalid value error occurs in the osgviewer as well? That would help to narrow down the options. Laurens. On Thu, Jun 27, 2019 at

Re: [osg-users] [build] Building with MinGW on Windows 10

2019-05-22 Thread Voerman, L.
You probably need to remove the exlusion of mingw32 on line 39 of D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp to get stat64 defined as _stati64 on windows. Try to remove the #if and the #endif line (38 & 40) and see if that compiles.

Re: [osg-users] Layered rendering with a geometry shader

2019-05-22 Thread Voerman, L.
Hi Chris, I work almost exclusively with nvidia hardware, but I remember having a similar problem, that turned out to be related to using triangle strips. Maybe you can work around by pushing the geometry trough the optimizer to break triangle strips into triangles? Laurens. On Mon, May 20, 2019

Re: [osg-users] Layered rendering with a geometry shader

2019-05-15 Thread Voerman, L.
Hi Chris, I did something similar a using multiple viewports, and created the osgshadermultiviewport example to preserve some of the work I did. It might be dependent on nvidia hardware (the extention strings suggest so). I do remember some discussion about layered framebuffer attachments, but

Re: [osg-users] Optimizer FLATTEN_STATIC_TRANSFORMS not all transforms are flattened

2019-04-25 Thread Voerman, L.
Hi Sergey, without example I can only guess what might go wrong, maybe you need FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS or some of the nodes have a name, nodemask or userdata or stateset. all of those could prevent the optimizer from removing the transform. I also had some trouble

Re: [osg-users] Different views hide/show different nodes shared scene graph

2019-04-17 Thread Voerman, L.
Seems like you want the nodemask on the drawables, as the mask on a group node stops the traversal. Laurens. On Wed, Apr 17, 2019 at 1:17 PM Catalin Flower wrote: > Hi, > > Does the node mask allow to continue with the the childrens if the current > node is masked out? I need to continue the

Re: [osg-users] Different views hide/show different nodes

2019-04-17 Thread Voerman, L.
Hi Catalin, the normal way to do this is with nodemasks. That way the picking can use te mask for the view you want to pick for. Laurens. On Wed, Apr 17, 2019 at 11:55 AM Catalin Flower wrote: > Hi, > > I have an old application using OpengGL and I am porting it to OSG. > I have one scene graph

Re: [osg-users] getTextureObjectManager not found

2019-03-15 Thread Voerman, L.
Hi Shane, maybe this can help you: //from State::setMaxTexturePoolSize(unsigned int size) osg::get(_contextID)->setMaxTexturePoolSize(size) I have no idea why you are doing this, as I don't know the Cookbook at all. So dropping the line and leave the default might be an option too. Laurens. On

Re: [osg-users] Deleting still referenced object

2019-01-17 Thread Voerman, L.
back{_ptr=??? } osg::ref_ptr > _numChildrenRequiringUpdateTraversal > _eventCallback{_ptr=??? } osg::ref_ptr > _numChildrenRequiringEventTraversal > _cullCallback {_ptr=??? } osg::ref_ptr > _cullingActive > _numChildre

Re: [osg-users] Deleting still referenced object

2019-01-17 Thread Voerman, L.
Hi Richard, I can't see how you can get a segfault on the line you indicate, so I guess the node is somehow corrupted and the segfault is somewhere in the copyOp. I can only guess at what might be going wrong there, but my first guess would be the DEEP_COPY_USERDATA. Laurens. On Thu, Jan 17, 2019

Re: [osg-users] Deleting still referenced object

2019-01-14 Thread Voerman, L.
Hi Richard, sorry to drop into the discussion so late, I think the problem is that you should call getRefFromObjectCache instead of getFromObjectCache available in osg versions above 3.3.4, this should close the gap where the refCount can touch zero. >From your stack trace the call seems to come

Re: [osg-users] [3rdparty] Missing 'png' image reader

2018-11-15 Thread Voerman, L.
just guessing here... osgdb_png has a dependency on libpng - and libpng is not in your PATH or app dir (windows) or LD_LIBRARY_PATH (*nix) Laurens. On Thu, Nov 15, 2018 at 11:41 AM michael kapelko wrote: > Hi. > > Give us CMake configuration output, that would help. > On Wed, 14 Nov 2018 at

Re: [osg-users] Render multiple PRE_RENDER cameras to FBO

2018-11-14 Thread Voerman, L.
Hi Ivar, Your call to Camera::attach is wrong, requesting anything other than 0 for multisampleSamples will cause the setup to fail. backgroundCamera->attach(osg::Camera::COLOR_BUFFER, tex.get(), 0, 0, false, 0, 0); sceneCamera->attach(osg::Camera::COLOR_BUFFER, tex.get(), 0, 0, false, 0, 0);

Re: [osg-users] [Help] OSG + ArKit: Problem converting coordinate system

2018-10-09 Thread Voerman, L.
Hi Rodrigo, I don't fully grasp your question, but i noticed that you say you want to swap axis while the matrix in ar_conv_values_change_120.jpeg has a last column in a different order than the first three. Laurens. On Tue,

Re: [osg-users] Latency

2018-10-08 Thread Voerman, L.
I suspect the cards are not running in sync, to get useful info out of the timing of viewer->frame() (in singlethreaded mode) you will have to add a glFinish() call. Only if you force the driver to block until the swapbuffers is actually done the timing info has meaning. Laurens. On Thu, Oct 4,

Re: [osg-users] Latency

2018-10-02 Thread Voerman, L.
Hi David, are your cards running in "quadro mosaic" mode or are they configured as independent cards? Our win7 machine is driving 6 channels from 2 cards for a cylindrical theatre, and have no problem running in full sync (stereo as well as monoscopic view). Laurens. On Mon, Oct 1, 2018 at 7:25

Re: [osg-users] issues compiling 3.0.1

2018-09-27 Thread Voerman, L.
Hi Lonni, Both were fixed in 2012 by replacing false with NULL. Regards, Laurens. Revision: 5743d30dc1614ce4ee809cbc96d1b09c3778c4c2 Author: Robert Osfield Date: 2/9/2012 4:54:13 PM Message: >From Olaf Flebbe, "there are two ocurrences where pointer to bool is mixed with bool. Fixes warnings on

Re: [osg-users] OpenSceneGraph-3.6.3 release candidate 2 tagged

2018-09-14 Thread Voerman, L.
re now seeing some > problems now transparency. > > Glenn Waldron / Pelican Mapping > > > On Thu, Sep 13, 2018 at 8:31 AM Voerman, L. wrote: > >> Hi Glenn, Robert, >> >> I used a constructed dds file with marked / differently colored mipmaps >> to test (attac

Re: [osg-users] OpenSceneGraph-3.6.3 release candidate 2 tagged

2018-09-13 Thread Voerman, L.
Hi Glenn, Robert, I used a constructed dds file with marked / differently colored mipmaps to test (attached) Laurens. On Thu, Sep 13, 2018 at 2:11 PM Glenn Waldron wrote: > Robert, > Looks like this issue is fixed thanks to the Voerman PR, but for posterity > I will clarify the reproduction

Re: [osg-users] Idea to implement a kind of 'rubber mode'

2018-09-13 Thread Voerman, L.
Hi Christoph, I can combine this with a scene that uses shaders without modification. If that's not working for you I don't understand why. Using the depth buffer to block further rendering will need the GL_DEPTH_TEST to be active, did that change for your shader/fixed scene? Laurens. On Thu, Sep

Re: [osg-users] Idea to implement a kind of 'rubber mode'

2018-09-13 Thread Voerman, L.
Hi Chris, > Will it work with more than one layer of red-frame-green-symbol objects? I don't fully understand your question. The renderBin numbers can force the render order of lots of "layers", but the invisible quad fills the depth buffer with zeros - so that will not really scale with a layer

Re: [osg-users] Idea to implement a kind of 'rubber mode'

2018-09-12 Thread Voerman, L.
Hi Christoph, I don't have a piece of source code that will create this file, I exported the basic shapes from 3dsmax and edited the file to set the renderbins, depth and colormask. Laurens. On Wed, Sep 12, 2018 at 1:50 PM Christoph Dohmen wrote: > Yes, Laurens, that's exactely what I was

Re: [osg-users] Idea to implement a kind of 'rubber mode'

2018-09-12 Thread Voerman, L.
Hi Christoph, attached is an osg file that does what I think you want, unzip and view with: "osgviewer cow.osg.0,-5,0.trans erasor.osg.10,10,10.scale" The osg file works by using a low (negative) render bin number to force the draw order, first renderbin -2 draws the erasor geometry and the

Re: [osg-users] setGLExtensionFuncPtr priority

2018-08-28 Thread Voerman, L.
Hi Robert, maybe this helps: glXGetProcAddressNeverReturnsNULL The text in the link states that the nvidia libGL does return NULL, but that is evidently not true anymore. I get a pointer for

Re: [osg-users] setGLExtensionFuncPtr priority

2018-08-28 Thread Voerman, L.
k on your plateform? > > This is exactly the type of behavior I can't stand from guys naming > themself "professionnal". > > > > Voerman, L. wrote: > > Hi Julien,on my windows system (win 10 / nvidia driver 388.13 / geforce > gtx 1080) > &g

Re: [osg-users] setGLExtensionFuncPtr priority

2018-08-27 Thread Voerman, L.
rmHandleui64 > -AFAIK osgbindless has never get problem under win32 so it's really a > driver bug > > > Voerman, L. wrote: > > Hi Julien, Robert,searching around I can find that ARB_bindless_texture ( > https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_bindless_tex

Re: [osg-users] setGLExtensionFuncPtr priority

2018-08-27 Thread Voerman, L.
Hi Julien, Robert, searching around I can find that ARB_bindless_texture and NV_bindless_texture are similar, but not the same, near

Re: [osg-users] Volume rendering issues...

2018-07-29 Thread Voerman, L.
Hi Tom, I was wondering if your call to setimage should have the width in the last argument. laurens ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] OsgMovie ffmpeg and audio (SDL2) - Audio seems to make video slower. Audio has hiccoughing

2018-06-12 Thread Voerman, L.
Hi Andrea, The ffmpeg version I was using did not have this problem, (ffmpeg-20160517-git-af3e944-win64-shared) but after updating to ffmpeg-4.0 I could hear and see the problem as well. I've tried ffmpeg versions 3.4.2 and 3.2 as well - still problems, found a binary version of 3.0 here

Re: [osg-users] [build] Can't build OSG 2.8.2 on CentOS 7.5

2018-06-12 Thread Voerman, L.
Hi Alexey, Can you explain what the actual problem is? Possibly also why you try to build a very old version? cmake ends with "Configuring done" so the next step would be "make" osg "make install" Laurens. On Tue, Jun 12, 2018 at 10:51 AM, Alexey Palagin wrote: > Hello. > I am trying to build

Re: [osg-users] OsgMovie ffmpeg and audio (SDL2) - Audio seems to make video slower. Audio has hiccoughing

2018-06-11 Thread Voerman, L.
Hi Andrea, To display the usage of the cpu cores in the task viewer you need to right click the cpu graph, select "Change graph to" and select "Logical Processors". >From "overall usage" we cannot see if that's one core at 100% and the rest near zero or something else. Laurens. On Mon, Jun 11,

Re: [osg-users] OsgMovie ffmpeg and audio (SDL2) - Audio seems to make video slower. Audio has hiccoughing

2018-06-11 Thread Voerman, L.
Hi Andrea, did you have a look at the load on the cpu cores? The slowdown seems to indicate a cpu core hitting 100% load. this link might help you further: http://forum.openscenegraph.org/viewtopic.php?p=72124#72124 Regards, Laurens. On Mon, Jun 11, 2018 at 4:36 PM, Andrea Martini wrote: > Hi

Re: [osg-users] VBO Bug with 3.6.1 and Normal Arrays

2018-06-11 Thread Voerman, L.
Hi Daniel, I don't understand why your modification to addPrimitiveSet() resolves your issue with the openflight plugin, as it's called before the proper array bindings have been set (src\osgPlugins\OpenFlight\GeometryRecords.cpp line 601) Can your problem be avoided by changing if

Re: [osg-users] OpenGL function does not return on Titan Xp

2018-06-11 Thread Voerman, L.
Hi Lionel, as this seems to be a driver issue, the operating system and driver version info would be useful to compare. Regards, Laurens. On Mon, Jun 11, 2018 at 3:01 PM, Lionel Lagarde wrote: > Hi, > > We have a set of products based on OSG that run well on common hardware. > > Recently a

Re: [osg-users] [forum] how can i static link to OSG

2018-06-11 Thread Voerman, L.
Hi Lee, you will need to link to the static libraries, and there will be quite a few. something like:

Re: [osg-users] On-screen Stats Display

2018-04-25 Thread Voerman, L.
Hi Chris, the calls you're looking for: #include // add the stats handler viewer.addEventHandler(new osgViewer::StatsHandler); This comes form the osgviewer source (applications/osgviewer/osgviewer.cpp) Laurens. On Wed, Apr 25, 2018 at 3:53 PM, Chris Baker wrote:

Re: [osg-users] [build] Building OpenSceneGraph-3.6.0 on Windows 10 with VS2017

2018-04-23 Thread Voerman, L.
Hi André, You seem to build your project without a definition of WIN32 - don't do that. you say - C/C++ -> Code Generation -> Runtime Library -> Multi-threaded Debug DLL (/MD) that does not exist. The debug switch is /MDd, when linking to the release libs (osg.lib;osgDB.lib,etc) use

Re: [osg-users] Memory problems in Windows/Visual Studio

2018-04-20 Thread Voerman, L.
I suspect you are mixing debug and release builds. Basic guess is that you build osg in release and are trying to run a debug build of your main application. Try a release or RelWithDebinfo build. Regards, Laurens. On Thu, Apr 19, 2018 at 9:33 PM, Mark Jablin

Re: [osg-users] [forum] How to get the normal of every triangle?

2018-04-19 Thread Voerman, L.
As the per primitive normal is not used by modern openGL, you probably will have to calculate it yourself from the triangle vertices: osg::Vec3 normal = (v1-v0)^(v2-v0); normal.normalize(); Laurens. ps. I found your mail in my spam folder, probably due to the domain of your mail

Re: [osg-users] Synchronizing with textures uploads.

2018-03-08 Thread Voerman, L.
Hi Altin, just a few remarks: you wrote: >Steeping through the code, It seems that uploading the image is done by applyTexImage_subload() called from within >TextureRectangle::apply(state) called from a GraphicsThread. And this operation is triggered by renderingTraversals(). It just doesn't

Re: [osg-users] set cullface mode in osg file

2018-03-02 Thread Voerman, L.
Hi Sebastian, Geode {... Geometry { ... StateSet { ... GL_CULL_FACE ON Material { } CullFace {

Re: [osg-users] OSG not rendering CEGUI drawable inheritted from Drawable

2018-02-08 Thread Voerman, L.
Hi Jay, My guess is that your drawable gets culled, as you don't disable culling for it. Laurens. geode->setCullingActive(false); geode->addDrawable( new ClientCEGUIDrawable ); On Sun, Jan 21, 2018 at 1:27 AM, Jay Carson wrote: > Hi, > Version Information: > OSG:

Re: [osg-users] [3rd party] autodesk fbx sdk

2017-10-23 Thread Voerman, L.
And Autodesk fixed the download page. Regards, Laurens. On Sat, Oct 21, 2017 at 12:03 AM, Trajce Nikolov NICK < trajce.nikolov.n...@gmail.com> wrote: > Thanks a bunch Curtis. That will do it. I am on Windows at the moment. > >

Re: [osg-users] [osgPlugins] Multiple video textures using ffmpeg plugin

2017-10-05 Thread Voerman, L.
Try to make sure the ffmpeg decoding happens on different actual cores. osg currently cannot detect hyperthreading, so the decode threads can end up on the same core. Try to see in taskmanage (for windows) or top (for linux) how many cores you actually use - this might hint to the problem. The

Re: [osg-users] LIDAR plugin

2017-09-12 Thread Voerman, L.
to create a PR for this new FindLIBLAS.cmake? If not I can > manually merge it. > > Robert. > > On 8 September 2017 at 08:57, Voerman, L. <l.voer...@rug.nl> wrote: > >> Hi Michael, >> the cmake script demands a las_c library - I created a version of >> OpenScene

Re: [osg-users] LIDAR plugin

2017-09-08 Thread Voerman, L.
Hi Michael, the cmake script demands a las_c library - I created a version of OpenSceneGraph\CMakeModules\FindLIBLAS.cmake (attached) that skips this demand. This works just as well on my windows 10/Visual Studio 2015 build, so if you can test it on linux we could ask Robert to merge it. (My

Re: [osg-users] Querying pagedLOD state

2017-09-05 Thread Voerman, L.
Hi James, the PagedLOD addChild call is made from the main thread ( in DatabasePager::addLoadedDataToSceneGraph called from DatabasePager::updateSceneGraph called from Scene::updateSceneGraph called from Viewer::updateTraversal) so there will not be a threading problem if you check the number of

Re: [osg-users] Can see parts of the back side of a model

2017-08-24 Thread Voerman, L.
Hi Bruce, backface culling does not work with surface normals, the front and back faces are separated by the vertex winding. your model might have the faces in the wrong direction - or QT might have left openGL in an unexpected state. maybe this could help: osg::ref_ptr cf = new

Re: [osg-users] Compile error with Visual Studio 2017

2017-08-22 Thread Voerman, L.
Hi Davide, Robert reverted this commit yesterday (21/8/2017) - did that fix your problem? Regards, Laurens. On Sat, Aug 19, 2017 at 3:52 PM, Davide Raccagni wrote: > Hi, > I've cloned 904619e submission, I've tried to compile it with Visual > Studio 2017 (compiler

Re: [osg-users] #include on MSVC results in errors

2017-07-11 Thread Voerman, L.
Hi Bruno, it's very uncommon to have subfolder of osg\include in your include path, like include\osgText. The normal configuration has something like E:\dev\OpenSceneGraph\include in the project include path, and requests the use of the osgText\String with: #include this way there will be no

Re: [osg-users] PHYSFS / VFS - How to make a custom osgDB:: function ?

2017-07-10 Thread Voerman, L.
Hi Johny, you can't reimplement or override the osgDB::findDataFile(), but with osgDB::setFindFileCallback() you can make it do whatever you want. Regards, Laurens. On Mon, Jul 10, 2017 at 3:28 PM, Johny Canes wrote: > Hi, > > More keywords would be: How to reimplement or

Re: [osg-users] How to improve frame rate when loading multiple buildings ??

2017-02-23 Thread Voerman, L.
Hi Vinoth, First question: are you running a debug build? For all your osgdem work you seemed to be running a debug build - those are very slow. we need more stats to begin on an answer to what could be optimized: maybe every building has it's own stateset? make a screenshot with the graphs and

Re: [osg-users] [osgPlugins] using osgconv with fbx?

2017-02-22 Thread Voerman, L.
Hi Kevin, sorry, the command should be export DYLD_LIBRARY_PATH=/Applications/Autodesk/FBX\ SDK/2017.1/lib/clang/release/ (without the file name) Laurens. On Tue, Feb 21, 2017 at 9:15 PM, Kevin Steele wrote: > Hi, I tried that suggestion, but I still can't get osgconv to

Re: [osg-users] [osgPlugins] using osgconv with fbx?

2017-02-16 Thread Voerman, L.
Hi Kevin, seems like the fbx plugin is not used very much on apple, and is a bit outdated. I don't have an apple, but you can try to update "OpenSceneGraph\CMakeModules\FindFBX.cmake" with the attached version, I added a search path for fbx 2017.1 sdk and the subdir for the clang compiler.

Re: [osg-users] first attempts with PagedLODs

2017-01-25 Thread Voerman, L.
Hi Daniel, The pagedLOD displays the lower lod level until the requested level is loaded, I think wat you see is caused by the lowest LOD level being empty. We use almost all our pagedLODs with a permanent base level: in .osg format this looks like this: PagedLOD { RangeMode

Re: [osg-users] [vpb] Problem building .dae format file using vpb

2017-01-18 Thread Voerman, L.
Hi Vinoth, try osgdem --LOD instead of --terrain, I think the collada writer has no support for writing terrain tiles. Regards, Laurens. On Wed, Jan 18, 2017 at 1:05 PM, Vinoth Rajendran < vinothrajendran4...@gmail.com> wrote: > Hi, > I can load and view terrains generated using vpb in

Re: [osg-users] Heap Corruption

2017-01-10 Thread Voerman, L.
Hi Théo, I think you basically found out that the osg notify system is not thread safe, the call to osg::Notify from osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Drawable & drawable) Line 1036C++ OSG_NOTICE<<"CullVisitor::apply(Geode&) detected NaN," is probably running in

Re: [osg-users] Collada and OSG

2017-01-09 Thread Voerman, L.
Hi Uma I'm using collada_dom-2.3.1-src.tgz with boost 1.5.8 on windows 10 with VS2015 wget --no-check-certificate http://downloads.sourceforge.net/project/collada-dom/Collada%20DOM/Collada%20DOM%202.3/collada_dom-2.3.1-src.tgz wget wget

Re: [osg-users] Texture projection on terrain and gl_TextureMatrix[0...7]

2016-12-21 Thread Voerman, L.
Hi Ekaterina, seems to me it is working properly, although it does not give you the result you want. The black surrounding is just a combination of the texture coordinates going out of range combined with a CLAMP_TO_BORDER wrapping. the numbers in gl_TextureMatrix[1] are the texture units - the

Re: [osg-users] corrupted rendering

2016-12-21 Thread Voerman, L.
. Definitely a wired combinational problem. Could > you post the file that you modified with a note which version it's > based upon. A git commit/PR would do just as well. > > Cheers, > Robert. > > On 20 December 2016 at 16:38, Voerman, L. <l.voer...@rug.nl> wrote: > > Hi

Re: [osg-users] corrupted rendering

2016-12-20 Thread Voerman, L.
Hi all, this is a very old oddity - stats look a bit weird on a empty scene. the actual problem is the osg default for the blend function is never set if the main camera renders absolutely nothing, so the opengl default blendfunc ( GL_ONE, GL_ZERO) is still active. To fix this I added to

Re: [osg-users] How to check if pagedLod already exists in databasepager with same filename

2016-11-29 Thread Voerman, L.
would that not just replicate the osg filecache? readNode should just return the pointer to the data with readResult FILE_LOADED_FROM_CACHE regards, Laurens. On Tue, Nov 29, 2016 at 1:56 PM, Trajce Nikolov NICK < trajce.nikolov.n...@gmail.com> wrote: > Hi Simone, > > just a fast thought ...

Re: [osg-users] Rotation of a node starts clockwise and ends counter-clockwise.

2016-11-17 Thread Voerman, L.
Hi Rambabu, you can rotate with the rot pseudoloader like this: osgviewer cessna.osg.0,20,0.rot Regards, Laurens. On Thu, Nov 17, 2016 at 12:41 PM, Rambabu Repaka wrote: > Hi,Can anyone tell how to do the nodes rotation for the osg model like > cessna. > > ... > > Thank

Re: [osg-users] Fwd: Unstable passive stereo on Quadro using Quadbuffer

2016-11-15 Thread Voerman, L.
Hi TianZJ, we have a zSpace screen (closely related to your HP screen), and found that to get stereo working the screen needs a usb cable and the following calls to the zSpace SDK must be made: ZSError error; // Initialize the zSpace SDK. This MUST be called before // calling any other zSpace

Re: [osg-users] [osgPlugins] Problems with .ive loading

2016-11-10 Thread Voerman, L.
Hi Lyubov, in your path you have the unexpanded string "%projectpath%\osgPlugins-3.4.0\osgdb_ived.dll" - that will not work. Depending on how and when this is set you need to fix the expansion: registry keys: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment Path

Re: [osg-users] Disabling plugins via CMake

2016-11-10 Thread Voerman, L.
Hi Sam, This might not work for all osg specific package find scripts in OpenSceneGraph\CMakeModules, but you should be able to disable packages from the cmake command line: from cmake 3.0 documentation: Every non-REQUIRED find_package call can be disabled by setting the

Re: [osg-users] 32bit DEPTH for RTT

2016-10-20 Thread Voerman, L.
ion set to true - > for shadow mapping? > > On Thu, Oct 20, 2016 at 12:08 PM, Trajce Nikolov NICK < > trajce.nikolov.n...@gmail.com> wrote: > >> Hi Voerman, >> >> Yes, GL_DEPTH_COMPONENT32 was what I was missing ... Thanks a lot! >> >> Trajce >>

Re: [osg-users] 32bit DEPTH for RTT

2016-10-20 Thread Voerman, L.
Hi Trajce, maybe this sniplet helps? _textureDepthBuffer = new osg::Texture2D; _textureDepthBuffer->setTextureSize(_width+2.0f*_width*_guardBandPercentage, _height+2.0f*_height*_guardBandPercentage); _textureDepthBuffer->setSourceFormat(GL_DEPTH_COMPONENT);

Re: [osg-users] Vector script out of range

2016-10-07 Thread Voerman, L.
Hi Uma, This seems like a new problem to me. First question - are you sure you link the debug version of your program to the debug osg libraries? Regards, Laurens. On Fri, Oct 7, 2016 at 6:21 AM, Uma Devi Selvaraj wrote: > Hi all, > > Thanks for the reply.I am

Re: [osg-users] Vector script out of range

2016-10-06 Thread Voerman, L.
Hi all, I have found the bug, and created a pull request here . The bug seems to be introduced 17/8/2010 (osg 2.9.11 and up). Regards, Laurens. On Thu, Oct 6, 2016 at 10:56 AM, Uma Devi Selvaraj wrote: > Hi

Re: [osg-users] Render a huge image (30.000x30.000)

2016-04-01 Thread Voerman, L.
Hi Bruno. The osgPoster example can render very large images by rendering in tiles and gathering the image in software. I am not sure it can do 30kx30k, as the image must be held in (virtual) memory, so you may need a large swapfile. Regards, Laurens. On Fri, Apr 1, 2016 at 4:37 PM, Bruno

Re: [osg-users] [build] When writing my own software and integrating openscenegraph, LNK error is thrown out.

2016-03-23 Thread Voerman, L.
Hi Diwas, as you don't mention it I think you did not create a x64 configuration for your project, the default new project is a 32 bit project. In visual studio in below the menus is a bar with two drop down lists, one with "Release" and one with "Win32", below the Win32 is an option called

Re: [osg-users] [3rdparty] FBX <-> OSG/IVE conversion

2016-02-15 Thread Voerman, L.
Hi Patrik, a quick look into the ReaderwriterFBX source shows no support for LOD at all, so I expect FBX nodes with attribute eLODGroup to be skipped while reading an .fbx file, and osg::LOD to be written as a group (showing all LOD's at once) when writing .fbx files. Regards, Laurens. On Mon,

Re: [osg-users] Viewing Stacked Semi-Transparent Geodes

2016-02-04 Thread Voerman, L.
Hi Erik, the effect you see is caused by your blend function being order dependent, for a good result transparent triangles need to be drawn back to front. Did you set the rendering_hint to TRANSPARENT_BIN (binNumber 10 / binName DepthSortedBin)? like in

Re: [osg-users] segfaults with glDeleteShader

2015-11-02 Thread Voerman, L.
Just a quick remark, I think the warning you see is caused by the State destructor deleting the context's extensions: file src/osg/State.cpp (line 138) in State::~State() GLExtensions::Set(_contextID, 0); I think it caused me problems with loosing the extensions wen a camera was

Re: [osg-users] No Textures Displayed

2015-09-22 Thread Voerman, L.
Hi Olmun, the textures in the ive file do not show because you do not have texture coordinates. The probably did not export from blender. Hope that helps, Laurens. On Tue, Sep 22, 2015 at 1:10 AM, Olmun Hilderbran wrote: > Hello, > > I have created a scene in blender

Re: [osg-users] [Questio nabout StateSet.cpp] truncated attribute override value?

2015-09-10 Thread Voerman, L.
Hi Julien, it's OFF, the enum for StateAttribute::OFF is 0x0, so anything not ON has value OFF. Regards, Laurens. On Wed, Sep 9, 2015 at 7:45 PM, Julien Valentin wrote: > Hi, > Iwould like to introspect StateSet in order to know which override value > is activated

Re: [osg-users] [Question about StateSet.cpp] truncated attribute override value?

2015-09-10 Thread Voerman, L.
if the flags is ON/OFF as the bit seams ignored and then > not stored... > Using the posted code, it never returns 1. > > > > > Voerman, L. wrote: > > Hi Julien,it's OFF, the enum for StateAttribute::OFF is 0x0, so anything > not ON has value OFF. > > Regards, Laurens.

Re: [osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Voerman, L.
Hi Tony, small note: for what you're doing it might be usefull to take a look at OpenSceneGraph\src\osgPlugins\pfb\ConvertFromPerformer.cpp it has a function to convert pfSequence to osg::Sequence (called ConvertFromPerformer::visitSequence) - seems to me osg::Sequence is a good match. Regards,

Re: [osg-users] Antialising

2015-08-13 Thread Voerman, L.
You still need to enable anti-aliasing for your scenegraph: if (osg::GraphicsContext* context = camera-getGraphicsContext() { unsigned int contextID = context-getState()-getContextID(); if (osg::isGLExtensionOrVersionSupported(contextID , GL_ARB_multisample,1.3)){

  1   2   >