realtime raytracer >> Gaming & Board Games >> My Forum
My Forum

My Forum



SearchSearch   Users   Registration   Entrance
Today: 06.07.2025 - 19:48:55
Pages:  1  2  3  

realtime raytracer

Advertising

.
AuthorMessage

Zack

user




Statistics:
Messages: 99
Registration: 01.30.2003

realtime raytracing very non-optimized version burns cpu cycles!! on my machine it's smooth at 150*150, but starts to get choppy around 200*200. animated gif, lo-fi colors (realtime dithered to 256 colors): the code is ugly at times, haven't prettified it, or structured it properly. lots of short-hands and hacks, single one-directional light (like the sun), diffuse lighting (no specular), one level of reflection only (no recursion in js), the eye/camera and fov (field of view) is a bit messed up. i might do some refactoring/cleanup, etc... and, i would be grateful for any ideas about optimizations! all of a sudden the triggers stopped working, they're supposed to start ('1') and stop ('0') the animation, or do single-frame rendering ('2'). but you can also change the anim time manually with the 'theta' slider - ccernn

---------------------
Message # 1 12.08.24 - 11:02:55
RE: realtime raytracer

Alibabajun

user




Statistics:
Messages: 391
Registration: 08.19.2001

this is awesome! i'm surprised it takes such little code to do this and renders as fast as it does

---------------------
Message # 2 12.08.24 - 11:11:52
RE: realtime raytracer

flea7

user




Statistics:
Messages: 173
Registration: 08.11.2002

Nice! Now make a raytracing reverb :).

---------------------
Message # 3 12.08.24 - 11:19:21
RE: realtime raytracer

scottie

user




Statistics:
Messages: 18
Registration: 09.07.2003

the gfx_setpixel() has no mercy on my cpu. :O i would suggest more primitive spheres if you are planning to make the fx with real time animation. take a look at senocular's planets demo: a sphere constructed from lots of rectangles (gfx_rectto()) may be lot faster and not bad looking either - stylized it can still has primitive shadows and reflections.

---------------------
Scottie Sharpe 68 2002 M20 Conversion, G265, Ireland coilovers, e12 brakes 88 Dinan M5, M88/3 Conversion, Dinan Stage 4, Miller MAF and WAR, Perfect Power SMT6, B&B exhaust, Racelogic Traction Control and Launch 95 525i 87 K100RT 62 R60/2 Webmaster f
Message # 4 12.08.24 - 11:26:13
RE: realtime raytracer

opes

user




Statistics:
Messages: 96
Registration: 05.17.2001

cool, for speed you could try tweaking it to render random rays, and make them blobs rather than pixels (so you get motion blur and weird quality) edit: I couldn't help myself, here's a faster, cartoony mod:

---------------------
Lightly modded E36 328is
Message # 5 12.08.24 - 11:35:31
RE: realtime raytracer

DK325IS

user




Statistics:
Messages: 48
Registration: 08.01.2003

so, does this mean we'll soon see a JSDoom? Would be neat to somehow tie the music or midi to in-game graphics or control.

---------------------
Message # 6 12.08.24 - 11:45:19
RE: realtime raytracer

Croak

user




Statistics:
Messages: 4,150
Registration: 11.16.2002

I think I may have to cancel my forum account so someone else can use my username. You've earnt it.

---------------------
93 325is - total M3 conversion and more - Dinan SC kit - RMS aftercooler and tuning - 395rwhp on 91 octane. "....She may not look like much, but she's got it where it counts, kid. I've made a lot of special modifications myself." -Han Solo CarDomain
Message # 7 12.08.24 - 11:49:37
RE: realtime raytracer

Sharkbite2000

user




Statistics:
Messages: 236
Registration: 11.03.2002

FYI, this is all insanely cool from a layman. I have done a bit of POV ray tracer, and to see what you have done with JS is nothing more than amazing.

---------------------
Message # 8 12.08.24 - 11:58:04
RE: realtime raytracer

magnetic1

user




Statistics:
Messages: 10,078
Registration: 12.15.2002

that's *obscene* well done!

---------------------
Eric WONGer 2012 NASA Nationals GTS3 First Loser EX-#121 IP/GTS3 M3 SOLD Now-#121 GTS3 E46 M3
Message # 9 12.08.24 - 12:04:50
RE: realtime raytracer

4Life

user




Statistics:
Messages: 279
Registration: 01.31.2003

forgive my ignorance but what exactly does this do?

---------------------
"Ruthless like the coupe"
Message # 10 12.08.24 - 12:14:53
RE: realtime raytracer
Weird Compatability Problem : Previous topicNext topic: Dobly encoded stereo -> DPLII -> AC3 5.1?
Pages:  1  2  3  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants