Results 1 to 6 of 6

Thread: graphic problems

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2004
    Location
    Wil
    Posts
    3

    graphic problems

    hi all,

    i'm programming a voxel game and my problem is that i have to put a lot of cubes and if i do this there are some graphic errors. you can see lines between the cubes. here is a screenshot:

    please help me

    greetz sacredPenguin

  2. #2
    Guest

    Re: graphic problems

    Normally OpenGl does not draw such seems if you specify the exact same vertices coordinates for the adjacent polygons.
    Don't do something like :
    cube 1 right edge : center1 + 0.5
    cube 2 left edge : center2 - 0.5

    Just compute each vertice first, then send it :
    cube 1 right edge : vertice 3
    cube 2 left edge : vertice 3

    Of course, your particular OpenGL implementation (hardware/software) may be flawed, but it is n ot likely.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Aug 2004
    Location
    Angers, France
    Posts
    245

    Re: graphic problems

    The Voxel is really impressive !
    The .Product will make you .Believe

  4. #4
    Guest

    Re: graphic problems

    By the way I meant "seams" and not "seems"...

  5. #5
    Junior Member Newbie
    Join Date
    Aug 2004
    Location
    Wil
    Posts
    3

    Re: graphic problems

    but i use glutSolidCube and dont create the cubes by myself.

  6. #6
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: graphic problems

    You should create the cubes yourself, if you want the seams to disappear. It is not so hard. Or maybe use only integer coordinates, to eliminate floating point rounding errors.

Similar Threads

  1. Switchable Graphic Cards: Which Graphic card will OpenGL choose
    By harsha00790 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-09-2013, 06:28 AM
  2. Linker problems to GLEW (can't be my graphic card, can it)
    By GigaBass in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 01-01-2013, 05:45 PM
  3. graphic problems with radeon 9800
    By juhuhu in forum OpenGL: User Software
    Replies: 1
    Last Post: 10-02-2008, 10:06 PM
  4. c#, asp.net and graphic 3d
    By tl in forum OpenGL: Windows
    Replies: 0
    Last Post: 01-04-2005, 01:00 PM
  5. graphic inversion
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-27-2002, 01:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean