Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411281 Posts in 69324 Topics- by 58380 Members - Latest Member: bob1029

March 28, 2024, 10:32:02 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)OpenRC - OpenCL Ray Caster in Java
Pages: [1]
Print
Author Topic: OpenRC - OpenCL Ray Caster in Java  (Read 772 times)
WavePropagation
Level 0
*


View Profile
« on: September 01, 2015, 12:50:40 PM »

Hello TIGForums!

I'm curious to hear your opinions and feedback on my OpenCL Ray Caster (Ray Tracer) engine project written in Java.

Do you have any suggestions for features I should add, or improvements I should make? Did you find any problems when running it?

I host the project at GitHub, so the link to it is the following: https://github.com/macroing/OpenRC

An image says more than a thousand words, so here you go.



Edit #1: The image has been updated.
Edit #2: The image has been updated.
Edit #3: The image has been updated.
« Last Edit: September 29, 2015, 09:31:43 AM by WavePropagation » Logged
InfiniteStateMachine
Level 10
*****



View Profile
« Reply #1 on: September 29, 2015, 11:06:56 AM »

Nice work Smiley

So as you are using OpenCL I can assume that this is "software" rendered? In that it may or may not use the GPU but is written in a way where it will run without a GPU?
Logged

WavePropagation
Level 0
*


View Profile
« Reply #2 on: September 29, 2015, 12:08:57 PM »

Thanks! Smiley

Well, it uses the GPU to calculate the colors of each pixel, but it renders a BufferedImage using the Java2D API. Rendering with the Java2D API may itself be hardware accelerated, but no guarantees can be made, as far as I can tell. So, I believe it renders it on the CPU.

You can still run the program even if you don't have OpenCL. This is possible because the library I use as OpenCL-binding (Aparapi), will run it on a Java Thread Pool if it cannot run it on the GPU.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic