Skip to content

using CUDA to compute Julia fractal, drawing using OpenGL, use win32 for touch input

Notifications You must be signed in to change notification settings

pongsagon/Julia-CUDA-GLinterop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

julia

Julia-CUDA-GLinterop

Using CUDA to compute Julia fractal, drawing using OpenGL, use win32 for touch input
Rendering at 4K, each pixel compute using 1200 iterations, running at 10-15fps on RTX4090
This version use CUDA/OpenGL interop to draw the result as a full screen texture quad. I am also using shader.h and some other gl code snippets from learnopengl.com by Joey de Vries to init some shader codes.

User guides

The code uses touch input. You can add glfw code for keyboard and mouse inputs
move one finger to pan
move two fingers up and down to zoom
move three fingers to change seed

Compiling using MSVC 2022 (WIP)

Library used

Acknowledgement

The Julia CUDA code is based on the code from "CUDA by examples" book by Jason Sanders and Edward Kandrot.
Shader.h is from learnopengl.com by Joey de Vries

About

using CUDA to compute Julia fractal, drawing using OpenGL, use win32 for touch input

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages