Devlogs
Update 2
Posted December 01, 2019 by M17D05
Summary of Week#2
Work Done:
- Using my geometry and linking with particle to create one object geometry
- I am stuck at drawing multiple particle, I could have asked my professor, but I want to find on my own, right now, I am trying to draw multiple objects like this:
- direct3dImmediateContext->DrawIndexedInstanced(4, PARTICLE_COUNT, 0, 0, 0); (Direct3D)
- for(int i = 0; i < PARTICLE_COUNT; i++)
- {
- glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
- } (Open GL)
- Also for doing this, I added extern PFNGLVERTEXATTRIBDIVISORPROC glVertexAttribDivisor; inside OpenGlExtensions
- As for the interface, I am using the similar to how we are doing for geometry and effect and I am using “eae6320::Graphics::cParticle* m_particleContainer[MAX_PARTICLE];” in my bucket
Next Week:
- Rendering multiple particles
- Creating a interface so that everyone can easily use it