birko19
11-07-2008, 06:07 PM
Hello, a noob over here :)
I have two questions regarding openGL, I just started learning it and now I'm working with textures, but I'm facing somewhat of difficulties in terms of understanding, so here are my two questions:
1- How do you determine the coordinates of the texture? I have already made a small animation of two boxes that use textures, but that code was copied from online, now I understand how the objects like boxes and such work in terms of coordinates, but I would like to understand how the texture works rather than just copy and apply, also I need to understand the S and T parameters, can someone please be kind enough to explain how the texture coordinates work?
2- As I already mentioned, I had boxes loaded with textures, but I need to apply a texture into a background and make it dynamic, for example I'd like to put a space background texture and then have planets, the planets I already have an idea of how to create, but whenever I try to put a background texture it just looks like a background in 2D form and the other objects that I had there (I had two boxes) disappeared, can someone please guide me toward the right direction into building a good dynamic texture background?
I'm using C++ as the programming language, I always thought that openGL was only used with C++ but I was wrong, anyways, thanks in advance :)
I have two questions regarding openGL, I just started learning it and now I'm working with textures, but I'm facing somewhat of difficulties in terms of understanding, so here are my two questions:
1- How do you determine the coordinates of the texture? I have already made a small animation of two boxes that use textures, but that code was copied from online, now I understand how the objects like boxes and such work in terms of coordinates, but I would like to understand how the texture works rather than just copy and apply, also I need to understand the S and T parameters, can someone please be kind enough to explain how the texture coordinates work?
2- As I already mentioned, I had boxes loaded with textures, but I need to apply a texture into a background and make it dynamic, for example I'd like to put a space background texture and then have planets, the planets I already have an idea of how to create, but whenever I try to put a background texture it just looks like a background in 2D form and the other objects that I had there (I had two boxes) disappeared, can someone please guide me toward the right direction into building a good dynamic texture background?
I'm using C++ as the programming language, I always thought that openGL was only used with C++ but I was wrong, anyways, thanks in advance :)