You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server
Administration Center

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Snektron

#1
PC, Mac & Vintage Computers / Z80-based pico8 clone?
September 07, 2016, 08:25:15 PM
Recently i came to the idea of making a Z80 based pico8-like platform. I wonder how many people would be interested in such a thing.
I myself find the z80 a pretty cool language, but i kinda lost interest in calculators :/.
It would boot the KOS kernel, but wouldn't use the (standard) programs on it since the project would not aim for calculator like emulation.
#2
That's right, i'm at it again. This time the engine works in full 3D instead of only in the horizontal plane like my
last non-euclidean project
.

I've recorded a video here: http://webmshare.com/play/gB7RL (about 2.5 MB)

It works by making every voxel an object, with pointers/references to it's neighbors on each face.
(You can imagine it as a 3D linked list).  The rendering algoritm uses the DDA algorithm used in early ray casters (and my last project),
optimized to branchless code for GPU's. The algorithm uses the pointers to walk the structure until a non-empty voxel is hit.
This way, creating a portal is as easy as changing a voxel's neighbor pointer to somewhere else. (So in fact, everything is a portal.) This creates a lot of potential for really bizarre levels.

A small problem is, this engine can never support absolute coordinates, so level designing will be extremely complex. I will try to make a level editor
in the future, which will most likely have arrows drawn between voxels to show where each face leads.

This engine is made in LibGDX and uses OpenCL for the rendering algoritm (which gives a small speed boost over OpenGL shaders). Its still heavily in developement, so no downloads :(. In the future i want to try to make a game with it, which could be one of the first ray traced games :o
#3
Tech, Science & IT / IBM cloud quantum computer
May 06, 2016, 10:46:17 AM
So IBM made it's quantum computer available and programmable in their cloud:
http://www.research.ibm.com/quantum/
waitch out though: they have a bitch license. Everything that gets ran on their computer is also their property <_<
#4
This weekend i decided to try to make a ray tracer. It can render triangle meshes, loaded from wavefront obj files.
It works by having all triangles stored in a bounded volume hierarchy, so only a part of the mesh needs to be tested against
rays, instead of every triangle.



You can download it here:
http://quantuminfinity.space/files/RayTracer.jar

I highly recommend only running this if you have a modern GPU. It requires OpenGL 4.3 to run, and will eat a load of GPU processing power.
To run it, just double-click and everything should work fine (on most platforms). If you want to load your own wavefront object model, run
java -jar RayTracer.jar model.obj
replace model.obj with the file name to load.
Make sure the object model has normals and is triangulated! (if you are unsure, open it in blender and export it with everything but triangulate and write normals disabled). Colors / textures etc are not supported.
It depends on the model and location, but most of the time i was able to achieve the 60 fps cap, though it gets a bit slower when the viewer is inside the object.
The default dragon has about 2000 faces and 1000 vertices, but i tried with a model with up to 24000 vertices too.

Im not really planning to release the source, but if you want you can decompile it :P
You can find the shader source in shaders/trace.csh when you open the jar as a zip file though.
#5
PC, Mac & Vintage Computers / [C] CE Raymarching
March 15, 2016, 09:39:11 PM
So i while ago i wanted to try out CE C programming. Since the CE has float support and a color screen i made a little ray marcher :)





You can view the source too:
https://github.com/Snektron/CERM
I recommend trying this out on an emulator, since it takes quite a while to generate an image.
The attached file is one made for an emulator. Since CE will freeze if it exits a program at maximum speed i've put a while(1); loop
so it doesnt quit in the program, but if you want to run it on an actual calculator you wil have to remove it and build it yourself :P
#7
Gaming / [Android/iOS] The Room
December 26, 2015, 12:56:25 AM
The Room is a puzzle game for mobile devices, it's a bit sp00ky and it has a cool back story. As of now there are 2 the room games, but a nrw one (3) is soon going to be released. Its available for ios and android (3 is already released on ios i think). Its costs a bit (like 2 euros) but its certainly worth it :)
(It does need a reasonably good phone since its 3d)
#8
For the past few days i have been working on a little proof of concept: non euclidean space in a raycaster!
Basically, the space can be stretched or compressed, on tiles, making the rays do all sorts of crazy things, for
example a tunnel can seem 10 tiles long (and, since player movement is slowed down too it takes the same
time as to walk though it as an actual tunnel of 10 tiles), but in reality you only traveled 1 tile.

gif (about 500kb):


I probably add some more cool things, like portals and such and
turn this into a little engine. (Wolfenstein4D?)

You can find the window executable at http://quantuminfinity.space/files/ac.zip
It depends on SDL, so SDL.dll (included in the download) needs to be either besides the executable or
on your system's path.
It should be possible to run on linux and mac too, but you'll need to build yourself.
You can find the source at https://github.com/quantuminfinity/anticaster
#10
Heya!

After a while in developement, we finally decided to release the mobile notifier! :D

Features:
- Last 10 posts can be viewed from the app.
- Images are also displayed in the app
- most bb tags are also parsed
- Double tap a post to open it in the browser.
- Service sending a push-notification when a new posts is made.
- Changable time between update checks.
- Enable / Disable service.
- Enable / Disable mobile data used to check for updates.

Known bugs:
- There is a bug in android 4.4.2 where it doesn't restart services, which kills the service instandly :( (at least thats what i think it is)
- You tell me :)

Not yet implemented
- Smileys (that means walrii too :()
- Links in posts. [ url] [ /url] tags work though
- WIRC??? (Maybe)

[spoiler=screens]





[/spoiler]

Source
The source can be found at https://github.com/QuantumInfinity/CodeWalr.us-Post-Notifier

Download & Install
You can download the apk from http://quantuminfinity.space/files/Walrifier.apk
Initially i wanted to put the app on the play store too, but i don't know if thats a good idea.
You have to enable 'install from unknown locations' in your settings, but that get's prompted by android automatically

If you encounter any bugs or have any suggestions please let me know :)
#11
Hello! So, at the last moment i decided to make something to make something for the 4x3 challenge.

In The Game: Contest Edition, the aim is to find the correct key.
At the start, the game randomly picks a key, and it's up to you to find it!
if you find the right key, you win. Else, you lose the game.



it also features a special escape key, enter. But who would use that right? i mean it's such a thrilling
game, you wouldn't want to end it before you win, right?

[spoiler]:trollface:[/spoiler]

also: you lost
#12
PC, Mac & Vintage Computers / [pico-8] Raymarcher
May 05, 2015, 10:46:20 AM
So i downloaded pico-8 a few days ago, and i made a shader-like thingy (basically it loops through every pixel and runs a function to get the color).
Ofcourse, i had to make a raymarcher with it:

It contains some vector functions, a few raymarch primitives (only 2 atm), atan, acos, sqrt (which i didnt make), and rgb-to-16-color converter, and some functions for the raymarcher lie getting normals and calculating a diffuse value.
The function "f" in the code makes the scene, the image just shows "return sdSphere(p, 2)" which makes a sphere with a radius of 2.
The variable "ro" is the camera position, and dir is the look direction. "sun" is the light direction. "STEPS" is the max # of steps, MAX_DST the maximum distance and EPS/EPS2 a small edge value. It takes a few sec to render an image, but it turned out pretty nice i think :D
(also press action to end the program when its done, or esc to stop it anytime)

EDIT: so i added the "opRep" function which repeates space and increased the max distance:
#13
For our computer science class we (@brentmaas, @TheCoder1998 and me) need to do a project. We had
to come up with a project ourselves. The first thing i did was send a mail to DJ, since i saw people would like a post notifier a while before.
Since we were quite busy at the time, we decided to delay developement untill we had some free time, which is about now.
We have to keep a log and everything too, so we'll be using this topic to notify of developement updates.

Language:
Since the default Android programming language is Java, and we can all code in Java (well, TheCoder is still learning :P), we'll
be using that to make the application. We will be using the Android SDK ofcourse.

Planned features:
- Service that sends a push notification when a new post is made.
- Clientside only. it will be checking the SMF RSS update feed and parsing data from there.
   (The SMF RSS feed gives post content too, but that might use too much data. If someone knows how to remove that data in the http request, or if
   a site maintainer can make a special feed for us, that would be nice :))
a custom smf mod that returns some data upon requesting an url
- Toggle service active.
- Toggle 3g update checking.
- Algorithm to do more checks when there is intense posting.
- Setting for time between checks
- Activity that displays latest X posts
- Setting to ignore some tags/topics/subforums

Release:
The app will be released on the play store, since i have an account anyways.
Ofcourse, the app will be free. Also we'll probably post it on a new topic when it's finished.

Further info
This app will sadly not be available for iOS, since none of us have a mac to develop on or an app store license.
Windows version is not ruled out but that's not part of the project, so that will maybe come later. (also if we do it, it's maybe better to do a chrome plugin).

If you have any suggestions or ideas, please leave them on this topic :)
#14
PC, Mac & Vintage Computers / Game engine structure
March 27, 2015, 05:23:17 PM
I was starting on some simple program today, and when i wanted to draw something, i noticed OpenGL wouldn't really
draw my lines. Since i used Java with still LWJGL 2.9 i decided to update to LWJGL 3, but this newer version completely changes
things like displays and such, so i decided to make a new engine. Normally i just use the simple engine i made some time ago,
which only handles display creation, openGL initialization, and a game loop. And since i want to write a better engine, i'm wondering
how i would create a good engine. I don't want to create an enourmous thing like Unity or Unreal, but just something i can easily make
OpenGL programs with. Though the engine will mostly be used by me, i still want to write it like a proper library.
What things shall i initialize with the game code?
And what is a good general structure?
Things like object loading i can do myself, i'm more interested in a general game (engine) structure. :)
Also if you make games, how do you make your structure?
(as i said i use java, but this is more a general question)

thanks :)
#15
Other / Weird Links [possibly nsfw]
February 13, 2015, 10:29:14 PM
Know any funny/interesting sites? List them here!

http://www.gaben.sexy/
http://www.windows93.net/
http://www.pointerpointer.com/
http://www.websiteasteroids.com/
http://fontbomb.ilex.ca/
(also: 333th post, i am now half-satan)
#16
PC, Mac & Vintage Computers / Raymarch Shaders
February 10, 2015, 07:56:06 PM
Apart from making particle systems i do more with shaders, and that is mainly raymarching.
For those of you who don't know, raymarching is a rendering technique (like rasterizing).
for every pixel a ray is casted from the camera and folowed until it hits an object, mostly
done by having a distance formula (which surprisingly returns the distance to a surface) and
moving forward until the distance is smaller than a certain number (like 0.0001).

I've whipped up a program to load and draw the shader on a quad covering the whole screen, does
some uniform (variables send to the GPU) management, and even some position/direction to make
first person controls possible. And i've ofcourse made a few shaders, and wanted to share a few screens :)

[spoiler]

[/spoiler]
This one i made just today, and is probably one of my best.

[spoiler]

[/spoiler]
An experiment with reflections, and the noise distortion makes it look like water :)

[spoiler]

[/spoiler]
A simple one, made with my standard raymarch set.

[spoiler]

[/spoiler]
This is not really raymarching, and without animation it's hard to see, but it's a galaxy.
One of the drawbacks of raymarching: these kind of objects. it needs to calculate for every
object if a pixel is in range, which causes ridiculous frame drops.

[spoiler]

[/spoiler]
It's also very easy to plot a 3d function :)

[spoiler]

[/spoiler]
And i really like how easy it is to make almost impossible shapes for rasterization.

#17
Media Talk / What series do you watch?
January 25, 2015, 05:01:29 PM
So what series do you watch / have you watched / are you going to watch?

Watched:
- Game of Thrones
- Supernatural
- The Walking Dead
- Falling Skies
- Legend of Aang & Legend of Korra
- Rick & Morty
- occasionally some Breaking Bad, but i'm not a great fan

Watching:
- Not really anything

Going to watch:
- Also not really anything, Vikings maybe.
#18
Web / MazeDweller
January 23, 2015, 03:09:16 PM
Last year we were assigned to make a maze game in HTML.
The original project (the one described in out book) was made entirely in HTML, with the exception of some basic Javascript
to handle button input. It was a broken beta version and it was to us to fix the game and present it's final form.
Ofcourse, i didn't want some half broken maze game, so i (we actually had to work in groups of 4, but i did all
the programming (also TheCoder was in my team too :P)) made it in 3D using THREE.js.

I was working on it for a few weeks, and it's actually my biggest project ever >.<. Even though it's not as optimized as could
be (the deadline was in june 2014, and since then i've learnt a lot more about programming), i'm still quite proud of it.
Since i had i VPS i thought "Why not put it on there?", so you guys can play it right in your brower,
it's on http://quantuminfinity.space/ (Yeah the main page). In the end i got a 9 or 9.5 out of 10, while
the rest of my team got an 8 (i guess the teacher also saw they were lifting on my skills ^^).

Even though i'm not working on it anymore, if you've noticed a bug, please tell me so i can remove it :)
#19
PC, Mac & Vintage Computers / FBO Particle System
January 22, 2015, 10:31:58 PM
Ever since i started programming, i've been interested in particle systems.
The mouseattractor ones. I've made several of them, the
first one on my laptop could'nt even handle a thousand without killing the
computer (that are the drawbacks of Java i guess :/).

Also, this summer became interested in GLSL (Shading) and started learning that.
Then after a while i read somewhere that GPU's could be used
for more than only drawing images on screen (well, i knew that before, but i never
really knew how such a thing would be accomplished). And yeah, that includes particle systems.
So i started reading up on them, and i actually managed to make one myself :D.

[spoiler]




[/spoiler]

(some screenshots ^)
I can run easily 2 million particles.
It's not quite done yet though, as i've learnt several optimization tricks (yeah, it's was a forgotten project for a few months).
So i'll be working on this project for a few days (i didn't want to attach the project just yet, as
you'd need to recompile it to change the texture size etc). Let me know
what you think and if you have any ideas i should include :)
#20
Web / Batman
January 15, 2015, 02:51:35 PM
I made this little script:

javascript:var url='http://fc08.deviantart.net/fs71/f/2012/213/7/5/batman_derp_by_uchihirokilove-d59h7in.png';for (var x=0; x<document.images.length; x++){i=document.images[x];i.src = url;}void(0);

paste this into your browser and don't forget to type 'javascript:' before it if
you are using Chrome!
#21
PC, Mac & Vintage Computers / C windows api
January 13, 2015, 11:19:15 PM
So im trying to send some bytes trough an usb port in C. i'm using some
library (http://www.signal11.us/oss/hidapi/) which does most of
the work. At least it should be. When i put the c file for windows in
my project, it gives some errors under "SetupDiGetClassDevsA"
and more from "setupapi". Apparently i need to link this DLL with my project.

I'm using MinGW and code in Eclipse (pls no h8). Note that ive never
done PC C before (only some GLSL and SDCC).

This image is quite appropriate of how im feeling right now.
#22
PC, Mac & Vintage Computers / java binpac8x
January 01, 2015, 02:54:39 PM
Hello,

a while ago i started doing some C for the ti 84 and since it was like
7 commands to compile it, i decided to make some kind of sdk.
I wanted to use a minimal amount of windows commands, so
i made this java implementation of binpac8x.
it doesn't have support for any other type than 8xp, maybe i'll add it later.
Source is available here: https://github.com/RobinDeWalvis/binpac8x
also contains a windows executable made with launch4j
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal