Re: [osg-users] EXTERNAL: Re: voxelization using offscreen rendering

2012-06-08 Thread Pecoraro, Alexander N
to have independent view matrices but use the same viewpoint and the parent Camera for LOD calcs. The osgShadow NodeKit uses this in it's implementations so have a look the source code entries for setReferenceFrame in it for examples. Robert. On 7 June 2012 22:09, Pecoraro, Alexander N

[osg-users] voxelization using offscreen rendering

2012-06-07 Thread Pecoraro, Alexander N
Hi, I'm wondering if someone can suggest an elegant solution to the problem of trying to voxelize some triangle based geometry. The general algorithm is to render the scene from multiple different camera view points and then use the resulting color and depth buffer from each render pass to

[osg-users] Switching osg::Program

2012-05-21 Thread Pecoraro, Alexander N
What is the proper way to switch the osg::Program that an osg::StateSet is using? Is the StateSet's update callback the only way to do it? I tried doing it in the Camera's post draw callback, but I still get a segfault from the render thread that is still using the old osg::Program. Thanks.

[osg-users] colored geometry help

2012-04-30 Thread Pecoraro, Alexander N
I'm trying to draw some translucent colored triangles on top of some textured triangles and the triangle color does not appear to be working consistently. I'm setting the osg::Geometry color array and its binding to BIND_PER_PRIMITIVE_SET and adding one color to the array per primitive set.

[osg-users] multiple windows question

2012-02-16 Thread Pecoraro, Alexander N
What is the best way to have multiple windows with different views of the same scene graph? I took a look at the composite viewer example, but it has different views of the same scene graph with a single window. So not quite what I want. Thanks. Alex

[osg-users] bug in Imagef::readImageFromCurrentTexture

2012-02-15 Thread Pecoraro, Alexander N
I was trying to use osg::Image::readImageFromCurrentTexture() to read back a texture from the GPU. The glGetTexImage() call was failing because it was using an invalid pixel format. The pixel format that it uses comes from calling osg::Image::computePixelFormat() with the internal format of the

[osg-users] Draw Elements Instanced Shader Help

2011-10-26 Thread Pecoraro, Alexander N
I can't figure out why the shader embedded in the attached file doesn't work without the hard coded position and scale variables. I'm trying to write a hardware instancing shader that uses glDrawElementsInstancedEXT() to draw multiple instances of a box where the position and scale of the box

Re: [osg-users] EXTERNAL: Re: Draw Elements Instanced Shader Help

2011-10-26 Thread Pecoraro, Alexander N
Seems other people have had the same issue as me: http://forum.openscenegraph.org/viewtopic.php?t=7287 Are there any plans to address the issue in an upcoming release? Alex From: Pecoraro, Alexander N Sent: Wednesday, October 26, 2011 2:17 PM To: OpenSceneGraph Users Subject: RE: EXTERNAL: Re

Re: [osg-users] EXTERNAL: Re: Draw Elements Instanced Shader Help

2011-10-26 Thread Pecoraro, Alexander N
, Pecoraro, Alexander N wrote: Any idea what I'm doing wrong? Have you tried looking at the osgdrawinstanced example to see how your code differs from functioning code? -- -Paul Martz Skew Matrix Software http://www.skew-matrix.com

[osg-users] external reference to shader file

2011-10-24 Thread Pecoraro, Alexander N
Is it possible to embed an external reference to a shader file with any of the osg file formats (.osg, .ive, .osgt, .osgx, etc)? Looking at the plugin code it appears that the only attribute of the shader that gets written is the shader source code, but just wanted to be sure I wasn't missing

[osg-users] Fixed function pipeline in OSG 3.0.1

2011-09-14 Thread Pecoraro, Alexander N
In OSG version 3.0.1, if I don't explicitly attach a shader to my scene graph does it fall back on the fixed function pipeline or is a fixed function pipeline equivalent shader generated for it? Thanks. Alex ___ osg-users mailing list

[osg-users] osgb vs. ive ProxyNode database path

2011-08-02 Thread Pecoraro, Alexander N
I noticed that in the osgb format the database path of the ProxyNode is no longer determined at runtime. This is different than the ive format, which if you don't set the database path it will determine the database path by using the osgDB::Options' database path list. This was nice because it

[osg-users] transform to screen function

2010-08-31 Thread Pecoraro, Alexander N
Is there some easy function on the osg::Camera (or some other osg class) that I can call to compute the 2d screen position of a 3d point? I couldn't find one when looking through the documentation, but I figured I would ask just in case I am missing it. Thanks. Alex

Re: [osg-users] transform to screen function

2010-08-31 Thread Pecoraro, Alexander N
, this question has already been addressed... http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/59941/focus= 59966 -Shayne -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Pecoraro, Alexander N

[osg-users] theading mode question

2009-12-17 Thread Pecoraro, Alexander N
Is there a way to set the threading mode so that the draw thread does not run until after the update traversal is done? Thanks. Alex ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] possible bug in osg reader/writer for PagedLOD nodes

2009-08-31 Thread Pecoraro, Alexander N
I think there is a bug in the osg reader/writer for PagedLOD nodes. If you set the LOD::CenterMode to USE_BOUNDING_SPHERE_CENTER then it doesn't get written to the output .osg file because the writer ignores its value unless it is set to USER_DEFINED_CENTER, in which case it just writes out the

[osg-users] Draw time vs. GPU time Stats question

2009-07-29 Thread Pecoraro, Alexander N
Is it fair to say that the Draw time in the OSG stats measures the time needed to sort and call the display lists of the Geometry nodes obtained by the Cull stage and make the other frame rendering related OpenGL calls? And GPU time is the time that the GPU spends rendering the geometry

[osg-users] osgDB::readNodeFile Thread Safe?

2009-07-17 Thread Pecoraro, Alexander N
Is the function osgDB::readNodeFile thread safe? I seem to remember in previous versions of the OSG API that the osgDB::DatabasePager would use a mutex to prevent threading issues when calling readNodeFile(), but in 2.8.0 it doesn't seem to do that anymore. Just wondering because I'm working

[osg-users] Simplifier for Texture Images

2009-07-02 Thread Pecoraro, Alexander N
Is there something similar to the polygon simplifier (osgUtil::Simplifier) but for texture images? I'm using the simplifier to generate a reduced version of some geometry, but I would also like it to have that geometry reference lower resolution versions of the textures. Thanks. Alex

Re: [osg-users] Simplifier for Texture Images

2009-07-02 Thread Pecoraro, Alexander N
Oh nice, I think perhaps the scaleImage() function of the Texture2D class will work for me. Alex From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Pecoraro, Alexander N Sent: Thursday, July 02

Re: [osg-users] How to test for anti-alias support

2009-06-19 Thread Pecoraro, Alexander N
I'm running on Redhat Linux: $ uname -a Linux cavs 2.6.18-92.1.22.el5PAE #1 SMP Fri Dec 5 09:58:49 EST 2008 i686 i686 i386 GNU/Linux My video card is an NVIDIA GeForce 9600 GT, here is some driver information from my X log: NVIDIA GLX Module 173.14.12 Thu Jul 17 18:36:35 PDT 2008 NVIDIA

[osg-users] How to test for anti-alias support

2009-06-18 Thread Pecoraro, Alexander N
Is there a different or better way to test for anti-aliasing support than to just call osg::DisplaySettings::instance()-setNumMultiSamples() repeatedly with smaller and smaller values, which doesn't seem to work for me anyway (so hopefully the answer is yes). I tried to have it set the number

[osg-users] OpenGL Overlays

2009-03-26 Thread Pecoraro, Alexander N
Is there any support for the use of OpenGL overlays in OSG? Thanks. Alex ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] how to use osgText to make sign

2009-03-11 Thread Pecoraro, Alexander N
I was wondering if there was an easy way (i.e. some osgText function) to make a backdrop quad that sits behind an osgText in 3d world space in order to make something like a road sign with the word STOP on it. I looked through the osgText documentation, but didn't see anything obvious, but I

Re: [osg-users] Compile Context Background Thread Question

2009-02-18 Thread Pecoraro, Alexander N
multi-threaded. Robert. On Tue, Feb 17, 2009 at 10:47 PM, Pecoraro, Alexander N alexander.n.pecor...@lmco.com wrote: I noticed that there is an environment variable OSG_COMPIlE_CONTEXTS=OFF/ON that, Enable/disable the use a backgrouind compile contexts and threads. I was wondering

Re: [osg-users] Draw threads serialized by default?

2009-02-18 Thread Pecoraro, Alexander N
I think it would be nice if the processor chosen for the draw thread by the osgViewer was somehow configurable instead of it just defaulting to starting at processor number 1 and going up from there. I, like Todd, seem to have found that running the draw thread on my second processor (on any of

[osg-users] Compile Context Background Thread Question

2009-02-17 Thread Pecoraro, Alexander N
I noticed that there is an environment variable OSG_COMPIlE_CONTEXTS=OFF/ON that, Enable/disable the use a backgrouind compile contexts and threads. I was wondering if this particular functionality is only used in conjuction with the database pager. In other words, if my database does not have any

Re: [osg-users] Cull time doubled?

2009-02-12 Thread Pecoraro, Alexander N
has a visitor that can help set the DataVaraince to either STATIC or DYNAMIC, but will only override it if the value is currently UNSPECIFIED. Robert. On Thu, Feb 12, 2009 at 12:17 AM, Pecoraro, Alexander N alexander.n.pecor...@lmco.com wrote: Hi again, Might I suggest you examine the actual

Re: [osg-users] Cull time doubled?

2009-02-12 Thread Pecoraro, Alexander N
, Pecoraro, Alexander N alexander.n.pecor...@lmco.com wrote: To get my viewer to work in multithread mode I had to make sure that all updates to the scene graph were happening in an update callback. I also had to set all my osgText objects to use draw callbacks and put mutexes on the string's that were

Re: [osg-users] Cull time doubled?

2009-02-11 Thread Pecoraro, Alexander N
correctly to allow the frames to overlap the most without endangering thread safety. Robert. On Wed, Feb 11, 2009 at 1:03 AM, Pecoraro, Alexander N alexander.n.pecor...@lmco.com wrote: I followed the instructions in the previous email and I was able to get the 2.6.1 API to build with atomic ref

Re: [osg-users] Cull time doubled?

2009-02-11 Thread Pecoraro, Alexander N
-Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Pecoraro, Alexander N Sent: Wednesday, February 11, 2009 4:18 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Cull time doubled? Hi again, Might I suggest you

Re: [osg-users] Cull time doubled?

2009-02-10 Thread Pecoraro, Alexander N
I followed the instructions in the previous email and I was able to get the 2.6.1 API to build with atomic ref counting on my Enterprise Redhat box. This change caused a 33% improvement in my culling time and an 8% improvement in my draw time when in cull thread per context mode. In single

Re: [osg-users] Cull time doubled?

2009-02-10 Thread Pecoraro, Alexander N
part is more costly than the draw part. I hope this can help to see what is wrong for Alex and for me. On Tue, Feb 10, 2009 at 7:54 AM, J.P. Delport jpdelp...@csir.co.za wrote: Hi, Mathias Fröhlich wrote: Hi, On Monday 09 February 2009 23:54, Pecoraro, Alexander N wrote: On Linux

Re: [osg-users] Cull time doubled?

2009-02-09 Thread Pecoraro, Alexander N
. Robert. On Fri, Feb 6, 2009 at 12:28 AM, Pecoraro, Alexander N alexander.n.pecor...@lmco.com wrote: I've recently upgraded an old 3d viewer that was using OSG API version 1.2 to version 2.6.1. Oddly enough some databases that I was using with the old viewer actually perform worse with the new

Re: [osg-users] Cull time doubled?

2009-02-09 Thread Pecoraro, Alexander N
cases the cull, draw and GPU times are all very long. I'd suspect that the scene graph might not be well balanced and could probably be done far more efficiently. Without knowing the database I wouldn't be able to say exactly what. Robert. On Mon, Feb 9, 2009 at 10:54 PM, Pecoraro, Alexander N

Re: [osg-users] Cull time doubled?

2009-02-09 Thread Pecoraro, Alexander N
: __sync_bool_compare_and_swap_4 __sync_add_and_fetch_4 __sync_sub_and_fetch_4 Any idea why this happened? Thanks. Alex -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Pecoraro, Alexander N Sent: Monday, February 09, 2009 3:41 PM

Re: [osg-users] Cull time doubled?

2009-02-09 Thread Pecoraro, Alexander N
and GPU times are all very long. I'd suspect that the scene graph might not be well balanced and could probably be done far more efficiently. Without knowing the database I wouldn't be able to say exactly what. Robert. On Mon, Feb 9, 2009 at 10:54 PM, Pecoraro, Alexander N alexander.n.pecor

Re: [osg-users] Cull time doubled?

2009-02-09 Thread Pecoraro, Alexander N
What version of Linux/GCC/processor that supports the built-in atomic functions? Thanks. Alex -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Pecoraro, Alexander N Sent: Monday, February 09, 2009 5:19

[osg-users] Cull time doubled?

2009-02-05 Thread Pecoraro, Alexander N
I've recently upgraded an old 3d viewer that was using OSG API version 1.2 to version 2.6.1. Oddly enough some databases that I was using with the old viewer actually perform worse with the new version of the API. For some reason the cull time on these databases is 1.5 to 2 times higher on version

Re: [osg-users] When is right time to update text on the screen

2009-02-04 Thread Pecoraro, Alexander N
...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Pecoraro, Alexander N Sent: Tuesday, February 03, 2009 5:17 PM To: OpenSceneGraph Users Subject: Re: [osg-users] When is right time to update text on the screen I seem to have fixed the problem by setting

[osg-users] When is right time to update text on the screen

2009-02-03 Thread Pecoraro, Alexander N
Is there a proper time to make changes to an osgText object's text? I seem to be having a problem where if I update some text in an update callback function it causes a segfault when I'm running the viewer in multi-threaded mode, but not in single threaded mode. I'm guessing because the text

Re: [osg-users] possible bug in cfg plugin

2009-02-03 Thread Pecoraro, Alexander N
also support https, there is a chance this might work for you. Robert. On Tue, Jan 27, 2009 at 11:53 PM, Pecoraro, Alexander N alexander.n.pecor...@lmco.com wrote: I noticed a bug in the 2.6.0 version of the API with the viewer config file reader plugin. I can't access the latest developer

Re: [osg-users] When is right time to update text on the screen

2009-02-03 Thread Pecoraro, Alexander N
From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Pecoraro, Alexander N Sent: Tuesday, February 03, 2009 4:26 PM To: OpenSceneGraph Users Subject: [osg-users] When is right time to update text on the screen

[osg-users] possible bug in cfg plugin

2009-01-27 Thread Pecoraro, Alexander N
I noticed a bug in the 2.6.0 version of the API with the viewer config file reader plugin. I can't access the latest developer source code right now so I can't verify that the bug still exists in the 2.7 version of the API, but I've attached the config file that I used to reproduce the problem.

Re: [osg-users] svn

2009-01-16 Thread Pecoraro, Alexander N
I can't checkout that url from svn either. I also can't get to the main website. Alex -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Matt Fair Sent: Friday, January 16, 2009 11:49 AM To: OpenSceneGraph

Re: [osg-users] svn

2009-01-16 Thread Pecoraro, Alexander N
I take that back - I can get to the website now. It is just really slow. Alex -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Pecoraro, Alexander N Sent: Friday, January 16, 2009 11:50 AM

Re: [osg-users] shared VertexBufferObject question

2008-09-22 Thread Pecoraro, Alexander N
about what they assume is current state. It's possible but it's quite a bit of work. Robert. On Sat, Sep 20, 2008 at 12:42 AM, Pecoraro, Alexander N [EMAIL PROTECTED] wrote: I want to create a VertexBufferObject that is shared by several Geometry nodes so that the number of calls to glBindBuffer

[osg-users] shared VertexBufferObject question

2008-09-19 Thread Pecoraro, Alexander N
I want to create a VertexBufferObject that is shared by several Geometry nodes so that the number of calls to glBindBuffer() are decreased, but I noticed that on lines 1561 - 1567 of Geometry.cpp there is some code that automatically unbinds the vertex buffer object effectively forcing each

[osg-users] osgFX::BumpMapping

2008-09-04 Thread Pecoraro, Alexander N
Is it possible to write osgFX::BumpMapping nodes to an ive file? I noticed in OSG 2.4 and 2.5 there seems to be some code for writing it to .osg, but not .ive. I also noticed that in the OSG trunk on SVN there appears to be some code for writing it to ive, but I was hoping to be able to use a

[osg-users] Bug or misleading code in Texture2D

2008-08-28 Thread Pecoraro, Alexander N
It seems a little misleading or a bug that Texture2D::getNumImages() always returns 1 even if the _image member variable is NULL. Shouldn't it return 0 if the _image member is NULL? I know it seems odd to have a Texture2D with a NULL _image, but I took a look at the ive reader and it appears

[osg-users] Bug in CombineLODVisitor

2008-06-06 Thread Pecoraro, Alexander N
Sorry, I just noticed that I forgot to put a subject line on my first email, so I am resending it. I think there is a bug in the osgUtil::Optimizer::CombineLODVisitor - at line 1530 of Optimizer.cpp it does a dynamic_cast on and osg::Node* to osg::LOD* and then at line 1563 it calls getChild(i)

Re: [osg-users] Attention: osgTerrain class renaming in progress

2008-04-14 Thread Pecoraro, Alexander N
What version of the OSG API and the VPB do I need to use in order to take advantage of the new osgTerrain functionality and optimizations? Thanks. Alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Wednesday, March 26, 2008 2:13

[osg-users] NodeVisitor won't visit TerrainTile

2008-04-11 Thread Pecoraro, Alexander N
I am trying to write a NodeVisitor class that does something to osgTerrain::TerrainTile nodes, but for some reason it never enters my apply(TerrainTile tile) function. It just seems to fall back into the apply(Group group) of the base NodeVisitor class. Finally I just gave up and overrided the

[osg-users] Clear depth buffer

2007-07-26 Thread Pecoraro, Alexander N
I was wondering if anyone could offer me a suggestion on how to force a clear of the depth buffer in the middle of a rendering pass. I have a 3d model that I want to show up right in front of the viewer and always be on top. I used a absolute reference frame transform node and an orthographic