Re: [osg-users] [forum] Understanding osg Image packing

2012-12-27 Thread Sergey Polischuk
Hi what pixel format and type you have passed to osg::Image::computeRowWidthInBytes(...) call? Cheers, Sergey. 26.12.2012, 21:48, Claus Steuer claus...@googlemail.com: Hi, i try to understand the packing parameter of osg::Image::allocateImage. My current understanding is that packing

Re: [osg-users] osgFX::outline: unable to change outline color

2012-12-27 Thread Sergey Polischuk
Hi If you are using shaders in your implementation, make sure you declared shader version with #version directive and check compilation log on warnings Cheers. 26.12.2012, 22:02, Mike Metcalf metcalfnos...@mac.com: We've been attempting to implement an osgFX::outline node for highlighting

Re: [osg-users] Projective multitexturing save/export

2012-12-27 Thread Sergey Polischuk
Hi how would you include glsl shaders in 3ds file, for example? model formats support some limited set of features, and not all of those supported by osg writer plugins. 26.12.2012, 21:24, Mateo Gasparovic mateo.gasparo...@gmail.com: Hi, I've made projecting textures on the STL model. To

Re: [osg-users] [vpb] osgdem with terrain from worldMachine

2012-12-27 Thread Ethan Fahy
I've used World Machine before to create heightmaps for CryEngine and UDK but I thought that World Machine didn't georeference any of its files and was meant more for videogames and CGI. That being said you could always use gdal to add georeferencing to the World Machine output files and then

Re: [osg-users] [vpb] On adding GL_FLOAT / GL_LUMINANCE32F Texture Support

2012-12-27 Thread Ethan Fahy
There was a feature proposal to add floating point texture support to VPB: http://forum.openscenegraph.org/viewtopic.php?t=9515 I'm not sure if it ended up being added or not, but either way you may be able to add the proposed src to the current VPB src to add the support you are looking for.

Re: [osg-users] Multiple Cameras and lagging proj matrix

2012-12-27 Thread Paul Martz
Ah ha. And each Camera has it's own StateSet. I see. My situation is a bit different, as I have a single subordinate Camera buried in the scene graph, and it is on that Node that I want to set a projection matrix Uniform that has a different value per render thread. I could, in theory, add

[osg-users] How can I call a vector method on a generic array type?

2012-12-27 Thread Preet
Hi, I'm trying to call std::vector functions on generic array objects. So I'd like to be able to get an osg::Array and call something like size() or clear() on it, but I'm not sure how I can do this without casting it to one of the 'proper' array types. Is this possible? Preet

Re: [osg-users] How can I call a vector method on a generic array type?

2012-12-27 Thread Sergey Polischuk
Hi if you have only osg::Array pointer then all you can get directly is array size : array-getNumElements()as for others - you can get to them only with exact type (which you can get computed with help of array-getDataType() and array-getType() return values) Cheers  28.12.2012, 08:59, "Preet"