OpenGL 3D texture and GL_CLAMP_TO_BORDER?

  • Permalink
  • submit to reddit
  • Email
  • Follow


Hi all,
Is there any restriction in bordered 3D texture and GL_CLAMP_TO_BORDER clamp
mode?

I have a 66*66*66 bordered 3D texture,
and I use
glTexParameteri ( GL_TEXTURE_3D, GL_TEXTURE_WRAP_X, GL_CLAMP_TO_BORDER);
glTexImage3D(GL_TEXTURE_3D, 0, 2, 66, 66, 66, 1, GL_RGBA, GL_UNSIGNED_BYTE,
pTex);
I runed the program on a GeForce4 card.
but the program freezes with out error (glGetError() == GL_NO_ERROR)

If I change the clamp mode to
glTexParameteri ( GL_TEXTURE_3D, GL_TEXTURE_WRAP_[S,T,R], GL_CLAMP);

then the program runs well,
though the edge color is used rather than border color.

If I use a 64*64*64 non-bordered texture and
glTexParameterfv( GL_TEXTURE_3D, GL_TEXTURE_BORDER_COLOR, borderColor);
glTexImage3D(GL_TEXTURE_3D, 0, 2, 64, 64, 64, 0, GL_RGBA, GL_UNSIGNED_BYTE,
pTex);
the program also runs well,
but I really need the border color to be some neighboring image color.

Is this a implementation problem or CLAMP_TO_BORDER is not supported under
bordered 3D texture?


0
Reply malchut 5/25/2004 9:48:40 AM

See related articles to this posting

comp.graphics.api.opengl 7097 articles. 24 followers. Post

0 Replies
788 Views

Similar Articles

[PageSpeed] 15


Reply:

Similar Artilces:

3d textures, openGL, glTexImage3dext
Is there any good tutorial on using openGL 3d textures, I haven't found any. "official" documentation for glTexImage3Dext doesn't help too much. I am trying to use automatic texture generation for volume rendering, but I'm not sure how to do it On Sat, 23 Sep 2006, Nebojsa wrote: > > Is there any good tutorial on using openGL 3d textures, I haven't found any. > "official" documentation for glTexImage3Dext doesn't help too much. > I am trying to use automatic texture generation for volume rendering, but I'm > not sure how to do ...

movement of 3D object on 3D surface in openGl
Hi everybody, I want to move an 3D object(a man or an robot) on 3D surface in openGL. But i don't know how is it possible.My first problem is that how we can design 3D object(a robot) in openGL, can i use 3D max to build 3D object(robot) or any other tool, i am not very sure. and second problem is that after designing an 3D object(robot) how we can move that on 3D surface. actually i am designing simulator for my robot. please tell me i am waiting for your reply. thank you.... Hi, If you want to have advanced objects/models in opengl then you will require the use of a modelling progra...

2D texture and 3D texture volume rendering
Hi, I am relatively new to opengl. I am trying to use 2D texture and 3D texture for volume rendering. that is, I have a volumetric image, for example, 500 slices, each slice has 400 by 320 pixels. I want to do the direct 3D volume rendering using opengl 2D texture or/and 3D texture. can some one show me some sample codes how to do it? are there any other ways for rendering the volume? thanks, Zhengrong Ying Dale wrote: > Hi, I am relatively new to opengl. I am trying to use 2D > texture and 3D texture for volume rendering. that is, I have a > volumetric image, for example, 500 sl...

Textures in opengl
I have written a MDI application with OpenGL views in each window. It's going to be a 2D map editor. I can load a texture and display it on one of the views (the tiles view), but when I try to use the texture in another window(map view) I get nothing. I assume I must call something to attach the texture to the map window as well as the tiles window. any idea what ? -- Stainless wrote: > any idea what ? man wglShareLists. Wolfgang Draxinger -- ...

2D/3D Model & Textures 3D CDs, 3D Software & NLE Software CDs, Audio Sounds Sample CDs, CAX, CAD, CAM, CAE, electronics, EDA. LSI, PCB, FPGA, VHDL, &Other Design CDs, Digital Stock /Footage & Cl
2D/3D Model & Textures 3D CDs, 3D Software & NLE Software CDs, Audio Sounds Sample CDs, CAX, CAD, CAM, CAE, electronics, EDA. LSI, PCB, FPGA, VHDL, &Other Design CDs, Digital Stock /Footage & Clips CDs, Software For Technical Analysis of stocks/commodities/futures markets, GIS, Alldata 2004, Mitchell 2004, Tutorials & Manual CDs, Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', CDs, instructions how to authorise, register, including the author...

2D/3D Model & Textures 3D CDs :::::::: , updated 25/Jan/2005
2D/3D Model & Textures 3D CDs :::::::: , updated 25/Jan/2005 500.3D.Objects 2CD 3D Studio Max Dinosaurs Rom 1CD 3d.Studio.Max.Complete.FX.Design 1CD 3D.Total.Textures.Vol.1.2.3.4.5.6.7.8.9 9CD 3D-Album PicturePro Platinum 3.1 1CD Abvent.Artlantis.Shaders.Vol1-Vol8 Animation.Factory.Power.Media.Pro 4CD Archvision 2.5D Moving Business People Volume 1 1CD Archvision 2.5d Moving Casual People V1 1CD Archvision 2.5D:Moving Travel People vol 1 1CD ArchVision.RPC.2.5.D.Applauding.People.Vol.1 2CD Archvision Business.People Vol.3 1CD Archvision Casual People Vol.2 1CD Archvision Co...

2D/3D Model & Textures 3D CDs :::::::: , updated 25/Jan/2005
2D/3D Model & Textures 3D CDs :::::::: , updated 25/Jan/2005 500.3D.Objects 2CD 3D Studio Max Dinosaurs Rom 1CD 3d.Studio.Max.Complete.FX.Design 1CD 3D.Total.Textures.Vol.1.2.3.4.5.6.7.8.9 9CD 3D-Album PicturePro Platinum 3.1 1CD Abvent.Artlantis.Shaders.Vol1-Vol8 Animation.Factory.Power.Media.Pro 4CD Archvision 2.5D Moving Business People Volume 1 1CD Archvision 2.5d Moving Casual People V1 1CD Archvision 2.5D:Moving Travel People vol 1 1CD ArchVision.RPC.2.5.D.Applauding.People.Vol.1 2CD Archvision Business.People Vol.3 1CD Archvision Casual People Vol.2 1CD Archvision Co...

2D/3D Model & Textures 3D CDs :::::::: , updated 22/Apr/2005
2D/3D Model & Textures 3D CDs :::::::: , updated 22/Apr/2005 500.3D.Objects 2CD 3D.Fluff.Volume.1 1DVD 3D Studio Max Dinosaurs Rom 1CD 3d.Studio.Max.Complete.FX.Design 1CD 3D.Total.Textures.Vol.1.2.3.4.5.6.7.8.9.10.11.12.13 13CD 3D-Album PicturePro Platinum 3.1 1CD Abvent.Artlantis.Shaders.Vol1-Vol8 Ambientlight Multi.Texture.Packs.Complete.Collection 1CD Animation.Factory.Power.Media.Pro 4CD Archvision 2.5D Applauding People Vol 1 2CD Archvision 2.5D Moving Business People Volume 1 1CD Archvision 2.5D Moving Casual People Vol1 1CD Archvision 2.5D Moving Travel People Vol 1 ...

2D/3D Model & Textures 3D CDs, updated 31/October/2006
2D/3D Model & Textures 3D CDs, updated 31/October/2006 GARAGE SALES, buy, risk-free purchase, working, tested, fully functional, very cheap discounted price, low cost, quality OEM software, -------------------------------------------------------- 500.3D.Objects 2CD 3D.Fluff.Volume.1 1DVD 3D Studio Max Dinosaurs Rom 1CD 3d.Studio.Max.Complete.FX.Design 1CD 3D.Total.Textures.Vol.1-.15 15CD 3D.Total.3DS.Max.Series.v1 1DVD 3D-Album PicturePro Platinum 3.1 1CD Absolute.Textures.CityScape 1CD Abvent.Artlantis.Shaders.Vol1-Vol8 Ambientlight Multi.Texture.Packs.Complete.Collectio...

2D/3D Model & Textures 3D CDs, updated 25/June/2006
2D/3D Model & Textures 3D CDs, updated 25/June/2006 GARAGE SALES, buy, risk-free purchase, working, tested, fully functional, very cheap discounted price, low cost, quality OEM software, -------------------------------------------------------- 500.3D.Objects 2CD 3D.Fluff.Volume.1 1DVD 3D Studio Max Dinosaurs Rom 1CD 3d.Studio.Max.Complete.FX.Design 1CD 3D.Total.Textures.Vol.1-.15 15CD 3D-Album PicturePro Platinum 3.1 1CD Absolute.Textures.CityScape 1CD Abvent.Artlantis.Shaders.Vol1-Vol8 Ambientlight Multi.Texture.Packs.Complete.Collection 1CD Animation.Factory.Power.Media...

2D/3D Model & Textures 3D CDs :::::::: , updated 25/Jan/2005
2D/3D Model & Textures 3D CDs :::::::: , updated 25/Jan/2005 500.3D.Objects 2CD 3D Studio Max Dinosaurs Rom 1CD 3d.Studio.Max.Complete.FX.Design 1CD 3D.Total.Textures.Vol.1.2.3.4.5.6.7.8.9 9CD 3D-Album PicturePro Platinum 3.1 1CD Abvent.Artlantis.Shaders.Vol1-Vol8 Animation.Factory.Power.Media.Pro 4CD Archvision 2.5D Moving Business People Volume 1 1CD Archvision 2.5d Moving Casual People V1 1CD Archvision 2.5D:Moving Travel People vol 1 1CD ArchVision.RPC.2.5.D.Applauding.People.Vol.1 2CD Archvision Business.People Vol.3 1CD Archvision Casual People Vol.2 1CD Archvision Co...

2D/3D Model & Textures 3D CDs :::::::: , updated 25/Jan/2005
2D/3D Model & Textures 3D CDs :::::::: , updated 25/Jan/2005 500.3D.Objects 2CD 3D Studio Max Dinosaurs Rom 1CD 3d.Studio.Max.Complete.FX.Design 1CD 3D.Total.Textures.Vol.1.2.3.4.5.6.7.8.9 9CD 3D-Album PicturePro Platinum 3.1 1CD Abvent.Artlantis.Shaders.Vol1-Vol8 Animation.Factory.Power.Media.Pro 4CD Archvision 2.5D Moving Business People Volume 1 1CD Archvision 2.5d Moving Casual People V1 1CD Archvision 2.5D:Moving Travel People vol 1 1CD ArchVision.RPC.2.5.D.Applauding.People.Vol.1 2CD Archvision Business.People Vol.3 1CD Archvision Casual People Vol.2 1CD Archvision Co...

opengl 3D object
Hi all, I'm a newbie here! :) I'm doing a project in opengl for the construction of 3D object obtained by trasling a profile curve along a trajectory. I memorize the point into a structure of float and I'm pretty sure the points are correct (I've tried with few points and verificated it) When I try to display the surface I use: gluBeginCurve(nurbSurf); gluNurbsCurve(nurbSurf,surface->u_point,surface->v_point,&knot_u[0],&knot_v[0], 4*surface->v_point,4, &tempArray[0][0][0],order_u,order_v,GL_MAP2_VERTEX_4); gluEndCurve(nurbSurf); where surface->u_poin...

Understanding the openGL textures...
I've a question about texturing. Take a look: //----8<----[ CODE BEGIN ]--------// UINT TextureArray[2]; BOOL BitmapLoad(char* Filename, UINT index) { AUX_RGBImageRec *Bitmap = NULL; // Pointer To AUX_RGBImageRec FILE *FileHandle = NULL; // File Handle To Use FileHandle = fopen(Filename,"rb"); // Check To See If The File Exists if(FileHandle != NULL) // If File Exists { Bitmap = auxDIBImageLoad(Filename); // Use glaux.h To Load Image } else // Else If Error ...

OpenGL and lighting textures
Hi, I have a rather complex model that I am lighting with one light in opengl. Before a texture is bound to the model the CPU utilization is at about 4%. Once bound it jumps to 50%. I understand light calculations can be expensive but this just somehow strikes me as inordinate. What do you suppose is the most likely GL settings that would have an effect on the amount of processing power required? The ones directly related (glTexParameter and the like) seem to have little effect. Am I perhaps omitting a call in the pipeline that is causing unnecessary calculations on every iteration? So...

3D OpenGL menu. How ?
Hi there, I'm trying to code simple 3D menu with few items to select. I have no clue how can I do that thus far, that's why I'm kindly asking for some tips. I can't get PUI to work with my dev c++, or code::blocks neither. GLUI seems to be complicated, and I can't compile any example as well. As for GLUT lib - indeed it's nice and simple, but only for window type menu. I've also tried to play with some glFont tricks, but it isn't working as intended to be. It's all about 3D rendered title, few items to select and .. done. Could I ask for some tips ? ...

Raw 3D texture
Hi, Do you know of any website where I can get a few RAW binary 3D models, i.e. voxelized ? Thanks ...

3D Texture Constraints
Hi. I'm using 3D textures in a raycasting application that uses GLSL. I understand that 3D textures must have dimensions that are powers of 2, and no extension exists to work around this in 3D. Not all my volumes fit this bill, so I'm padding them out to the nearest power of 2 greater than the given dimension. This works great for cubicle volumes when all dimensions become the exact same. However, when I get a volume that's say 256 x 256 x 110 which becomes 256 x 256 x 128, my datasets start to replicate when rendered. Instead of one brain, I see four of them in a 2 x 2 x 1 ar...

3D textures #2
Hello, I hope to show some samples of what I did with the previous thread "GLSL: Multitexturing particular cases..." and with the answers given by Fungus and Chris, but if I debug this code: glEnable(GL_TEXTURE_3D); glBindTexture(GL_TEXTURE_3D,ttID); glBegin(GL_TRIANGLES); glTexCoord3d(0,0,0); glVertex3d(-10,-10,-30); glTexCoord3d(1,0,0); glVertex3d(20,-10,-30); glTexCoord3d(1,1,0); glVertex3d(20,20,-30); glEnd(); glDisable(GL_TEXTURE_3D); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D,BBID); // ********** glBegin(GL_TRIANGLES); glTexCoord3d(0,0,0); ...

3D Texture analysis
Hello, I am currently looking at computing texture for 3D MRI data, using i.e GLCM or any other textural method. Hope someone can guide me on this matter. Thanks. Best Regards, ANusha ...

3D textures 290493
what are they? what can you accomplish with them? -- -------------------------------- Kre�imir �pes BB & idol graphics http://bb.gamer.hr DigitalDragon wrote: > what are they? what can you accomplish with them? 1D texture: a single row of pixel data 2D texture: columns and rows of pixel data 3D texture: stacks, columns and rows of pixel data Imageine you take an object ant cut in a lot of very thin slices. Then you scan in each sclice and use it as a 3D texture's stack. Using this texture you can render you primitives, as they cut through the slice. A good example of this u...

3D Textures 337099
I am curretly experimenting with volumetric rendering, so far I have managed to render a 3d data set using 2d textured slices with alpha blending. I would like to experiement with 3D textures but can't get my head around the texture co-ordinates. Could some one point me in the way of a good tutorial, or even help me out themselves? David David Hughes schrieb: > I am curretly experimenting with volumetric rendering, so far I have managed > to render a 3d data set using 2d textured slices with alpha blending. I > would like to experiement with 3D textures but can't get my head...

3D Textures #2
Hi, I need help here, Maybe texture is the wrong word but what I need to do is cover the surface of a part with small round domes a couple of mm in diameter. On a flat surface it would seem easy, just pattern them but this part's suface is shaped more like an egg. (Think of a strange shaped golf ball with convex rather than concave dimples) Can't get my head around this one. Any help would be much appreciated. Regards ... Roger Try searching this forum for related discusion on modelling golfballs. Instead of using revolved cut, use revolved extrusion. ...

A 3D mesh and texture.
Hi all. I'm in a need of displaying 3D data mesh and stick on it a texture of 640x480 pixel resolution. This all is going to be refreshed a few times a second so all has to work smoothly. How could I get it done in a simple way? One possible way is to display quads and stick on each of them separate texture (parts of an image), though I expect this may be slow performer and therefore I would prefer to display any mesh I like. Any tips? Cheers, Peter. "A n g l e r" <p k o n i u s z @ h o t m a i l . c o m> wrote in message news:flivkm$1ob$1@news.onet.pl... >...