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 6 of 6

Thread: LOD,any idea??

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2004
    Posts
    7

    LOD,any idea??

    I want to reduce my object's vertex number dynamicly in the program but I can't find any way
    to do it,here's a function in the DX but I do not want to use it in an opengl program.
    And I can't find any document about it except for the terrain^How can i do it for ordinary object??
    Thanks for any help

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2004
    Posts
    11

    Re: LOD,any idea??

    personally, I would start by defining a vertex object, that I can assign a weighted value to. When I render my scene, if a vertex is more than a certain distance away, and it's weight value isn't high enough, then I would abstain from rendering that vertex. Now, this is a lot of work on your part, because you have to be able to figure out which vertexes can be eliminated at far off distances.
    capn_midnight | Captain Midnight | deviantArt
    ACM | SIGGRAPH | Generation5

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2004
    Posts
    7

    Re: LOD,any idea??

    But the problem is that it's complex to rebuild the face list after I elimated my vertex array.
    And I have no idea of how to do it in an ordinary object at all

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2004
    Posts
    11

    Re: LOD,any idea??


    okay, here's an idea that popped into my head involving binary trees. the numbers indicate levels of detail. One of the points in the white triangle is the root node of the tree, and the other two points in the triangle are the child nodes of the root node. Each of those child nodes is the parent node to one triangle at level 2, with two child nodes of their own to make 3 new triangles (3 of the points are duplicates). And it continues on down, recursively, until the shape of the circle is approximated.
    capn_midnight | Captain Midnight | deviantArt
    ACM | SIGGRAPH | Generation5

  5. #5
    Junior Member Newbie
    Join Date
    Mar 2004
    Posts
    7

    Re: LOD,any idea??

    OK,I'v got it!Thank you very much

  6. #6
    Junior Member Newbie
    Join Date
    Mar 2004
    Posts
    7

    Re: LOD,any idea??

    See this


    and next



    I can't connect the triangles correctly

Posting Permissions

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