Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: GLTriangleBatch messin' with my bunny mesh

  1. #1
    Intern Contributor
    Join Date
    May 2011
    Location
    Alabama, USA
    Posts
    65

    GLTriangleBatch messin' with my bunny mesh

    Hi guys. Got a little problem. I downloaded some meshes of a rabbit figure, wrote a program to render the meshes, and every mesh renders just fine until I get to the highest resolution mesh. Its all screwed up. Take a look at what I'm talking about below.

    Here is the lower resolution mesh:

    Click image for larger version. 

Name:	bunny.jpg 
Views:	28 
Size:	6.1 KB 
ID:	844

    Now here is the higher resolution mesh:

    Click image for larger version. 

Name:	bunnyHIGHRES.jpg 
Views:	21 
Size:	7.4 KB 
ID:	845

    What's going on here? You think maybe I'm just throwing too many vertices at GLTriangleBatch? I think that is what the problem is but I'm not sure. Any ideas guys? Oh, one other thing. When I attempt to render to higher resolution mesh the program stops catching my keystrokes and I have to exit the program by killing it with task manager. So, I'm thinking maybe I'm just trying to do too much.
    Benjamin Barrett aka vindy
    "Our knowledge is finite, while our ignorance is infinite!"

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    723
    I had a quick look at the code in GLTriangleBatch; it doesn't seem to check for out of memory when the the temporary buffers are allocated. You might want to put a check in there. It is also possible that your mesh data has errors in it. Try loading the mesh into something like Blender just to make sure the mesh is ok.

  3. #3
    Intern Contributor
    Join Date
    May 2011
    Location
    Alabama, USA
    Posts
    65
    Thanks tonyo_au! I think you were right. GLTriangleBatch was running out of memory. So, I decided to write code to render the mesh myself and now its working fine. It's even faster too. Well, thanks again!
    Benjamin Barrett aka vindy
    "Our knowledge is finite, while our ignorance is infinite!"

Posting Permissions

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