How to set up a 3D texture with following settings
- From: "henryjoye@xxxxxxxxx" <henryjoye@xxxxxxxxx>
- Date: Mon, 22 Oct 2007 03:22:45 -0700
hi,
I have a 3D volume data with dimensions of dim[0], dim[1], dim[2]. Now
I need to set up a 3D texture using glTexImage3D, this 3D texture
should have following parameters:
Dimensions: dim[0], dim[1], dim[2]
Texture values: we need to store values in channel R and channel A,
the value range for each channel is (0, dim[0]*dim[1]*dim[2]) (it is
the multiplication of size of data in three directions).
My question is how to set each parameter of glTexImage3D to create
this texture? Which format should I use? Because data dimensions may
be 512x512x512, it is a very large value to store in channel R and
channel A.
void glTexImage3D
( GLenum target
, GLint level
, GLenum internalformat
, GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
, GLenum format
, GLenum type
, const GLvoid *pixels
);
Many thanks for your help!
James
.
- Follow-Ups:
- Re: How to set up a 3D texture with following settings
- From: Wolfgang Draxinger
- Re: How to set up a 3D texture with following settings
- Prev by Date: Re: q: texture lookup
- Next by Date: Re: How to set up a 3D texture with following settings
- Previous by thread: Re: cad gui toolkit
- Next by thread: Re: How to set up a 3D texture with following settings
- Index(es):
Relevant Pages
|