WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Convert the 2D Bar Graph visualization into 3D Bar Graph visualization. #1

@Subhanshu2406

Description

@Subhanshu2406

Description

Transform the existing 2D Bar Graph Visualization into a 3D Bar Graph Visualization using Perspective Projection. The x-axis represents different frequencies, while the y-axis represents the amplitudes of those frequencies. The z-axis introduces time variation, meaning that bars along the z-axis represent the amplitudes of the same frequency at different time intervals.

Conceptually, think of the x-y plane as a bar graph visualization at a specific point in time. As time progresses, this x-y plane moves along the negative z-axis, generating a new bar graph at each step. This visualization should be implemented as a new feature in the src/visualizations/ directory.

Files

Refer to the following files for the current implementation:

  • src/visualizations/BarVisualization.cpp (for the current 2D bar graph visualization)
  • src/visualizations/vertexShader.glsl (for the current 2D vertex inout and output for the fragment shader)
  • src/main.cpp (for adding the new type of visualizations as a choice)

Actual Behaviour

Image
Currently it is a 2D Bar graph visualization.

Expected Behaviour

Image
The updated visualization should resemble this example, where each color represents a specific frequency, and the bars along the z-axis show amplitude changes over time.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions