Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Character Limitations

  1. #1
    Junior Member Newbie
    Join Date
    May 2010
    Posts
    5

    Character Limitations

    I have created a successful MUD using C++, and am now moving into OpenGL to begin transitioning the game mechanics into a 3d world. I have already mastered the tutorials on OpenGL, such as being able to create terrain, use collision detection, and place characters on the terrain. However, I have one question on theory...

    How many polygons would be the max for a character, assuming there were 100 characters loaded at any one time. I don't even know if I'm asking it properly, but from my Blender experience, the more polygons you have, the more detail you have, and I assume it would slow down your game.

    Is there a suggestion on this information? Or perhaps just general "rendering file size" or something per character?

  2. #2
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,261

    Re: Character Limitations

    650 million triangles per second, if all get culled .

    Anyway, in modern games with up to 20 skinned meshes onscreen, 15k tris/mesh is the upper limit; You should target 2k-5k tris, imho. And make heavy use of LOD.

  3. #3
    Junior Member Newbie
    Join Date
    May 2010
    Posts
    5

    Re: Character Limitations

    StartEdit- Awesome! I just did some research into LOD, which was my main re-question, and found out how you can parent multiple detail levels with dependencies like distance and such. So I answered my own question there. -EndEdit

    This is just a follow up question on the same subject that you may not know, so I'll be fine looking elsewhere if you say so...:
    How do I know how many "tri's" my character has (If you don't know, I can look more into Blender Help Files). Lastly, My humanoid I created is mostly made of square mesh areas, with maybe 6% triangular ares. Does tri's simply refer to these faces? Or is he converted into all triangles when he renders or something?

  4. #4
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,261

    Re: Character Limitations

    Press Ctrl+T in editmode, to make sure it's converted to triangles, and see the top status bar. "Ve" means count of vertices, Ed = edges, Fa=faces (triangles).


  5. #5
    Junior Member Newbie
    Join Date
    May 2010
    Posts
    5

    Re: Character Limitations

    Thanks Homie G-funk Masta Flex. I notice your model is broken into triangles, but I heard squares are the best way to go... is that fail advice? Perhaps the person I heard from didn't focus on video games? What's your take on it, or have you not really compared? My main concern is how efficient it is in OpenGL.

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

    Re: Character Limitations

    Quads are not being used commonly because they can be non-planar.

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

    Re: Character Limitations

    Quad is great as a control cage for catmull-clark subdivision meshes, so it is good for modeler artists. Triangles tend to introduce ugly interpolations.

    But ultimately, the rendering must be done with triangles, so go with triangles for all the low level rendering engine.

    Even OpenGL quads are rasterized as a pair of triangles anyway. But the dividing line is choosen by the GPU, and it is better to control it yourself. GPU hardware only works on triangle.

  8. #8
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,261

    Re: Character Limitations

    I failed to note "and then do Ctrl+Z, to go back to editing quads" .
    Keep your skinmesh faces as quads for as long as you can! Only the gpu needs the data as triangles.
    1) Quads are easier to handle when modeling,
    2) When you subdivide (to add extra detail), rogue triangles will usually create nasty geometry that is hard or impossible to fix.

    But oh well, ever since Blender has the Sculpt mode and its subdiv, it's easy to keep everything as 500k tris and then simply Decimate.
    The model in the screenshot already went through model_rough (in quads), sculpt, paint, decimate; that's why it's in triangles.

  9. #9
    Junior Member Newbie
    Join Date
    Mar 2004
    Posts
    22

    Re: Character Limitations

    Quote Originally Posted by ZbuffeR
    GPU hardware only works on triangle.
    For OpenGL 1.x this was up to the implementation. Has this changed with the newer specs?

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

    Re: Character Limitations

    Quote Originally Posted by HAL-10K
    Quote Originally Posted by ZbuffeR
    GPU hardware only works on triangle.
    For OpenGL 1.x this was up to the implementation. Has this changed with the newer specs?
    The GL3+ specs deprecates quads.
    And in practice I have never heard of actual hardware implementation of a quad-based renderer.


    EDIT: the only GPU with actual quad handling would be Nvidia first 3D accelerator, back in 1995 : http://en.wikipedia.org/wiki/NV1

Posting Permissions

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