• What Are You Working On? September 2015
    1,261 replies, posted
[QUOTE=Berkin;48642689]I gotchu bro! Easiest way would be generating the tip and base (center of the opening) vertices first, then generating the base ring and creating triangles between that and the first two vertices in pairs. Here's a drawing I barfed out to illustrate: [t]http://i.imgur.com/JUUMD1l.jpg[/t] Now go forth and generate some cones.[/QUOTE] Aw dang, I should have checked back here sooner. I was first trying to just modify a sphere creating function, and then modifying a cylinder producing function, until I ultimately decided to actually just think for myself and solve for x and y given a target amount of turns, length, and radius. I ended up making a similar drawing in ms paint to keep myself on track, and just generated the vertices like that. Now I return from my pilgrimage along with a bounty of cones that will soon multiply and bear spot lights [t]http://i.imgur.com/lsZgksx.png[/t] Now that I have a method for creating these things, they can easily be placed in levels just like standard geometry like cubes and spheres.
I make a lot of flow charts when planning my projects. This is one example. [t]http://i.imgur.com/mvYLQJk.jpg[/t]
[QUOTE=Berkin;48643213]I make a lot of flow charts when planning my projects. This is one example. [t]http://i.imgur.com/mvYLQJk.jpg[/t][/QUOTE] I've had to make a flow chart for this complex AI entirely based on specific timeframes for a school-based simulation thing. I'll see if I can get a picture, it helps a ton though.
I guess my cone wasn't cone-ical enough [vid]http://webm.host/c26c8/vid.webm[/vid] Woah, I'm halfway there... [vid]http://webm.host/7d1a1/vid.webm[/vid] [B]Edit:[/B] I kind of got it working. I don't know why but for some reason a single polygon of the cone gets stuck to the screen while the stencil test is active... [t]http://i.imgur.com/1KwAdne.png[/t]
Continues working on my printer's software a little bit. I created a [url=http://lukasj.space/index.html]webinterface[/url] for drawing images and generating a string you can paste into the chat. With it I've introduced a new input format, which is just a hex string for each line. It's really just each row of pixels taken as a binary number (with the least significant bit on the right end), and then converted to hex to save some space. I could theoretically use base64, but I think hex is way more human-readable than base64. Parsing the string in python was quite a bit of fun: I wanted to trim off the block of zeroes that are on the top, bottom, left and right edges, so they don't cause unnecessary print time (the printing software doesn't optimize this by choice). Python made it really easy to find entire rows of zeros in the hex string. First I check if all the hex-codes inside the string are of equal length. This is a one-liner: [code]if(all(len(x) == len(args[0]) for x in args)):[/code] After that I check all the hex-codes sequentially, and set the entry to None if they're all zero. I break at the first non-all-zero hex-code. I do the same thing in reverse to get the trailing zeros. [code]# Clip off all leading all-zero elements for x in range(len(args)): # reversed(range(len(args))) for the trailing zeros if args[x] == len(args[x])*'0': # Check if entry is all zeros args[x] = None # Remove the entry else: break # Stop at first non-zero entry [/code] Then I have to create a list that is is a copy but without the None-Elements: [code]# Remove all None-elements args = list(x for x in args if x is not None)[/code] After that I convert the hex to binary and split it up to create a 2d array. Now I can go in and check the individual columns if they're all zero. I again do the same thing in reverse to get the right edge. [code]# Find all-zero columns on left edge of matrix for pos in range(len(rows[0])): print(rows) if(all([x[pos] == '0' for x in rows])): for x in rows: x[pos] = None else: break [/code] Now filter out the None-Elements again: [code]# Remove all None-Elements for pos in range(len(rows)): rows[pos] = [x for x in rows[pos] if x is not None] [/code] I love python!
[QUOTE=Tamschi;48638791]I'm fairly certain there's a market for VR-[URL="https://www.atari.com/games/rollercoaster_tycoon_3_platinum"]RCT3[/URL] :wink: [editline]8th September 2015[/editline] Don't you think people here are probably a little too smart for these lacklustre incomplete arguments? It's (imo) fine if you want to advertise a bit while collecting feedback, but at least be up-front with it when you do and don't withhold half the information. (AfaIct [I]your fees are significantly higher[/I] than CSGOJackpot's for everyone who doesn't advertise for you, so [I]the effective winning chance is much smaller[/I]. Please don't try to lie about maths to developers.)[/QUOTE] Uhm we actually tax 4% if you wear our name, 8% if you don't. I'm quite sure CSGOJackpot taxes 5% but they don't need advertisement so they don't have the name exception, I can show you what we tax from any pot in case you think I'm lying (also I just noticed they actually give a coin per 0.01$ of skin so they're actually following the same system as us so sorry about that hehe). I honestly wasn't looking to advertise, we get 150-200 people stable and we already spend a good chunk of money for advertising. I was looking for actual feedback. Also the owner is from Luxembourg, we're not operating under Greek market. Our servers are actually located in Romania where according to [url=http://www.nndkp.ro/publications/articles/gambling-2015]this[/url] activities such as raffling are now allowed.
I have managed to procedurally generate HowToBasic's favorite consonant: a [B]voiceless palato-alveolar fricative[/B]. Side-by-side comparison of spectrograms (recorded reference on left, procedural on right) [t]http://i.imgur.com/2nZT6g8.png[/t] Have a listen! [B]Recorded consonant:[/B] [vid]https://my.mixtape.moe/gfigkx.wav[/vid] [B]Generated consonant:[/B] [vid]https://my.mixtape.moe/lyerdf.wav[/vid]
[QUOTE=Sensation;48643942]Uhm we actually tax 4% if you wear our name, 8% if you don't. I'm quite sure CSGOJackpot taxes 5% but they don't need advertisement so they don't have the name exception, I can show you what we tax from any pot in case you think I'm lying. I honestly wasn't looking to advertise, we get 150-200 people stable and we already spend a good chunk of money for advertising. I was looking for actual feedback. Also the owner is from Luxembourg, we're not operating under Greek market.[/QUOTE] My complaint still holds: You gave wrong and irrelevant information. It doesn't exactly matter where the company is registered, what's important is that Greek traffic is blocked from participating in raffles (which I can't test right now for lack of a matching proxy).
[QUOTE=Berkin;48643951]I have managed to procedurally generate HowToBasic's favorite consonant: a [B]voiceless palato-alveolar fricative[/B].[/QUOTE] The resemblance is almost uncanny. Add some breath dynamics and you're golden.
[QUOTE=Ott;48643987]The resemblance is almost uncanny. Add some breath dynamics and you're golden.[/QUOTE] That's easily done by applying a slight amplitude (and possible frequency) modulation to the bands using smooth noise. I'll keep it in mind for later.
[QUOTE=DrDevil;48643683]Continues working on my printer's software a little bit. I created a [url=http://lukasj.space/index.html]webinterface[/url] for drawing images and generating a string you can paste into the chat. [...][/QUOTE] [code]!hex AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555,AAAAAAAA,55555555[/code] (Don't worry, I don't even have a Twitch account. Does your printer controller filter duplicates?)
[QUOTE=Tamschi;48643978]My complaint still holds: You gave wrong and irrelevant information. It doesn't exactly matter where the company is registered, what's important is that Greek traffic is blocked from participating in raffles (which I can't test right now for lack of a matching proxy).[/QUOTE] That is not required, thanks to 2011 Gambling Act online gambling is allowed on /foreign/ sites.
Finished implementing a hash table with linked lists for buckets. idk if there are libraries I could've used to save myself time but I did everything from standard library. Now for the hard part: figuring out how to fit it all into yacc
[QUOTE=Sensation;48644021]That is not required, thanks to 2011 Gambling Act online gambling is allowed on /foreign/ sites.[/QUOTE] [URL="http://www.bestonlinecasino.com/law/greece/"]Not according to[/URL] [URL="https://www.gambling.com/online-casinos/country-overview/articles/online-gambling-in-greece"]what I read[/URL]. Completely foreign sites are banned from serving Greece and ones wanting to operate there must have their servers in-country and pay taxes far higher than the cut you take.
[QUOTE=deyoppe;48638206]Too pixelated IMO. You can hardly tell what is happening. It can be neat to show something for a few seconds(like some kind of transmission?), but a whole game like this would be quite painful to play.[/QUOTE] Sorry for the late reply. I agree, in a video game this would be painful to look at if it would be constant. This is just a tech showoff thingy as we're experimenting with effects to use in our next project. The CRT Effect/Sounds are just something he put on top of it. But we do have some game ideas using this effect though. For example a robot with a really low capacity battery and a solar panel. Stay in the sun and close to power stations, re-route power to empty power stations. Get to the end. Short puzzle levels. The effect would kick in when you're low on power, like staying in the shadow for about 2 seconds. Intense, radical, supreme. Ship it.
[QUOTE=Tamschi;48644010] -snip- (Don't worry, I don't even have a Twitch account. Does your printer controller filter duplicates?)[/QUOTE] Not yet, but that's easy to implement. I think I will also dump images that are over 95% black
[QUOTE=DrDevil;48645151]Not yet, but that's easy to implement. [B]I think I will also dump images that are over 95% black[/B][/QUOTE] racist
[QUOTE=Berkin;48643213]I make a lot of flow charts when planning my projects. This is one example. <photo>[/QUOTE] Contemplating getting me one of these whiteboards, I would just spend all day making flowcharts and plans for my world domination while wearing a lab coat
I'm glad to be back to doing C. I've found that when I do OOP or Javascript, my lines of code span past the width of my screen quite often. Maybe I'm doing it wrong but will all these classes and namespaces and objects a single method can be quite lengthy. Writing in C, it feels so succint. Especially when I'm compiling c89 [img_thumb]http://i.imgur.com/y3elo9Z.png[/img_thumb] I just love how it looks. It only uses about 50% of the width of the window
[QUOTE=Syntox;48645916]Contemplating getting me one of these whiteboards, I would just spend all day making flowcharts and plans for my world domination while wearing a lab coat[/QUOTE] Screw just getting a whiteboard Get whiteboard paint and primer, make the entire wall nearest your computer a whiteboard.
[QUOTE=proboardslol;48645975]Especially when I'm compiling c89 [/QUOTE] But, why
[QUOTE=DrDevil;48646066]But, why[/QUOTE] C89 (ANSI C) is usually used for compatability reasons, many things don't support anything but ANSI C, (hello msvc just recently getting c99 support!). If it's written in ANSI C, you can be assured it will compile on the most ancient of things pretty much.
[QUOTE=DrDevil;48646066]But, why[/QUOTE] its less work for me to update yacc-generated code. yacc is generated as disgusting c89 spaghetti code with goto statements everywhere. Plus there's only a few syntactic changes from c89 to c99 that don't really make much of a difference.
[QUOTE=proboardslol;48645975][...] I just love how it looks. It only uses about 50% of the width of the window[/QUOTE] Because you're not doing anything complicated. Have fun with [I]ERROR_SEM_OWNER_DIED[/I] or [I]ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE[/I].
I'm doing what I want to be doing with it, and it works for those purposes. You should see the code that yacc generates though. Disgusting
[QUOTE=proboardslol;48646214]I'm doing what I want to be doing with it, and it works for those purposes. You should see the code that yacc generates though. Disgusting[/QUOTE] I looked at it briefly. Then I decided to rip off [URL="https://github.com/sprache/Sprache"]Sprache[/URL] and do everything via runtime composition instead.
Been a while since I posted anything since I've been moving and started attending Uni but here's some progress on my engine! Because I had some trouble deciding on a GUI library to use and because I want to torture myself I decided to create my own system: [img]http://dslengine.se/images/23_editorgui.jpg[/img] I've got some basic functionality so far, working on callbacks right now. Some other new stuff includes console input: [img]http://dslengine.se/images/22_consoleinput.jpg[/img] As well as a dynamic grid system: [img]http://dslengine.se/images/21_gridanim.gif[/img] Also because I got tired of collecting puush links whenever anyone wanted to see the project I decided to make a really basic media site: [url]http://dslengine.se/[/url] Hope ya like it
[QUOTE=proboardslol;48645975]It only uses about 50% of the width of the window[/QUOTE] Yet 500% the height.
Still scratching my head trying to solve that spot light issue. In the mean time, I've started trying to reimplement bumpmapping. [t]http://i.imgur.com/yXX3HPY.png[/t] Fortunately enough, my past-tense self managed to create a tiny system for managing textures for OpenGL, and also handled all the occurences such as having or not having bumpmaps. I completely forgot that the system supplies a default blank bumpmap for all textures that don't have one, and the deferred shader shoots everything it sees into separate textures... ...so I essentially already had a proper normal map in place to use.
Got variable names working. [img]http://i.imgur.com/Yl01iQQ.png[/img] variables names must start with alpha or underscore, and can contain alpha, number, or underscore [editline]9th September 2015[/editline] Special thanks to Fourier, for pointing me towards hash tables. I handle collisions with buckets
Sorry, you need to Log In to post a reply to this thread.