Go to bottom

Raymarching Beginners' Thread

category: code [glöplog]
smash: thats great news , I've got a 6950 here I'll give it a try on that too.
added on the 2011-05-30 17:33:51 by auld auld
smash: any idea how that works on ati gpus? I have a radeon 2600 here (8xxx series equivalent) and a 4xxx series ati at work.
added on the 2011-05-30 17:42:54 by psonice psonice
smash: ye. what about pixels that are not preculled and are marched behind the actual framebuffers depth. those are the ones with lots of potential to waste performance due to double calculation. can't help it tho.
added on the 2011-05-30 17:53:00 by yumeji yumeji
sort front to back :)
added on the 2011-05-30 19:12:20 by smash smash
I thought that's what the z-Buffer's for ;)
added on the 2011-05-30 19:21:34 by raer raer
The true reason for having z-buffers is to prevent heavy pixel shaders running too many times rather than actually sorting anything!
added on the 2011-05-30 20:28:42 by msqrt msqrt
I was joking.
added on the 2011-05-30 21:50:17 by raer raer
I know.
added on the 2011-05-31 02:30:41 by msqrt msqrt
For real life speed test you can try MF Real.

Z-writing hurts only if your scene is dependent of early z-culling.
added on the 2011-05-31 07:59:02 by pommak pommak
I just stumbled upon this one: http://nippe.teknopapu.net/index.php/archives/124#more-124
Thanks for the "inspiration: pouet" credits. *cough*
That's at least 85% the code I posted some pages ago.

In addition to that - I feel kinda elite that people started ripping off some of my really crappy code.
added on the 2011-06-02 15:37:30 by las las
Well, he does pretty much admit that he's copied the code and fiddled with it until it works. And from his description, I'm not sure he understands what raymarching is :D

I need to get back onto my raytracing stuff. I have some fresh ideas that need trying out. But, too busy with iOS stuff.. for the past couple of weeks I've been chasing ultimate performance for image processing, figuring out obscure image formats and such :/ Complexity goes up with speed it seems. It's teaching me a lot though, I think I'll have some new ideas for optimising raymarching from this :)
added on the 2011-06-02 16:01:25 by psonice psonice
to all : some of my raymarching scripts (including the one with reflected cubes i posted some weeks ago) can be downloaded here :
http://www.advsys.net/ken/polydraw.zip (check tigrou folder)

I try to keep it simple, hope they can be usefull for raymarching beginners :D

added on the 2011-06-02 17:10:51 by Tigrou Tigrou
That fireball is so bad :|
I couldn't even move the noise function.

Contact him and see what happens, we love a good flame.
added on the 2011-06-02 18:32:41 by xernobyl xernobyl
Ahem, I see you guys noticed my webgl experiment with crappy code "stolen" from this thread before I had a chance to stop by and give the link to you myself. Psonice, you're right, I don't fully understand raymarching yet but one can always learn, right?

Oh and flame on if you feel like it.
added on the 2011-06-02 20:12:55 by eimink eimink
I'm already done with flaming you - you just owe me some beers and everything is fine. :D

Some guys here are faster then you think ;)
added on the 2011-06-02 20:18:26 by las las
@las: "then you think"? Apparently you are too fast to write properly - slow down and then get your then/than's right.
las, sure, I can buy you beer if we happen to meet at parties. :D Anyway, I'll go back to my corner try to learn more about raymarching.
added on the 2011-06-02 20:39:31 by eimink eimink
Lord Graga. Sir, Yes sir! You are right of course.
If you prefer german, just tell me - I prefer to write pouetish here - and it seems that you perfectly understood what I wanted to express.

eimink: Go ahead - start being awesome. :)
added on the 2011-06-02 20:54:03 by las las
It seems that you perfectly understood what I wanted to express.
u iz puting teh bar 2 low d00d.
added on the 2011-06-02 22:28:21 by ferris ferris
you will never understand raymarching. It's a special kind of black magic invented by a few chosen coders from the demoscene. Some day, the game industry will catch up and they will be in endless moral debt.
added on the 2011-06-02 23:26:18 by Hyde Hyde
hyde: damn right. Ever seen rasterbars in a PC game? 20 years, and they still can't do it!

eimink: damn right, but instead of taunting us and running off, why not join us here? Ask some questions, post up your experiments, flame everyone, and agree with hyde because he's always right (and if he isn't, he has a belt ready).

I recommend a simple challenge to start off, like raymarching a sphere without any copied code.
added on the 2011-06-02 23:39:47 by psonice psonice
raymarching a sphere without any copied code

how do you for without for'ing?
added on the 2011-06-02 23:48:05 by xernobyl xernobyl
Note: while's don't usually work on shaders.
added on the 2011-06-02 23:48:28 by xernobyl xernobyl


Go to top