BVH (Bounding Volume Hierarchy)
An acceleration structure allows to skip the vast majority of intersection tests. For large numbers of primitives this results in dramatic speedups.
While there are many types of acceleration structures, and other options for BVHs, too, a BVH with Axis Aligned ...
Search found 188 matches
- Sat Mar 24, 2018 10:39 am
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
- Thu Mar 15, 2018 8:16 pm
- Forum: 3D Programming
- Topic: demo 3D - Asteroid
- Replies: 16
- Views: 9134
Re: demo 3D - Asteroid
With that change, while not perfect, to me it feels closer to what a big asteroid/moon should look like.
But that might be a matter of taste.
But that might be a matter of taste.
- Wed Mar 14, 2018 11:38 am
- Forum: 3D Programming
- Topic: demo 3D - Asteroid
- Replies: 16
- Views: 9134
Re: demo 3D - Asteroid
Doing procedural textures and geometry is probably the thing I like most apart from ray tracing. And I really like what you have done here.
Even up close the asteroids look very good.
I also like how you're experimenting with different noise functions, although when looking at the 'F1' asteroid I ...
Even up close the asteroids look very good.
I also like how you're experimenting with different noise functions, although when looking at the 'F1' asteroid I ...
- Tue Mar 13, 2018 10:20 pm
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
Re: ray tracing tutorial
The triangle intersection method I've chose here is relative easy to understand and very flexible.
It's main downside is, it suffers from high rounding errors, which can result in jagged edges. Switching to doubles can fix that, but I plan to show a different method without that drawback in the ...
It's main downside is, it suffers from high rounding errors, which can result in jagged edges. Switching to doubles can fix that, but I plan to show a different method without that drawback in the ...
- Tue Mar 06, 2018 11:24 am
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
Re: ray tracing tutorial
Thanks guys!
@pf shadoko
I'd like to implement a material system (and maybe a camera) before going any further down the quality/realism road. It's already quite messy as it is.
But that stuff will make the code much more complex, so my thought was to take a step back, and do tutorials about ...
@pf shadoko
I'd like to implement a material system (and maybe a camera) before going any further down the quality/realism road. It's already quite messy as it is.
But that stuff will make the code much more complex, so my thought was to take a step back, and do tutorials about ...
- Sat Mar 03, 2018 2:54 pm
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
Re: ray tracing tutorial
Refraction.
I am rather unhappy with this one as it looks crappy and I can't really explain the math.
Making it look better would require much more code for scene and material setup, and probably make it more confusing.
So I just post it as is, for now, to get it out of the way.
ScreenWidth = 600 ...
I am rather unhappy with this one as it looks crappy and I can't really explain the math.
Making it look better would require much more code for scene and material setup, and probably make it more confusing.
So I just post it as is, for now, to get it out of the way.
ScreenWidth = 600 ...
- Sat Mar 03, 2018 2:43 pm
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
Re: ray tracing tutorial
Thanks for the nice words and for the 'transformation'.
Stuff like that can improve readability or confuse the heck out of people. And I have a hard time judging that, as I know what I'm coding (well, most of the time anyways).
So for now I will stick to the simple implementation.

Stuff like that can improve readability or confuse the heck out of people. And I have a hard time judging that, as I know what I'm coding (well, most of the time anyways).
So for now I will stick to the simple implementation.
- Fri Mar 02, 2018 1:59 pm
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
Re: ray tracing tutorial
pf shadoko, thanks for the reply.
I love using macros, pointers, assembly... but I simply can't tell what makes stuff simpler or more confusing for the regular PB user.
Have you looked at the short lived 'experiments in ray tracing' series I've done here?
I thought I've kept that simple at the time ...
I love using macros, pointers, assembly... but I simply can't tell what makes stuff simpler or more confusing for the regular PB user.
Have you looked at the short lived 'experiments in ray tracing' series I've done here?
I thought I've kept that simple at the time ...
- Tue Feb 27, 2018 8:50 pm
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
Re: ray tracing tutorial
And now reflections.
The lack of specular highlight and ambient light are rather obvious, but the usual way to do this for simple ray tracers are actually cheats and doing the real deal would probably to much for this tutorial series.
I'll hopefully squeeze in a part with a bunch of those cheats ...
The lack of specular highlight and ambient light are rather obvious, but the usual way to do this for simple ray tracers are actually cheats and doing the real deal would probably to much for this tutorial series.
I'll hopefully squeeze in a part with a bunch of those cheats ...
- Tue Feb 27, 2018 1:30 pm
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
Re: ray tracing tutorial
Thanks for the nice words guys! :D
@kurzer: I've started ray tracing on the Amiga in the 80's too, but was more interested in coding one, as I lack any artistic skills.
@pf shadoko: That's me on a good day, you should see a current picture. :wink:
@DK_Peter: I thought about that, but I didn't ...
@kurzer: I've started ray tracing on the Amiga in the 80's too, but was more interested in coding one, as I lack any artistic skills.
@pf shadoko: That's me on a good day, you should see a current picture. :wink:
@DK_Peter: I thought about that, but I didn't ...
- Sun Feb 25, 2018 9:11 pm
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
Re: ray tracing tutorial
I am really happy you guys like it so far, because I was rather unsure about it.
I've taken a day off today, as I'm not feeling to well, so nothing for tomorrow.
I've taken a day off today, as I'm not feeling to well, so nothing for tomorrow.

- Sun Feb 25, 2018 8:37 am
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
Re: ray tracing tutorial
With light we need shadow too...
(I am trying to keep the comments in the code down, to not wear you down with walls of text stating the obvious, but figuring out what is obvious and what just seems that way to me, because I am doing this for so long, is close to impossible for me. So, if there are ...
(I am trying to keep the comments in the code down, to not wear you down with walls of text stating the obvious, but figuring out what is obvious and what just seems that way to me, because I am doing this for so long, is close to impossible for me. So, if there are ...
- Sat Feb 24, 2018 7:39 am
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
Re: ray tracing tutorial
The result from the first code looked more like a filled circle than a sphere, and we actually shouldn't have been able to see it, because there was no light. Let's change that!
ScreenWidth = 600 : ScreenHeight = 400
; Because we will use vectors and coordinates more and more, lets create a ...
ScreenWidth = 600 : ScreenHeight = 400
; Because we will use vectors and coordinates more and more, lets create a ...
- Fri Feb 23, 2018 4:48 pm
- Forum: 3D Programming
- Topic: ray tracing tutorial
- Replies: 24
- Views: 12420
ray tracing tutorial
Hi Guys,
I've played with the idea of posting a tutorial for ray tracing for many years now, but wasn't quite happy with what I was coming up with. Explaining stuff and neat, simple coding aren't my strong suit...
But whatever, I will just give it a try.
I will focus on making the individual ...
I've played with the idea of posting a tutorial for ray tracing for many years now, but wasn't quite happy with what I was coming up with. Explaining stuff and neat, simple coding aren't my strong suit...
But whatever, I will just give it a try.
I will focus on making the individual ...
- Wed Jan 24, 2018 9:11 pm
- Forum: 3D Programming
- Topic: subjecting a huge number of balls to vibration
- Replies: 4
- Views: 2613
Re: subjecting a huge number of balls to vibration
Well, it's just guesswork by me, but I assume that the plate in the video actually deforms like if you grab a long wobbly stick in the center and shake it up and down. And at certain frequencies parts of the plate simply become static. The particles just get bounced around on the plate until they ...