Re: [osg-users] 3D texture construction and fill it with magnitudes

2011-03-04 Thread Ulrich Hertlein
On 4/03/11 23:51 , Sajjadul Islam wrote: > Thanks for the hint. I should have explained a little more. > I am calculating a distance map and want to store it in the 3D texture for > pixel processing. > > Which function should i used inside Texture3D to store the 3D data. No function inside osg::

Re: [osg-users] 3D texture construction and fill it with magnitudes

2011-03-04 Thread Sajjadul Islam
Hello Ulrich, Thanks for the hint. I should have explained a little more. I am calculating a distance map and want to store it in the 3D texture for pixel processing. Which function should i used inside Texture3D to store the 3D data. Is this data be need to be stored as image. The correspondi

Re: [osg-users] 3D texture construction and fill it with magnitudes

2011-03-04 Thread Ulrich Hertlein
Hi Sajjadul, On 4/03/11 18:13 , Sajjadul Islam wrote: > I need to construct a 3D Texture and fill it with the magnitudes of the > displacements. > > I looked into the class Texture3D . But i did not find any operator or > function > that let us to set the value at certain position in the textur

[osg-users] 3D texture construction and fill it with magnitudes

2011-03-03 Thread Sajjadul Islam
Hello forum, I need to construct a 3D Texture and fill it with the magnitudes of the displacements. I looked into the class Texture3D . But i did not find any operator or function that let us to set the value at certain position in the texture as follows: img(x,y,z) = value. Any suggestion ?

Re: [osg-users] 3D texture

2010-02-10 Thread Jason Daly
George Forest wrote: Hi, I have a 3DS model. How can I add tihs model as done in 2D images with Geode and Geometry. This code adds 2D objects. What modifications should I make on it? If I understand you correctly, you should be able to replace all of that code with: osg::ref_ptr model =

[osg-users] 3D texture

2010-02-10 Thread George Forest
Hi, I have a 3DS model. How can I add tihs model as done in 2D images with Geode and Geometry. This code adds 2D objects. What modifications should I make on it? ref_ptr geode(new Geode()); ref_ptr geometry(new Geometry()); ref_ptr vertices(new Ve

[osg-users] 3D Texture mipmap

2008-03-29 Thread hesicong2006
Hi, I'm encounter a problem with 3D texture mipmap. I try to setup my 3D texture with mipmaps enable by: volumeTexture->setFilter(osg::Texture3D::MIN_FILTER, osg::Texture3D::LINEAR_MIPMAP_LINEAR); volumeTexture->setFilter(osg::Texture3D::MAG_FILTER, osg::Texture3D::LINEAR_MIPMAP_LINEAR); And OSG

Re: [osg-users] 3D Texture Compression

2008-01-18 Thread Robert Osfield
On Jan 18, 2008 8:56 AM, hesicong2006 <[EMAIL PROTECTED]> wrote: > Hi everyone, > I have a volume data which is 256*256*256 cube, and I found it very slow > when ray-casting. And I notice the video memory usage is 74M. I want to > compress it to an hardware-support compressed format (S3TC_DXT1 or >

[osg-users] 3D Texture Compression

2008-01-18 Thread hesicong2006
Hi everyone, I have a volume data which is 256*256*256 cube, and I found it very slow when ray-casting. And I notice the video memory usage is 74M. I want to compress it to an hardware-support compressed format (S3TC_DXT1 or S3TC_DXT3 or S3TC_DXT5), but I found no example demonstrate how to use