I've been working on a fully functional 3D calculator. Have some media:
[img_thumb]http://i.imgur.com/U5muF.jpg[/img_thumb][img_thumb]http://i.imgur.com/pkBaN.jpg[/img_thumb]
[img_thumb]http://i.imgur.com/61jOl.jpg[/img_thumb][img_thumb]http://i.imgur.com/aUJt4.jpg[/img_thumb]
[img_thumb]http://i.imgur.com/cf3Qi.jpg[/img_thumb][img_thumb]http://i.imgur.com/W6faB.jpg[/img_thumb]
Aaaaaand a video:
[vid]https://dl.dropbox.com/u/28522528/animationdemo.webm[/vid]
([url=http://www.mediafire.com/?q4bnz2yqlnca1bw]here[/url] is a link for when my dropbox dies. Also, ignore the 360s build time, I was sitting in the console for a very good portion of that.)
[b]Features:[/b]
[b]*[/b] Full lua powered function interpretation. An example console concommand would be: "graph (cos(x^2) + 1/y)) + abs(atan(y))".
[b]*[/b] Different rendering and coloring modes. For rendering, you can pick between solid, wireframe, or a mix. For coloring, you can have the colors scale either to axis or to the graph, and specify the range (ie: purple to red, green to yellow, full spectrum, etc.)
[b]*[/b] Full zoom/scaling functionality. You give it to points on the graph (or off) and it will zoom in/out while keeping the axis scale the same (and the general size). You can also specify the following stuff on a per-axis basis: grid size (box size), grid step size and vertex scale (the detail level per say). To zoom out (aka, undo a zoom) just call the zoom function w/o args.
[b]*[/b] Full animation functionality. You give it the amount of frames you want, specify the interval for the variable "t", and then just graph a function with "t" in it.
[b]*[/b] It uses coroutines! Aka: if you make an insanely detailed graph, have a shit ton of frames in your animation, or are crazy enough to do both, this won't freeze your gmod (just stutter a bit) while it generates. It will also show a nifty progress bar on your screen and if you cancel the build process halfway through, it will render what it has built so far w/o loosing any data.
[b]Planned Features/Todo list:[/b]
[b]*[/b] Add a UI. Currently you can only graph functions form a command line, everything else is hardcoded and needs to be changed in the lua file.
[b]*[/b] Add axis labels (both axis and grid lines). Also perhaps a mesh for the main axis to distinguish them.
[b]*[/b] Give option to embed in panel or draw in world.
[b]*[/b] Add some sort of a mouse interface (I think this will only be possible with the embedded version).
[b]*[/b] Add a 2D graphing / function computation mode.
[b]*[/b] [Optional] Give it the ability to render an arbitrary data set.
[b]*[/b] [Optional] Give it the ability to render non-function based data (Ie: vectors).
[b]*[/b] Optimize, Organize, and Beterize.
[b]Code:[/b]
You can always find the most up-to-date version on my github [url=https://github.com/UltraSabreman/3dCalc]here[/url].
Please note a few things:
1) I'm still relatively new to git, so if you wanna fork or something do it (unless it needs my permission, then ask me lol)
2) Since I've been debugging this thing for about a week now the code is VERY messy (I'll be cleaning it up and organizing over the next few days) so don't come bitching here about that.
3) If you have any idea how to improve it, do let me know. I want this thing to be as useful and bug free as possible.
[b]Credits:[/b]
Wizard - He helped me quite a bit in understanding wtf I was doing. And lot's of motivational pics of his version to!
It's not a 3D calculator, it's an awesome 4D calculator since you have a time variable beside x and y. :eng101:
Given he posted it now, I pretty much helped him with a lot of that stuff including the animations and coroutines, I also wrapped my version into a panel that allows navigating with the mouse and shits:
[img_thumb]http://cloud.steampowered.com/ugc/921241394378194710/B65D90806017BFEB37E6BF57BB0AC6F1F997EFE0/[/img_thumb]
[editline]30th September 2012[/editline]
My version is faster though since I directly compile the math formula into the code some other code tweakings.
I've always liked making 3D in a 2D panel for some reason.
Yes, thank you wizard. Sorry I forgot to add you to the credits, it was rather late.
However, I'd like to say that it was mostly conceptual help and motivation with his awesome version fork. I never actually took code from him :D (i think....)
At first I saw the pictures and was all "goodbye, framerate" - and then I saw the video, and notbad.jpg Very nicely done.
It's actually damn efficient, each graph is a mesh and each animation is just tons of meshes, barely any drop in performance when you are not generating them.
[QUOTE=kaade;37836415]dat ui
[vid]http://puu.sh/19wGr.webm[/vid][/QUOTE]
i need that walljumping thing what is it o.o
Simple Lua cheat, cHack.
[img]http://puu.sh/1aeNA[/img]
[img]http://puu.sh/1aeO0[/img]
[img]http://puu.sh/1aeOe[/img]
[img]http://puu.sh/1aeOq[/img]
[img]http://puu.sh/1aeOU[/img]
[img]http://puu.sh/1aeP7[/img]
[img]http://puu.sh/1aePn[/img]
[img]http://puu.sh/1aeQy[/img]
Very ugly, needs work, etc. If you have any idea for features to add, let me know.
[editline]30th September 2012[/editline]
i should of named it ahack
[highlight](User was permabanned for this post ("Alt of permabanned user boxxy" - Craptasket))[/highlight]
You should consider snipping that before you get pbanned.
[QUOTE=ah;37863748]Simple Lua cheat, cHack.
[url]http://puu.sh/1aeNA[/url]
[url]http://puu.sh/1aeO0[/url]
[url]http://puu.sh/1aeOe[/url]
[url]http://puu.sh/1aeOq[/url]
[url]http://puu.sh/1aeOU[/url]
[url]http://puu.sh/1aeP7[/url]
[url]http://puu.sh/1aePn[/url]
[url]http://puu.sh/1aeQy[/url]
Very ugly, needs work, etc. If you have any idea for features to add, let me know.
[editline]30th September 2012[/editline]
i should of named it ahack[/QUOTE]
Nobody likes hacks.
And isn't that sethhack?
[QUOTE=Wizard of Ass;37863794]You should consider snipping that before you get pbanned.[/QUOTE]
pbanned for what? It's not being used maliciously
[editline]30th September 2012[/editline]
in fact it's not being used at all
[t]http://puu.sh/1aeQy[/t]
Looks pretty hackish. And malacious.
[QUOTE=Spencer Sharkey;37863827][t]http://puu.sh/1aeQy[/t]
Looks pretty hackish. And malacious.[/QUOTE]
I'm just coding it for the experience. Anyone on Facepunch can find [b]several[/b] cheats with more functionality than mine with a simple Google search.
And I never said it doesn't look malicious, but if nobody's using it then I don't see the problem. The only time I've opened the script is to make sure everything worked, and then I've gone right back to coding.
Instead of spending time on malacious hacks, why not do something productive and cool?
Like everything else in this thread.
Copy and pasting hacks is just lame and it doesn't really teach you anything.
[editline]30th September 2012[/editline]
Ah well. They'll never learn. RIP
Annnnnnnnnnnnnnnnnnnnnnnnnnnnd that's my server too
:/
[QUOTE=Remscar;37864151][IMG]http://puu.sh/1afEW[/IMG]
[IMG]http://puu.sh/1afFd[/IMG]
AWhhh yeah[/QUOTE]
I am no longer afraid of xenomorphs.
[URL="http://facepunch.com/showthread.php?t=1215271"][IMG]http://4stor.com/storage/new.png[/IMG][/URL]
because it's october!
[URL]http://facepunch.com/showthread.php?t=1215271[/URL]
[IMG]http://puu.sh/1agEs[/IMG]
Nope
Here I come out of nowhere, eating the last post before you lock it.
And I go NOM NOM NOM NOM.
hush it was October! at least for me
Sorry, you need to Log In to post a reply to this thread.