bsfExamples
bsfExamples copied to clipboard
Asteroids example
Implemented example for asteroids from https://github.com/GameTechDev/asteroids_d3d12. The purpose meant for testing 1000+ components, custom mesh generation, instancing, batch rendering. It's also meant to serve as baseline benchmark against the https://github.com/GameFoundry/bsf/issues/339 ECS implementation I've been investigating. Ideally the ECS demo should have much faster updating and render batching of the asteroids. At the moment I just have it relatively working, but I'm not sure how to put in custom assets into bsfExample. I also wasn't sure how the original asteroids demo was doing UV mapping cause I couldn't find it in the code.
Some other things I noted:
// this doesn't work, is an issue?
// bool discard = false;
// HMesh mesh = Mesh::create(meshDesc);
// mesh->writeData(meshData, discard);
// but initializing with meshData does work...
HMesh mesh = Mesh::create(meshData);
I haven't implemented textures for the asteroids yet.
also will be good use-case for LOD too once the renderer supports LOD.
Nice work, very useful benchmark to have. Once you feel the benchmark is ready you can upload the assets somewhere and I'll add them to the data package.
Well the meshes are dynamically generated, and the intel demo has the textures dynamically generated too. The only asset is the space skymap. @BearishSun can you import dds texture as skymap? And how do you actually generate the .asset files? https://github.com/GameTechDev/asteroids_d3d12/blob/master/starbox_1024.dds
You import the raw resource and then save it: http://docs.bsframework.io/nightly/User_Manuals/Resources/resourceBasicsAndImport.html
I'm not sure if DDS is supported, quite possibly not.
oh ok. i wasn't sure if the bsfImportTool did that as well, but it gives no cli options so I wasn't sure.
On Mon, Jun 10, 2019 at 1:21 PM Marko Pintera [email protected] wrote:
You import the raw resource and then save it: http://docs.bsframework.io/nightly/User_Manuals/Resources/resourceBasicsAndImport.html
I'm not sure if DDS is supported, quite possibly not.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/GameFoundry/bsfExamples/pull/19?email_source=notifications&email_token=AAZNT5V6EGTHHUJUS2ZTRELPZ2ERDA5CNFSM4HWNML32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXKRB4I#issuecomment-500502769, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZNT5UBCDRG577RCJBXFCTPZ2ERDANCNFSM4HWNML3Q .