Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asteroids example #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pgruenbacher
Copy link

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 GameFoundry/bsf#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.

@pgruenbacher
Copy link
Author

Screenshot from 2019-06-09 15-39-22

@pgruenbacher
Copy link
Author

also will be good use-case for LOD too once the renderer supports LOD.

@BearishSun
Copy link
Member

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.

@pgruenbacher
Copy link
Author

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

@BearishSun
Copy link
Member

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.

@pgruenbacher
Copy link
Author

pgruenbacher commented Jun 10, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants