Hi,
I've reached the point that am acceptably satisfied with the rendering part of my 3d engine.
The next step is addind the posibility to insert entities in my 'scene', meaning game objects.
As a start I'm first going to add some random spheres which the player can shoot, after which they should be removed from the game entities list.
For rendering I currently load the whole scene and all it's meshes at startup, the renderqeue is created afterwards (one time) based on the scene contents.
My questions;
- I plan to have a pointer in the GameObject class, to the corresponding mesh instance (containing renderables).
That way I can control entities and their visibility for rondering, through the GameObjects. Is this the way to go?
- Would you simply update the full list of renderables after an entity is inserted or removed, or would you keep a separate renderqueue for game objects which will be inserted/ removed frequently? (the 1st means updating the whole renderqueue each time, including static world mesh instances/ renderables, sorting on materials, shaders etc.).
To be honest I need some pointers on where to start and what principles would be good to follow.
Any hints on articles on this are also really appreciated.