Quote:
So we have our Object, lets call him a.. hmm, a carrot top.. yes..
So, carrot top has like, this bit of information, that people need to draw him... (we'll deal with textures first)...
So carrot goes over to Resource Cache, and resource cache asks wtf do you look like carrot top...
Carrot top is all like, "carrot.jpeg".... and resource cache is like, noob, and he creates a pointer to a resource struct sizeof whatever carrot top rambles about... which we all know could be a lot..
So resource cache is like, okay, sweet, now we have your data structure, I'll throw this in resource container blah, in resource slot ***37*** <--- OBJECT ID!!!...
Carrot top is like, sweet, now I know what object ID I am... and so he heads over to the render list... renderlist is like, dude, carrot top, WTF are you?
And carrot replies, I'm a number 37 bizaaaatch... and renderlist checks out container 37, hmm, carrot.jpeg...
Then renderlist heads over to render engine, hes all like, we need a number 37 please, a "carrot.jpeg".... renderengine is all like, ANOTHER CARROT TOP?!
He draws it reluctantly...
End story
You know, in the picture you sent me you appear to be about 18 years old. None of this is particularly easy, and although bubba and I have clashed before he doesn't really deserve the sarcasm. I have just given you everything I do for adding a milkshape3d model to the renderer. You implied that giving you code would help you, so I've given you the swamp of code that I use to perform one very mundane, very specific task in an engine of ~30,000 lines of code. If you still are having trouble, we are going to go back to metaphors, but ultimately you will learn by trying stuff, being frustrated (which is a good sign, shows you are trying) and finding what works on your own.