Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Question about color texturing‏

  1. #1
    Newbie Newbie
    Join Date
    May 2014

    Smile Question about color texturing‏

    Click image for larger version. 

Name:	result.jpg 
Views:	184 
Size:	100.2 KB 
ID:	1297

    Hello, I'm from Mexico and I'm writing code in OpenGL and I think you could help me. I have a source code that basically loads RGB and depth Kinect images and display that information in 3D.

    Unfortunately, it seems that color texture mapping using glDrawElements is somewhat misaligned (the original image is repeated four times or so). I have I attached my source code and an image showing my results. That's the reason I think OpenGL is not interpreting the image buffer "rgb" correctly. I have used SOIL with the same result. However, I've drawn each pixel using glVertex3f and glColor3f without problem.

    I'm working on Ubuntu 12.04. Hope you can help me.

    Best wishes, and thanks in advance.
    Attached Files Attached Files

  2. #2
    Intern Contributor
    Join Date
    Mar 2014
    San Jose, CA
    From scanning through your code, I don't think you're setting up your texture coordinates properly. You're using the same values for the vertex coordinates and the texture coordinates.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts