Author Topic: Sphere Flake with raytracing  (Read 3184 times)

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Sphere Flake with raytracing
« Reply #15 on: December 26, 2017, 05:17:27 AM »
Another texture for spheres: Perlin's marble
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Sphere Flake with raytracing
« Reply #16 on: December 29, 2017, 03:52:26 AM »
One step more. A bitmap file mapped on an sphere. In the pic, the Perlin marble and the world map and a few small balls.

What the f**k, this deserves a tune.
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

HSE

  • Member
  • ****
  • Posts: 829
  • <AMD>< 7-32>
Re: Sphere Flake with raytracing
« Reply #17 on: December 29, 2017, 04:56:05 AM »
Better this to show your images  :t 
 (note the play between the camera and Asja Kadric)

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Sphere Flake with raytracing
« Reply #18 on: December 29, 2017, 05:04:30 AM »
That's a very good music. One of the Epic Music as you said. I like it a lot. :t
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

Siekmanski

  • Member
  • *****
  • Posts: 1674
Re: Sphere Flake with raytracing
« Reply #19 on: December 29, 2017, 06:59:45 AM »
Hi caballero,

Awesome results.  8)
Have you looked into ray marching? It's faster than ray tracing.
Ray marching is a specific algorithm, a variant on ray casting where samples are taken down a line to test for intersections or other criteria.
This is easier to implement and allows for speed optimizations via number of samples.
I'm studying pixel shaders at the moment and have the basic code running now.
This is really cool stuff.
Creative coders use backward thinking techniques as a strategy.

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Sphere Flake with raytracing
« Reply #20 on: December 29, 2017, 07:11:34 AM »
I didn't know anything about ray marching, I will have a look to it as soon as I can. I am a heavy block that has difficulty moving :biggrin:, I need to go little by little. My intention was to learn as much as possible of ray tracing and then get it to move fluently to make some demo.

Yes, shaders coding are really cool, I have seen some awesome demos with that. I'm waiting for your news :t.
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

Siekmanski

  • Member
  • *****
  • Posts: 1674
Re: Sphere Flake with raytracing
« Reply #21 on: December 29, 2017, 07:30:28 AM »
I'm new to this topic and have much to learn.
There are some great ray marching examples to learn from on https://www.shadertoy.com/
And there are some tutorials on youtube too.
Creative coders use backward thinking techniques as a strategy.

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Sphere Flake with raytracing
« Reply #22 on: December 29, 2017, 07:46:41 AM »
Related to shaders, ray tracing, etc, this is a recurrent page, by Íñigo Quilez
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

Siekmanski

  • Member
  • *****
  • Posts: 1674
Re: Sphere Flake with raytracing
« Reply #23 on: December 29, 2017, 07:56:07 AM »
Íñigo Quílez is one of the best Demo programmers in the world, Shadertoy is build by him too.
His nick name is IQ.
This is his contribution at Breakpoint 2009 and the winning 4k intro.

https://www.youtube.com/watch?v=_YWMGuh15nE
Creative coders use backward thinking techniques as a strategy.

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Sphere Flake with raytracing
« Reply #24 on: December 29, 2017, 08:11:23 AM »
Impressive what fit in just 4kb, if I'm not wrong, the sound is produced also by the code
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

Siekmanski

  • Member
  • *****
  • Posts: 1674
Re: Sphere Flake with raytracing
« Reply #25 on: December 29, 2017, 08:21:51 AM »
Impressive what fit in just 4kb, if I'm not wrong, the sound is produced also by the code

Yeah, it's all in those 4kb
They use a "linker-cruncher" named crinkler to compress the code. www.crinkler.net
Creative coders use backward thinking techniques as a strategy.

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Sphere Flake with raytracing
« Reply #26 on: January 02, 2018, 12:01:32 AM »
Penumbra and two kind of light sources. Maybe a bit imprecise yet.
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Sphere Flake with raytracing
« Reply #27 on: January 02, 2018, 03:04:27 AM »
Evidentelly, increasing the number of rays, increases the definition of the image. But I wonder if this is the desirable technique or rather to ensure that the rays do not overlap, which in itself would require more cycle. Or perhaps the use of a random number generation function more prone to generate different numbers.
 :eusa_boohoo:Valerie
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

HSE

  • Member
  • ****
  • Posts: 829
  • <AMD>< 7-32>
Re: Sphere Flake with raytracing
« Reply #28 on: January 02, 2018, 04:49:10 AM »
Perhaps worth the price seconfd option  :t

Trying to escape from the 80's you sended: https://www.youtube.com/watch?v=VJboSby7nW0

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Sphere Flake with raytracing
« Reply #29 on: January 02, 2018, 05:22:28 AM »
Nice video :t. You have some musical instruments with which you expect a certain type of sound, wonderful by the way, but from which you can extract another completely different, unexpected and also great, right? Which reminds me of this scene from the movie "top secret" :biggrin:
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -