6 ms·
A texture-mapped raycaster in 128 bytes
- bshimmin 12y agoSomething terrible and greatly upsetting seems to have happened in the comments, but I can't for the life of me understand what.
- CountHackulus 12y agoGuy is claiming to be a memeber of a legendary group, people are arguing for and against this. I personally couldn't tell you which side is right.
- AndyJ1972 12y agoIt all got silly back in the day. I was a member of various demo groups/cracking groups and I experienced all sorts of oddness. People wanting arranged fights because they thought their code was better !? Beyond me.
- patrickyeon 12y agoAs CountHackulus says, basically "drama". If it amuses you for some reason, you might want to check out "Jason Scott - You're Stealing It Wrong! 30 Years of Inter-Pirate Battles" from Defcon 18. http://youtu.be/QCAL_YgYiP0 http://youtu.be/QCAL_YgYiP0 The meat of the talk starts around 24min. edit: while re-watching, I should warn you lots of foul language and some NSFW imagery
- bunderbunder 12y agoVery worthwhile anecdote starts at 48:20ish
- anon4 12y agoFor some reason the link to all the scene lingo is down now. Is there a backup? Did it move? Do I need to be "in" something?
- leorocky 12y agoThese kinds of ray casters are really cool, but at this point in time I don't care about how small the code base is, just make a really cool ray caster in JavaScript and don't worry about how big the code is (within reasonable limits)! I just want an awesome JavaScript ray caster library to be honest. :)
- RBerenguel 12y agoThere was one posted a few weeks ago. 128 bytes is incredibly impressive. You may not care, the world may not care, but reducing code so much is a work of art
- RodgerTheGreat 12y agoFor comparison, here's a 256 byte raycaster targeting the commodore 64. The included assembly source is considerably more readable and enlightening, but it also doesn't feature texture mapping like this one: http://www.pouet.net/prod.php?which=61298 http://www.pouet.net/prod.php?which=61298
- jzzskijj 12y agoA interactive raycaster in 128 bytes and you "don't care". No matter what year it is, it is a feat that really says "BEAT DIS".
- dguaraglia 12y ago... and that's exactly why you don't get why this guys are trying to achieve. This guys are counter-culture. They are trying to write the smallest functional ray caster/sound engine, you name it. They target maximum functionality with minimal bloat. Coming to a post like this to say you want a ray caster in JS 'no matter how big it is' is very misguided; the equivalent of going to a Tesla dealership (assuming such a thing existed) and telling the dealer 'well, this is all amazing technology and stuff, but what I really want is a Humvee with two cupholders on each seat, 5 TVs and a driver, I don't care if I need an atomic power plant to keep it running'. It's all fine and dandy here, HN is an open group after all. But don't go with that kind of comment to a 'scene' forum or they'll chew your head off :)
- 3rd3 12y ago; Wolf128 by Baudsurfer/rsi 2014 aka olivier.poudade.free.fr ; A 128 bytes interactive intro tested on XPSP3 and DOSBox ; Presented at Outline demoparty in Eersel/The Netherlands ; 256 bytes versions : ; http://www.pouet.net/prod.php?which=24755 ; http://www.pouet.net/prod.php?which=3396 ; P.S : click left mouse button to start moving in maze ; Greets to UkkO Ggn Fra Den and assembly language lovers org 100h mov al,13h int 10h les dx,[bx] A:mov cl,0ffh B:mov bl,cl not bl lea ax,[di-10h] mov bp,140h cdq div bp call G call G test byte [1dh],7 jz C add dh,[1fh] sub bl,[1eh] jmp short E C:mov dl,[fs:46ch] sub bl,[si] test dl,40h jnz D add dh,dl D:add bl,dl E:shld bp,bx,10 sub dh,[bp] mov al,dh and dh,bl or dh,ah and dh,20h loopz B xor al,bl xor al,ah db 0d4h,10h add al,10h stosb or di,di jnz A mov ax,3 int 33h test bl,al mov [1dh],bl jz F mov [1eh],dl mov [1fh],cl F:in ax,60h dec ax jnz B G:xchg ax,dx sub ax,64h imul ax,bx add ax,[si] ret
- atesti 12y agoDoes someone know what "mov dl,[fs:46ch]" does? In win32, fs and gs point to some process or thread info blocks, but in DOS? I was never aware of anything regarding the fs register and DOS unless a dos extender was run or pmode was entered!
- beagle3 12y agoIf memory serves me right, fs=gs=0 in DOS mode, and 46C is a tick counter of some sort. And on a C64, addresses 53280 and 53281 change text background and border. Don't know why I remember these things.
- wolfgke 12y agofs (and gs) is/are initially set to 0 when a com file gets executed.
- hexagonsun 12y agoAh the Demoscene... This is the kind of stuff that got me interested in programming in the first place. :)
- userbinator 12y agoThe 1st place entry is apparently very similar, but trades interactivity for sound and rather more psychedelic colours: http://www.pouet.net/prod.php?which=63517 http://www.pouet.net/prod.php?which=63517
- egypturnash 12y agoSame author.
- jakejake 12y agoThese demos always amaze me. Can somebody enlighten me as far as the way the size is measured - does it typically include all of the assets such as music and textures? I was watching a few of the demos and it blows my mind that the audio would even fit in that amount of space, let alone the visuals.
- joshvm 12y agoSize includes everything. Usually the textures are procedural, but can be seeded so they're the same every time. Music is usually pretty easy to encode if it's a chiptune, loads of redundant data.
- deleted 12y ago[deleted]
- bemmu 12y agoYou can also have procedural music. Viznut (a legendary Finnish democoder) did some experiments to see how short you could code something that still sounds at least interesting: https://www.youtube.com/watch?v=GtQdIYUtAHg https://www.youtube.com/watch?v=GtQdIYUtAHg I also wrote piece of JavaScript that can play these programs in case you want to try create your own: http://www.bemmu.com/music/index.html http://www.bemmu.com/music/index.html
- malnourish 12y agobemmu Hopefully you see this, unfortunately your comment is dead. Because I think your comment has value I will quote it here, please let me know if you'd like it removed. "You can also have procedural music. Viznut (a legendary Finnish democoder) did some experiments to see how short you could code something that still sounds at least interesting: https://www.youtube.com/watch?v=GtQdIYUtAHg https://www.youtube.com/watch?v=GtQdIYUtAHg I also wrote piece of JavaScript that can play these programs in case you want to try create your own: http://www.bemmu.com/music/index.html http://www.bemmu.com/music/index.html "
- erikano 12y ago
- PhasmaFelis 12y agoMan, wouldn't it be awesome if we'd had the public internet instead of just BBSes back when stuff like this was cutting-edge tech, instead of just a clever hack? Imagine if, say, C64 devs and hackers could do this kind of sharing instead of being limited to word-of-mouth.