• What Are You Working On? May 2015
    1,601 replies, posted
Talking with Ryan and Frank about Vertex Adventure stuff, we're in a server together messing around. [url]http://www.twitch.tv/andrewmcwatters[/url] [img]http://i.imgur.com/w7VxKhF.png[/img]
[url=https://gist.github.com/JohnnyonFlame/54393ac27b089a1a2ace]Aaaaaaand fade between two images![/url] [code] Uint32 mul_a = (Uint32)((sinf(SDL_GetTicks() / 1000.f)+1.f) * 8388607.f); Uint32 mul_b = mul_a ^ 0xFFFFFF; Uint32 r, g, b, err_r=0, err_g=0, err_b=0; Uint16 c; Uint16 c2; Uint8 *dest = vid->pixels; Uint8 *src = image->pixels; Uint8 *src2 = image2->pixels; int i, j; for (i=0; i<image->h; i++) { for (j=0; j<image->w; j++) { c = *(Uint16*)src; c2 = *(Uint16*)src2; r = (((c >> 11) & 0b11111 ) * mul_a) + (((c2 >> 11) & 0b11111 ) * mul_b) + err_r; g = (((c >> 5) & 0b111111) * mul_a) + (((c2 >> 5) & 0b111111) * mul_b) + err_g; b = (((c ) & 0b11111 ) * mul_a) + (((c2 ) & 0b11111 ) * mul_b) + err_b; err_r = r & 0xFFFFFF; err_g = g & 0xFFFFFF; err_b = b & 0xFFFFFF; r &= 0x1F000000; g &= 0x3F000000; b &= 0x1F000000; *(Uint16*)dest = (r >> 13) | (g >> 19) | (b >> 24); //skip color (2 bytes = 16bit) dest += 2; src += 2; src2 += 2; } //skip line (line width - width * color depth) dest += vid->pitch - (image->w * 2); src += image->pitch - (image->w * 2); src2 += image->pitch - (image->w * 2); } [/code] [editline]edit:[/editline] Updated code to use 24bit range rather than 16bits.
[QUOTE=ben1066;47793821]Make it work for Dota too, please?[/QUOTE] Maybe later if this works out. I have no experience with Dota at all.
-merge broke AGAIN-
[QUOTE=andrewmcwatters;47789793]Hold up, another update, recast your [del]votes[/del] ratings. [img]http://i.imgur.com/CIsWKh3.png[/img] [editline]23rd May 2015[/editline] I'm still trying to get shared to look okay, since it's a gradient it's a bit more difficult. [editline]23rd May 2015[/editline] Here are the new labels for client/server/shared. Yellow, blue, and green. [img]http://i.imgur.com/JvRLVpm.png[/img] [editline]23rd May 2015[/editline] Hope that's more suitable now![/QUOTE] i think those client/server/shared labels would look better without rounded corners, sorta like the download button [url=http://www.andrewmcwatters.com/grid/]here[/url]. everything else on the site is sharp, those are the only things that have rounded corners also those inline code tags, i think they would look a lot better without any background at all. i'd just have them look like normal white text but with a fixed-width font here's a quick mockup of what i mean [img]http://files.1337upload.net/welp-589126.png[/img] maybe they look too much like buttons now idk
I like the inline snippets a lot more like that. This strange pink/red thing looks very strange to me: [img]http://vgy.me/N2Tciu.png[/img] I doesn't fit with the style of the site at all, really.
[QUOTE=DarKSunrise;47794214]i think those client/server/shared labels would look better without rounded corners, sorta like the download button [url=http://www.andrewmcwatters.com/grid/]here[/url]. everything else on the site is sharp, those are the only things that have rounded corners also those inline code tags, i think they would look a lot better without any background at all. i'd just have them look like normal white text but with a fixed-width font here's a quick mockup of what i mean [img]http://files.1337upload.net/welp-589126.png[/img] maybe they look too much like buttons now idk[/QUOTE] I wanted to do this but had the same usability concern regarding buttons... :/ [editline]24th May 2015[/editline] [QUOTE=BackwardSpy;47794360]I like the inline snippets a lot more like that. This strange pink/red thing looks very strange to me: [img]http://vgy.me/N2Tciu.png[/img] I doesn't fit with the style of the site at all, really.[/QUOTE] Yeah, I think this is the last(?) remaining thing that should be addressed that you guys brought up. I tried changing the background to a very dark red, almost greyish tone, and it looked ok. [img]http://i.imgur.com/Fut55bl.png[/img] [editline]24th May 2015[/editline] Seems harder to read though, so I don't think I did it any justice. I'll keep trying. [editline]24th May 2015[/editline] Thank you for the critique guys. I didn't always appreciate it in the past, because I was really stubborn about accepting input, but I was clearly missing out on some good feedback.
oh, another thing i think it looks so much better and cleaner if you remove the background from the "article" div [img]http://files.1337upload.net/welppp-bd8481.png[/img] [editline]24th May 2015[/editline] while i'm here, the parameters block could also use some more margin-top, but eh [editline]24th May 2015[/editline] i hope i don't come across as too negative just pointing out all these things
No, please do, I appreciate the critique, so have at it! I once had the documentation designed without the articles having a [url=http://www.andrewmcwatters.com/grid/theme]well outline[/url] but it felt "rightish" to have them exist. Idk, either really. I think it looks good both with and without. [editline]24th May 2015[/editline] [url=http://www.andrewmcwatters.com/grid/]Grid v1.2.0[/url] is now out. Ryan has finished the initial implementation for chat, and we've included some bugfixes, too! The sample code for Vertex Adventure and it's assets have been updated as well, for reference.
What do you think about something like that? [IMG]http://i.imgur.com/HbnysSI.png[/IMG] It matches the overall style of the site, and still is noticeable. Background is #3C3C3C, and color is #C7A959, in case you like it :)
I don't feel as if web design belongs in a programming WAYWO.
[QUOTE=Deseteral;47794642]What do you think about something like that? [IMG]http://i.imgur.com/HbnysSI.png[/IMG] It matches the overall style of the site, and still is noticeable. Background is #3C3C3C, and color is #C7A959, in case you like it :)[/QUOTE] Wow, that is super cool! Are you cool with us merging that? What do you guys think?
[QUOTE=geel9;47794648]I don't feel as if web design belongs in a programming WAYWO.[/QUOTE] Any content is good enough for WAYWO. AFAIK people have posted "Salad making" on here previously.
-snip-
[QUOTE=andrewmcwatters;47794651]Wow, that is super cool! Are you cool with us merging that?[/QUOTE] Yea sure, glad I could help :) [QUOTE=geel9;47794648]I don't feel as if web design belongs in a programming WAYWO.[/QUOTE] The title of the topic is "What Are You Working On? May 2015", there's nothing about programming in it ;)
[QUOTE=Deseteral;47794675]Yea sure, glad I could help :) The title of the topic is "What Are You Working On? May 2015", there's nothing about programming in it ;)[/QUOTE] Home > Forum > Developers > Programming > What Are You Working On? May 2015 There are more arguments you can make than that one
[QUOTE=geel9;47794680]Home > Forum > Developers > Programming > What Are You Working On? May 2015 There are more arguments you can make than that one[/QUOTE] Funnily enough Web Development WAYWO is also in Programming subsection. There's nothing wrong with a little bit of content in wrong topic, at least it's proper content, not some kind of complete offtopic bullshit ;)
The point is I think many of us read this thread to see cool applications of programming concepts. Coloring and background images don't really apply to that.
[QUOTE=geel9;47794680]Home > Forum > Developers > Programming > What Are You Working On? May 2015 There are more arguments you can make than that one[/QUOTE] the forum is what the people make of it. if majority are ok with it, then we are ok with it. don't make it a bigger deal than it is.
Now over to some actual content.. Made myself useful and created a save-details dialog for Grid/VA. [IMG]http://i.imgur.com/XJt5Sz2.png[/IMG]
Peekaboo! [img]http://i.imgur.com/psdVPKt.png[/img] Finally made prop_worldgate_spawn an actual entity. Now it's subject to depth sorting. For a while there it was basically a painted on set of tiles. :v: [lua]function prop_worldgate_spawn:prop_worldgate_spawn() entity.entity( self ) local tileSize = game.tileSize local min = vector() local max = vector( tileSize, -tileSize ) self:setCollisionBounds( min, max ) if ( _CLIENT ) then self:setLocalPosition( vector( -tileSize, 0 ) ) end self:setNetworkVar( "name", "World Gate" ) if ( _CLIENT ) then local sprite = graphics.newImage( "images/entities/prop_worldgate_spawn.png" ) self:setSprite( sprite ) end end [/lua]
Does anybody have any maze generator (preferably circular mazes) to spare? One in some .NET language that is, but anything will do. I am designing a metal plate with the logo of my school on it for a CNC milling machine and i thought it would be nice to add some complexity to it, so i decided on a maze background. [img]http://i.imgur.com/VBcC24A.png[/img]
I love love2d. And 120fps webms. [vid]http://a.pomf.se/uxegvk.webm[/vid] [img]http://puu.sh/hZ3PC/ad0d319cf6.png[/img]
[QUOTE=andrewmcwatters;47794651]Wow, that is super cool! Are you cool with us merging that? What do you guys think?[/QUOTE] I might be the only one but the really low contrast between Parameters and the background colour of the title bar is making it quite hard to read for me. I wouldn't know how to fix it, the rest looks awesome!
Yeah, I can understand that, it's very much like a hairline font weight, too, so that compounds the effect. I can change it to being the same black background color as the parameter's panel, but it doesn't seem to improve readability too much.
[QUOTE=DarKSunrise;47792045]have you thought about using an isometric camera purely top down view like that is really confusing and i can't find any depth in it[/QUOTE] Yeah, I will need to put a lot more work to make sure characters look good from the side. (among other things)
Holy shit Unity is so easy why have I not used this before [img]http://i.imgur.com/tHxQkDr.png[/img]
[QUOTE=cartman300;47794796]Does anybody have any maze generator (preferably circular mazes) to spare? One in some .NET language that is, but anything will do. I am designing a metal plate with the logo of my school on it for a CNC milling machine and i thought it would be nice to add some complexity to it, so i decided on a maze background. [img]http://i.imgur.com/VBcC24A.png[/img][/QUOTE] I think you would want to add something called "Grebble" instead. Easier ;)
[QUOTE=ryankingstone;47796021]I think you would want to add something called "Grebble" instead. Easier ;)[/QUOTE] Easier to generate, yes. But it's not easier to mill, especially the sharp corners (the tool is round). [editline]24th May 2015[/editline] [img]http://i.imgur.com/WJGeedY.png[/img] I managed to duct tape some maze generator onto my tool that interfaces with Catia. This has been running for 10 minutes already, this Catia COM interface has to be the slowest interface in the world ugh.
I just finished reimplementing level loading/saving. Time to start implementing some more editor tools, I'm thinking texturing this time around. At some point soon I'll have to figure out how I'm going to implement undo/redo, just hopefully not only serializing the entire map because that could be potentially huge. However, I still have to implement grouping/ungrouping, drawing and dragging a selection box, and so many other things. I really want to just get the essentials done and then start implementing a player and collision.
Sorry, you need to Log In to post a reply to this thread.