Skip to content

nikvoronin/ClooToOpenGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.oO@ ClooToOpenGL @Oo.

Live rendering of Mandelbrot fractal with help of .NET, Cloo and OpenTK/SharpGL. Actually, collaboration of OpenCL and OpenGL.

cloo2opengl_v11

  • Left Mouse click to center image.
  • Scrool wheeeel to zoom/unzoom.
  • Cursor up/down - Increments/decrements the number of iterations (Shift+ would get x10 speed up)

At start it's looking for NVIDIA graphics card but you can start your own journey from changing this. Just replace the string "NVIDIA" to the "INTEL" or "AMD":

MainWindow.xaml.cs

private void Cloo_Initialize(OpenGLEventArgs args)
{
	[...]
	foreach (var p in ComputePlatform.Platforms)
		foreach(var d in p.Devices)
			if (d.Vendor.ToUpperInvariant().Contains("NVIDIA")) // "INTEL")) // "AMD"))
			[...]

Kernels Here

Since version 1.1 you can edit kernel which you can find under the /kernels folder. The kernel file could be edited in isolation of main application.

Deeper and Darker

cloo2opengl

cloo2opengl2