The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.graphics.api.opengl
From: Nobody <nob...@nowhere.com>
Date: Mon, 22 Oct 2012 21:49:58 +0100
Local: Mon, Oct 22 2012 4:49 pm
Subject: Re: 3D position to transformed depth value.
On Mon, 22 Oct 2012 08:16:25 -0700, bob smith wrote:
No. The internal format is GL_DEPTH_COMPONENT24, which is 24 bits. The
>> glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT24, width, >> height, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, NULL); > Doesn't that GL_UNSIGNED_BYTE mean your depth values are just 8 bits?
type parameter (which is GL_UNSIGNED_BYTE) refers to the data used to initialise the texture, and is ignored in this case as the data pointer is NULL. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||