Jump to content
  • Advertisement
Sign in to follow this  
svnstrk

OpenGL 2D array of texture2D

This topic is 2848 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi,

i have a 2D array of texture. so its like an image with width and height, but each pixel is an image. and if i want to grab texture at index let say (3.5, 4.5), it will interpolate the texture at index (3, 3), (3, 4), (4, 3), (4, 4).

currently im trying to do this manually, but im curious is there any easy way to implement this in OpenGL+GLSL? is there some kind of way to keep texture2D in 2D array that interpolates automatically in OpenGL+GLSL? if yes, any hint/link/sample how to to that?

thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
hi,

i think its kinda different for you and me. im not having a large texture and have subtextures in it, i have a (let say) 4D texture. so I have a set of images which is captured from a certain set of camera movement which follow a spherical coordinate (elevation and azimuth).

so my texture, instead of a simple (x, y) texture, is an (x, y, rho, theta). im curious if opengl/glsl able to do a mipmap based on a 4 coordinate system.

ofcourse i can do it with your way, but my texture is 500*500*30*30, which is i think too large to be placed in 1 texture. but i guess i have the idea that opengl cant do such thing.

any idea/hint/help/link will be appriciated!

thanks in advance

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!