Drawing a sine wave. OpenTK, OpenGL 3.0, C#

Published November 23, 2019
Advertisement

This example shows a simple way to draw a sin wave using modern OpenGL and C#

GitHub: https://github.com/8Observer8/Sin_ConsoleAppOpenTkOpenGL30CSharp
Source Code in Archive: Sin_ConsoleAppOpenTkOpenGL30CSharp.zip

These are screenshots for different steps: Pi / 2, Pi / 4, Pi / 8, Pi / 16

Pi / 2:

Step=Pi_2.png

Pi / 4:

Step=Pi_4.png

Pi / 8:

Step=Pi_8.png

Pi / 16:

Step=Pi_16.png

1 likes 1 comments

Comments

8Observer8
7 hours ago, fleabay said:

Why are you selling something for 1 cent?

It is a mistake. It must be 10 cents. I fixed it. Because I have 1000 downloads for 20 days of this example on another (Russian) forum. If 1000 persons buy it for 10 cents I will get $100. I will try. Maybe it will work.

I will add a text on this graph (pi/2, y = sin(x) and so on)

November 18, 2019 08:47 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement