PDA

View Full Version : texture creation problem?



SYReddy
05-20-2011, 03:20 AM
I am not able to create image texture other than image width of 1024 and height of 1024.I am getting error when I use the function glewIsSupported( "GL_VERSION_1_5 GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object" ).
can any body help me?

Alfonse Reinheart
05-20-2011, 03:29 AM
Are you saying that you can't make textures bigger than 1024x1024, or is that the only texture resolution that works at all?

What hardware are you using? What do you get when you use glGetString with GL_VENDOR, GL_VERSION, and GL_RENDERER?

ZbuffeR
05-20-2011, 03:38 AM
"I am getting error" is not precise enough : which error is it ?
How do you create your textures ?
Does your video card support non-power of two textures ? Which card is it ?
Do you mean that 512*512 textures creation fails ? Error messages ? Or do you mean bigger textures fail ?
Do you call glGetError (you should) and what is the return code ?
http://www.opengl.org/sdk/docs/man/xhtml/glGetError.xml

SYReddy
05-20-2011, 04:24 AM
Hi,
We are not able to render images using openGL textures for any image sizes other than 1024 x 1024.This behavior is observed on a machine with only motherboard graphics(Intel(R)82865G Graphics controller) and no extra add-on PCIe/PCI/AGP Graphics card.We got the outputs for glGetString with GL_VENDOR, GL_VERSION, and GL_RENDERER are OPenGl Vendor Intel,OPenGl Version 1.3.0 - Build 4.13.10.3510,OPenGl renderer Intel Springdale-G respecively.The same program works on another machine with nVidia Quadro NVS 540 for image sizes other than 1024x1024.

SYReddy
05-20-2011, 04:25 AM
Hi,
We are not able to render images using openGL textures for any image sizes other than 1024 x 1024.This behavior is observed on a machine with only motherboard graphics(Intel(R)82865G Graphics controller) and no extra add-on PCIe/PCI/AGP Graphics card.We got the outputs for glGetString with GL_VENDOR, GL_VERSION, and GL_RENDERER are OPenGl Vendor Intel,OPenGl Version 1.3.0 - Build 4.13.10.3510,OPenGl renderer Intel Springdale-G respecively.The same program works on another machine with nVidia Quadro NVS 540 for image sizes other than 1024x1024

ZbuffeR
05-20-2011, 06:10 AM
As asked above by two board members, please define "other than 1024x1024".

SYReddy
05-20-2011, 06:17 AM
hi
"other than 1024x1024" means 1200x1024 or 1200x1200 or 1400x1024 etc increasing up to 1600x1200 which monitor i am using is capable of.

V-man
05-20-2011, 07:36 AM
For one thing, why don't you break down this
glewIsSupported( "GL_VERSION_1_5 GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object" )

into separate calls
glewIsSupported( "GL_VERSION_1_5")
glewIsSupported( "GL_ARB_vertex_buffer_object")

Also, you don't need to check the GL version. Also, you are checking the wrong extensions. You need http://www.opengl.org/registry/specs/ARB/texture_non_power_of_two.txt

I would not be surprised if it doesn't support it. If you want to scale the images to 1024x1024, see my link

Alfonse Reinheart
05-20-2011, 11:28 AM
"other than 1024x1024" means 1200x1024 or 1200x1200 or 1400x1024 etc increasing up to 1600x1200 which monitor i am using is capable of.

The sizes you are talking about are for render targets, not textures. And since your hardware certainly doesn't support FBOs, these are two completely different things.

The available sizes of textures and the available display resolutions are entirely independent.