Finally, The rendering has come full circle, I have a picture result!

This is a discussion on Finally, The rendering has come full circle, I have a picture result! within the Game Programming forums, part of the General Programming Boards category; Sweet....... Okay, so heres the gist of things I create a pool of objects, this is my Scene_Objects vector... EVERYTHING ...

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

    Finally, The rendering has come full circle, I have a picture result!

    Sweet.......

    Okay, so heres the gist of things

    I create a pool of objects, this is my Scene_Objects vector...

    EVERYTHING in the sceneobjects vector will have 4 main methods, getphysicsdata, getrenderdata, getsounddata, and update....

    I can then, for each method, create a pool of each piece of data, a pool for physics data, a pool for render data, a pool for sounddata.... Update is just a function that is affected by my AI engine.. which in turn updates lots of other things...

    Every time I add an object to my Scene_Objects pool, my methods pull from the object and use ID's to create resources for everything on my screen...

    If I delete from the Scene_Objects vector, I de-allocate resource based on the object ID, and finally, delete the object completely out of the vector....


    My DrawScene function will finally, now have the resources it needs in memory, as well as a pointer pointing to them given by the GetRenderData method,

    We set each pointer recieve from each model (no matter what the model pointer points to or is called) to a generic pointer, that is always changing, and points to anything that is sent to the render function via getrenderdata(). We loop this function for how many objects are in our scene_objects vector while the program is running

    The physics engine will work the same way, as well as sound and such...

    This is how my engine will work... 4tw
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >>I have a picture result!

    I clicked on your thread, where's my picture!

  3. #3
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,812
    I want a picture too!!
    Woop?

  4. #4
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    You have disgraced yourself and your family.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  5. #5
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    Lol the picture is nothing special, its just a picture of one model up on the screen. But it is placed by reading a vector of scene_objects that I can add/remove from at will, but currently I'm having trouble putting two on the same screen with the current method I'm using.
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  6. #6
    ---
    Join Date
    May 2004
    Posts
    1,379
    but currently I'm having trouble putting two on the same screen with the current method I'm using.
    That kind of defeats the purpose of a vector doesn't it?

  7. #7
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    I figured out the problem, its how I was handling resources. I wasnt.... Lol..

    I'm fixin it, might take a few days to put a system in :d.
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inserting a swf file in a windows application
    By face_master in forum Windows Programming
    Replies: 12
    Last Post: 05-03-2009, 12:29 PM
  2. Promblem with code
    By watchdogger in forum C Programming
    Replies: 18
    Last Post: 01-31-2009, 06:36 PM
  3. Type casting
    By Lionmane in forum C Programming
    Replies: 28
    Last Post: 08-20-2005, 03:16 PM
  4. Output problems with structures
    By Gkitty in forum C Programming
    Replies: 1
    Last Post: 12-16-2002, 05:27 AM
  5. hashing help
    By alokin in forum C Programming
    Replies: 17
    Last Post: 10-28-2002, 06:33 PM

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