Thread: polygons vs. 3d models

  1. #1
    Unregistered
    Guest

    polygons vs. 3d models

    is having 3d models more efficient than just designing them into the program? for example:

    i got a building that could be built just using polygons, quadrics etc, but it is also possible to build it in a 3d modeler program, i need the processor's speed for other things. what should i do?

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Are you talking about hard coding vertices? That may be fine for small programs but when you have large worlds you will need space partitioning and 3D models.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Unregistered
    Guest
    i mean, if u could hard code the vertices, wouldnt the program run faster 'cuase it would already be in ram?

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Originally posted by Unregistered
    i mean, if u could hard code the vertices, wouldnt the program run faster 'cuase it would already be in ram?
    Well in DirectX (don't know about OpenGL) you have Index buffers and Vertex buffers you can write to. Hard coding would just be ridiculously tedious and probably wouldn't save you any speed. You can load models into the same vertex buffers without sacrificing much speed probably. Also, I don't think you would want to hard-code all the vertices for something like "Quake 3" would you?

  5. #5
    Unregistered
    Guest
    Originally posted by MrWizard


    Well in DirectX (don't know about OpenGL) you have Index buffers and Vertex buffers you can write to. Hard coding would just be ridiculously tedious and probably wouldn't save you any speed. You can load models into the same vertex buffers without sacrificing much speed probably. Also, I don't think you would want to hard-code all the vertices for something like "Quake 3" would you?
    lol, but then again, i wouldnt want to write something like quake 3 by myself to though

  6. #6
    Registered User Coder's Avatar
    Join Date
    Aug 2001
    Location
    Cairo, Egypt
    Posts
    128
    Originally posted by Unregistered
    i mean, if u could hard code the vertices, wouldnt the program run faster 'cuase it would already be in ram?
    Once you load your model, its vertices sit happily in your RAM, and I believe there'd be no difference.

    The speed loss would be caused by loading your vertices, but I doubt it'd be noticable with small numbers like hundreds of vertices. Unless you load something like 3 million vertices or so ( which is impossible to hardcode, I think ) there'll be no difference.
    Muhammad Haggag

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 3D models to in-game
    By Wes in forum Game Programming
    Replies: 2
    Last Post: 08-26-2004, 08:18 PM
  2. A 3D Program for my 3D models...?
    By Rune Hunter in forum C++ Programming
    Replies: 26
    Last Post: 08-19-2004, 10:04 AM
  3. API programs for 3d models...?
    By Rune Hunter in forum Game Programming
    Replies: 1
    Last Post: 08-18-2004, 09:48 AM
  4. importing 3D models into openGL
    By juniorCoder in forum Game Programming
    Replies: 1
    Last Post: 05-10-2004, 09:14 AM
  5. Deep Exploration, OpenGL, and 3d models
    By DavidP in forum Game Programming
    Replies: 18
    Last Post: 04-06-2003, 01:12 PM