Renderable Versus Logical Objects

This is a discussion on Renderable Versus Logical Objects within the Game Programming forums, part of the General Programming Boards category; Is the main reason to have these two seperated so when you're doing frustrum culls, and it happens to exclude ...

  1. #1
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964

    Renderable Versus Logical Objects

    Is the main reason to have these two seperated so when you're doing frustrum culls, and it happens to exclude an object outside of the screen, but the computing for the object needs to be there, just not the picture, you can simply do that?

    I'm thinkin if you have a troll camp just out of your view distance and theyre baking a prisoner alive you want that logical action going on, you just don't want to draw it.. so you simply delete the renderable representation of the object and then keep performing calculations for their logic..

    Right?

    Or am I missing the idea of the thing completely?
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    You need to setup a distance at which logical objects are still 'alive'. Of course this distance will be relative to your game and game system. But yes you have the general idea.

    If you want real-time updating of all objects in the world then your system had better be pretty fast or it will bring the game to a crawl.

    One way to do it is to 'sectorize' your world and then quadtree that sector.

    There is one problem with this however. It does not work well for moving objects. When an object moves out of the cell boundaries or out of the cell inside of the large cell, it is time consuming to update.

  3. #3
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    Well, there is a game called The elder Scrolls: Morrowind, I'm pretty sure it is set up in cells, but you can see across to the next cell in outside terrains, and see objects moving...

    Do they just use an override mechanism to make things that are close to you active, no matter what cell theyre in?

    What would you guess?
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    Yes I have that game.

    I'm not sure how they do it, but I would imagine moving objects are not part of the quadtree. Look how many moving objects there are as opposed to non-moving. It probably wouldn't take much time to update them w/o using the quadtree.

  5. #5
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    Good point :d
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  6. #6
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    Moving objects are probably rendered with LOD (Level Of Detail) technique.

    -psychopath
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. most efficient way to write filestream objects?
    By darsunt in forum C++ Programming
    Replies: 3
    Last Post: 01-26-2009, 04:17 PM
  2. Replies: 60
    Last Post: 12-20-2005, 10:36 PM
  3. Question about cout an stack object?
    By joenching in forum C++ Programming
    Replies: 8
    Last Post: 05-08-2005, 10:10 PM
  4. chain of objects within pop framework help needed
    By Davey in forum C++ Programming
    Replies: 0
    Last Post: 04-15-2004, 10:01 AM
  5. array of objects?
    By *~*~*~* in forum C++ Programming
    Replies: 4
    Last Post: 05-31-2003, 05:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21