[osg-users] Intersection tests on paged PagedLODs

2011-03-13 Thread Trystan Larey-Williams
Hi all, I'm looking for a way to selectively load PagedLODs saved to files on an intersection test. I've built up an Octree represented by a PagedLOD node for each subdivision (similar to the quad-tree example in the 3.0 beginner's guide). Given an arbitrary point or line, I want to be able to

Re: [osg-users] Intersection tests on paged PagedLODs

2011-03-31 Thread Trystan Larey-Williams
I finally got some time to try this and it's exactly what I needed. Another point I was missing was setting the range on the PagedLODs. I had a bounding vol defined but not the range. Thanks for the tip! -Trystan -- Read this topic online here:

[osg-users] Building a Texture2D from a PBO?

2011-04-21 Thread Trystan Larey-Williams
Hi all, I'm looking for a way to quickly read parts of images into parts of 2D textures. For instance, given a source rect for an image and a destination rect for the texture I want to get just the source rect into the dest rect with no scaling/resizing etc. I thought I may be able to do

Re: [osg-users] Building a Texture2D from a PBO?

2011-04-22 Thread Trystan Larey-Williams
Well, the crash was indeed caused by not having a valid context. I moved the code into a DrawCallback and it worked but not how I expected. I was hoping that binding a PBO to the state would cause copyTexImage2D to read contents from the PBO. Instead, its just grabbing data from the regular

Re: [osg-users] adding barrel distortion for stereoscopic rendering in Oculus Rift head set

2013-05-28 Thread Trystan Larey-Williams
I just got my Rift dev kit today and plan to look at this a bit as well. I'm a little slammed on time for the next week, so I don't have any estimates but I'll post when I have something to show. If anyone else has already made progress, please share ;) Cheers, Trystan -- Read

[osg-users] Enabling instancing should automatically disable display lists

2014-03-03 Thread Trystan Larey-Williams
Hi all, I found that OSG has display lists enabled by default on Geometry objects and it remains enabled even if instancing is enabled. This made for a fairly long and non-intuitive debug session as I was trying to figure out why my geometry failed to be drawn. Ultimately, I just had to

Re: [osg-users] Enabling instancing should automatically disable display lists

2014-03-04 Thread Trystan Larey-Williams
If it's messy to automate the behavior, I think even a warning visible at a 'warn' log level would suffice. I.e. pop the message on add/insert PrimitiveSet if the drawarray is instanced and display lists are enabled on the Geometry. If I can squirrel away some time soon, I'll go ahead and

[osg-users] osgPango text always black (even the examples)

2011-09-16 Thread Trystan Larey-Williams
Hi all, I've used osgPango successfully in the past on a different system, but am facing a strange problem now. All text renders black including in all the out-of-box examples (osgpangoanimation, etc), regardless of what the color is set to in the markup. Anyone else run into this? My

Re: [osg-users] osgPango text always black (even the examples)

2011-09-19 Thread Trystan Larey-Williams
Figured it must be something like that. Ok, thanks for the reply! Cheers, Trystan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42873#42873 ___ osg-users mailing list

Re: [osg-users] osgPango text always black (even the examples)

2011-09-19 Thread Trystan Larey-Williams
Just confirming, building against the osg trunk indeed solved the problem for me. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42883#42883 ___ osg-users mailing list

[osg-users] Saving a Texture3D to an Image

2011-11-11 Thread Trystan Larey-Williams
Hi, I've been banging my head against how to save a 3D texture out to a dds file for some time now. I've read posts that suggest simply attaching the texture's image to the buffer rather than the texture itself. I've done that for 2D textures with no problem. However, I don't see how that will

Re: [osg-users] Saving a Texture3D to an Image

2011-11-12 Thread Trystan Larey-Williams
Hi Robert, Thanks for the reply! That seems to work only if I don't need to set other texture states. For instance, the following fails (2D texture in this case but I need to do similar with 3D). If I comment out the sampler texture attribute, the image is written successfully. With it

Re: [osg-users] Saving a Texture3D to an Image

2011-11-13 Thread Trystan Larey-Williams
Figured out how to solve the problem in the last post. I just set the texture I want to write on the camera itself so that its active once the post draw is executed. For instance, the code above simply changes to the following. Code: ...

Re: [osg-users] How to create ive and 3ds files

2012-02-10 Thread Trystan Larey-Williams
There's a plugin for blender you can use to export content to osg format; https://github.com/cedricpinson/osgexport. Last time I tried it, the support for 2.5 was a little sketchy but it appears to be coming along. Cheers, Trystan -- Read this topic online here:

[osg-users] Capture off-screen / Aux buffer in PostDrawCallback?

2012-05-21 Thread Trystan Larey-Williams
Hi all, I have a multiple render target setup where a texture is attached to an FBO on GL_COLOR_ATTACHMENT2. The other target is simply the frame buffer on GL_COLOR_ATTACHMENT0. Both targets are the same size and format. A fragment shader uses glFragData[0] and glFragData[2] to write to the

Re: [osg-users] Setting camera position

2012-05-21 Thread Trystan Larey-Williams
How and when do you want it to change position? You can change position explicitly via the camera manipulator interface; there are a number of different convenience methods for that. If you want the position to change gradually over time (animation) then take a look at the

Re: [osg-users] Capture off-screen / Aux buffer in PostDrawCallback?

2012-05-22 Thread Trystan Larey-Williams
Thanks for the reply. What I ended up doing was to have a separate FBO (obtained trough native OGL calls) in the PostDrawCallback. Then I bind the texture (same one used in the FBO that performs the render) to this FBO in the callback and was then able to do a glReadBuffer/glReadPixels on the

Re: [osg-users] slave camera result in a distort result

2012-05-22 Thread Trystan Larey-Williams
I don't see a projection matrix being explicitly set. I think OSG does a perspective projection be default. Especially depending on the default FOV, this can produce a pronounced distortion. See the camera methods setProjectionMatrixAsPerspective and setProjectionMatrixAsOrtho. If you want no

[osg-users] [3rdparty] osgPango text in world space?

2012-08-10 Thread Trystan Larey-Williams
Hi all, I have a wireframe grid defined in 3-space that I want to put some labels on. I was able to get the result I wanted using osgText by using the code below where 'vert' is a world space vertex from the grid. Code: osgText::Text* text = new osgText::Text; text-setFont(font.get());

Re: [osg-users] [3rdparty] Shader Dev Tools

2012-08-10 Thread Trystan Larey-Williams
For what platform? A google search will turn up a bunch. Even for the iPad there's GLSL Studio. However, I have yet to find a good open source one that is consistently updated for Linux. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=49232#49232

Re: [osg-users] [3rdparty] osgPango text in world space?

2012-08-10 Thread Trystan Larey-Williams
Figured it out. It was simply a matter of scale. In my world coordinates the default scale of 1.0 for the text was enormous. The fix was just to; t-setScale(0.001, true). -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=49234#49234

[osg-users] [osgPlugins] ffmpeg plugin halting during playback of some videos

2014-11-20 Thread Trystan Larey-Williams
Hi all, We've been finding some problems with playback of a set of videos. The issue is reproducible using osgMovie but only when --audio is enabled. A particular video will freeze at the same moment on every playback instance (although different videos will freeze in different places). We

Re: [osg-users] [osgPlugins] ffmpeg plugin halting during playback of some videos

2014-11-26 Thread Trystan Larey-Williams
As this issue effects a large number of videos and is important functionality for us, we're willing to pay someone for a fix. If interested, please contact j...@digitaliseducation.com. Thanks, Trystan -- Read this topic online here:

Re: [osg-users] [osgPlugins] ffmpeg plugin halting during playback of some videos

2015-04-08 Thread Trystan Larey-Williams
Hi all, We ended up with a complete rewrite of the ffmpeg plugin that we've found to provide much more stable and reliable playback compared to the bundled one on the 3.2.x line. The developer hired believed a complete rework was the most expedient path to fix the various issues we