Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hi,
I am rendering non-power-of-two textures using glTextureImage2D with GL_TEXTURE_2D. But I understood that textures will operate as power of two textures. So I learnt about GL_ARB_texture_non_power_of_two, but if I try to use this with OpenGL, I am not found this extension macro with the GL2 class. If I call isExtensionAvailable. it returns true. Please tell me how I can use this extension with JOGL. If not possible. Give suggestions to use Non-power-of-two textures. Thanks and Regards, Anand |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Like you said you can check if the extension is available using: Then please look at the specification of the extension:gl.isExtensionAvailable("GL_ARB_texture_non_power_of_two") http://www.opengl.org/registry/specs/ARB/texture_non_power_of_two.txt Thats how you use it. 2014-02-04 anandcta123 [via jogamp] <[hidden email]>: Hi, ... [show rest of quote] |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hi,
I am not understanding this in detail as a beginner. Currently I am performing texture display using glTexImage2D for non-power-of-2 pixel data with GL_TEXTURE_2D. Is it fine to do like this or is there any specific way to handle non-power-of-2 textures. Please suggest me correct way of handling non-power-of-2 textures, because this API lagging in performance, I want to boost performance. Thanks and Regards, Anand |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
This post was updated on Feb 05, 2014; 9:00am.
I suggest you to study a book on modern opengl using the programmable pipeline. http://www.arcsynthesis.org/gltut/ http://www.arcsynthesis.org/gltut/Texturing/Texturing.html JOGL 2 ports of the gltut examples can be found at: https://github.com/elect86/modern-jogl-examples If you want help optimizing your own application then please upload your whole application to a public source-code repository under a free software license and we may give you suggestions how to improve performance. For closed source projects we can provide expert support as consultants. |
Free forum by Nabble | Edit this page |