Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

Shalinor posted:

It's Saturday somewhere, so - this week was mostly focusing on movement mechanics, which doesn't really screenshot. I've also started playing with chat bubbles, though:



... and it just isn't working. The above "chiseled" text isn't bad, but A.) that font sucks, and B.) it doesn't match the geometric style of anything else. What I really actually need is for NGUI to pop out an extruded 3D font, but since it can't (and I'm waaaay too busy to make an optimal system that'll do that from glyphs or bitmap data), I'll be experimenting with bitmap fonts that have more effects built into them. Including extrusion, hopefully. Since the chat bubbles exist in camera space, I'm pretty sure a baked-in perspective will be sufficient to make it look 3D.

Make sure the text is pixel aligned, and has no antialiasing, if you can manage to do that. If not, you might have to implement the font as a texture and make your own super simple text engine.

Adbot
ADBOT LOVES YOU

LP0 ON FIRE
Jan 25, 2006

beep boop

Shalinor posted:

It's Saturday somewhere, so - this week was mostly focusing on movement mechanics, which doesn't really screenshot. I've also started playing with chat bubbles, though:



... and it just isn't working. The above "chiseled" text isn't bad, but A.) that font sucks, and B.) it doesn't match the geometric style of anything else. What I really actually need is for NGUI to pop out an extruded 3D font, but since it can't (and I'm waaaay too busy to make an optimal system that'll do that from glyphs or bitmap data), I'll be experimenting with bitmap fonts that have more effects built into them. Including extrusion, hopefully. Since the chat bubbles exist in camera space, I'm pretty sure a baked-in perspective will be sufficient to make it look 3D.

It's neat, but I'd stick to something that would contrast more. Either black on white or white on a black bubble, with a stroke on the bubble of the inverse color.

Shalinor
Jun 10, 2002

Can I buy you a rootbeer?
the chaos engine kind of slapped my hands away from the keyboard, and did this:



... which works perfectly. So I'll just grab that font, render it without scaling, and boom, done. This is why programmers shouldn't be let within 50 feet of font rendering effects.

LP0 ON FIRE
Jan 25, 2006

beep boop
That looks really good and very readable = design done right.

parkov
May 4, 2005
Vintage Ahoy!

LP0 ON FIRE posted:

I see that you're now featured on Neatorama! Congrats.

http://www.neatorama.com/2013/04/16/CRAPCHA/

Thanks! When I saw the amount of traffic coming from Neatorama, I just about had a heart attack.

TildeATH
Oct 21, 2010

by Lowtax

Shalinor posted:

This is why programmers shouldn't be let within 50 feet of font rendering effects.

Oh, the damage I've done...

Shalinor
Jun 10, 2002

Can I buy you a rootbeer?

LP0 ON FIRE posted:

That looks really good and very readable = design done right.
... and, implemented in-engine:



NGUI's method of font rendering is always going to have that blur, so I'm toying with drop shadow to make it a bit sharper. Though better color choice may also help, that bubble is using a placeholder color.

TildeATH posted:

Oh, the damage I've done...
I've made horrible decisions, literally, every single time I've had to pick or work with a font in a game, and it stays horrible until someone else says "no, just - here, do this." And then I do that, and all is well.

MrBadidea
Apr 1, 2009

piratepilates posted:



Just your regular ol' lovely pathtracer, I keep looking through Physically Based Rendering for details on a lot of methods and I keep getting depressed at how much better that renderer is than anything I could build :(

Next up: actually shading this motherfucker.



I know your pain :respek:

Stuff I write ends up looking like poo poo compared to all the other examples I can find. Although most of that is thanks to repeated attacks of "OH GOD WHAT THE gently caress AM I DOING I HAVE NO IDEA."

LP0 ON FIRE
Jan 25, 2006

beep boop

Shalinor posted:

... and, implemented in-engine:



NGUI's method of font rendering is always going to have that blur, so I'm toying with drop shadow to make it a bit sharper. Though better color choice may also help, that bubble is using a placeholder color.

Looks good and it contrasts well enough to be able to read and looks even better with the shadow. Maybe there's a way to round off to exact x/y pixel values to not get a blur on the text? Just a guess, I don't know anything about it!

dizzywhip
Dec 23, 2005

Shalinor posted:

... and, implemented in-engine:

Honestly, I'm not a huge fan of that font for dialogue. The arbitrary mix of upper and lowercase letters makes it kind of uncomfortable to read in a subtle way. Like, in the word "good", the "ood" part is capitalized while the g is not, so my brain really wants to read it as 9ood. And yeah, I would hope you'd be able to eliminate the blur by making sure to render on pixel boundaries and potentially adjusting the font size. Maybe not though. But the bluriness at least doesn't seem as bad as the first screenshot.

Tres Burritos
Sep 3, 2009

I'm going to second not liking that font, if we're giving feedback. It looks cool. But it's hard for me to read.

Doctor w-rw-rw-
Jun 24, 2008

Tres Burritos posted:

I'm going to second not liking that font, if we're giving feedback. It looks cool. But it's hard for me to read.

To be honest, I'm reading it as 900D rather than as "GOOD", though common sense lets me know that it's obviously the latter.

SupSuper
Apr 8, 2009

At the Heart of the city is an Alien horror, so vile and so powerful that not even death can claim it.

Shalinor posted:

I've made horrible decisions, literally, every single time I've had to pick or work with a font in a game, and it stays horrible until someone else says "no, just - here, do this." And then I do that, and all is well.
All my games run on glorious Arial. :v: Despite the amount of free fonts out there, finding the right one and getting it to fit and look right is a nightmare. Specially when you find one that is 99% what you want but it's got a few peculiarities that just ruin it.

Azazel
Jun 6, 2001
I bitch slap for a living - you want some?

SupSuper posted:

All my games run on glorious Arial. :v: Despite the amount of free fonts out there, finding the right one and getting it to fit and look right is a nightmare. Specially when you find one that is 99% what you want but it's got a few peculiarities that just ruin it.

That's the truth. Bought a 10k font pack last year for cheap, and couldn't for the life of me find one that worked. gently caress it, Arial for life.

TildeATH
Oct 21, 2010

by Lowtax

Azazel posted:

That's the truth. Bought a 10k font pack last year for cheap, and couldn't for the life of me find one that worked. gently caress it, Arial for life.

The trick is to find fonts that are basically Arial but have a cooler name. Then you're like, "Oh that, I went with Akzidenz Grotesk..."

lord funk
Feb 16, 2004

Who in their right mind would choose Arial over Helvetica?

I too suck at font selection...

Shalinor
Jun 10, 2002

Can I buy you a rootbeer?

Tres Burritos posted:

I'm going to second not liking that font, if we're giving feedback. It looks cool. But it's hard for me to read.
Frankly, looking cool is very important - especially in a game with a lot of dialog interactions. I'm sure New Times Roman would be more consistently legible for everyone, but it'd make the game look pretty naff by comparison. Anywho, turns out that bluriness mostly goes away when (*gasp*) I use an actual game resolution, and size the text as it would be at said actual resolution.



... which is good enough to move on. Right now, the drop shadow is important for legibility, but a lot of that is probably due to the placeholder colors.

Shalinor fucked around with this message at 18:48 on Apr 21, 2013

dizzywhip
Dec 23, 2005

Shalinor posted:

Frankly, looking cool is very important - especially in a game with a lot of dialog interactions.

I'd argue that legibility is more important in a game with a lot of dialogue. If it's hard to read, I'm not going to want to read it. I mean, you don't want to use Times New Roman or Arial either, but it shouldn't be too hard to find a font that looks cool and is legible.

SupSuper
Apr 8, 2009

At the Heart of the city is an Alien horror, so vile and so powerful that not even death can claim it.

Shalinor posted:

Frankly, looking cool is very important - especially in a game with a lot of dialog interactions. I'm sure New Times Roman would be more consistently legible for everyone, but it'd make the game look pretty naff by comparison. Anywho, turns out that bluriness mostly goes away when (*gasp*) I use an actual game resolution, and size the text as it would be at said actual resolution.
Actually Times New Roman is terrible for screen displays. :v: Anyways I think it's less about "looking cool" but more about "fitting the style". Most adventure games just use regular fonts with an outline and they fit, and I think yours fits the retro style of your game.

akadajet
Sep 14, 2003

Orzo posted:

Yes, I was pointed to BMFont as a tool to help generate font textures with kerning pairs and will likely be using that.

Used that exact tool in the past. It's pretty nice.

Orzo
Sep 3, 2004

IT! IT is confusing! Say your goddamn pronouns!
Lots of behind-the-scenes work this week. Added some support for screen management. Barely worth posting in a screenshots thread...but I do have a 'pause' screen now and the world's ugliest HUD. I tried to make up for it with an in-depth technical explanation on the blog. Video:

https://www.youtube.com/watch?v=-eyyw8xTlV8&hd=1

Blog post Here.

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice

lord funk posted:

Who in their right mind would choose Arial over Helvetica?

I too suck at font selection...

Arial is a variant of Monotype Grotesque that was teweaked to be more like Helvetica. For a sans-serif that would work well in games (if I understand the needs) you want something with a large X-height, like Verdana.

Picking good typefaces is hard.

Ravendas
Sep 29, 2001




I've been working on a lot of various AD&D DM tools written in C++, like random generators, full DMG treasure generator, spellbook creators using thousands of spells, npc group rollers, things like that. I've finally gotten most of a full 2e character generator done...

But it's all console based. Here's an example:



It prints out to the console, and when it's done it prints out a little character sheet to a text file like this:

quote:

Elf Mage, level 1, Thaco: 20/20, HP: 4
Str: 12, Wt.All. 45, Max 140, OpenDoors 7, BB/LG 4%
Dex: 9, Reaction/Missile Attack Adj: 0, Defensive Adj. 0
Con: 14, HP Adj 0, Sys. Shock 88%, Res. Survival 92%
Int: 17, Languages 6, MaxSpells 8th, Chance to Learn 75%, Max 14 Spells/Level
Wis: 13, Mag.Def. Adj 0, Bonus Spells 1/-
Cha: 8, Max Henchmen 3, Loyalty Base -1, Reaction Adj. 0
WP: Quarterstaff
NWP: Prophecy, Crowd Working, Arcanology, Bookbinding, Riding, Land-based, Leather Working, Chanting, Engineering, Research
Known Spells: [1] Summon Undead, Taunt, Spider Climb, Audible Glamer

I have many of these programs, with a lot of in depth things written up, but as it's all console based people aren't interested.

Any suggestion on some C++ GUI packages? I've never done a gui for anything really, but I'd like to start making the programs I've written a bit 'prettier' to generate a little interest.

zeekner
Jul 14, 2007

Ravendas posted:

I've been working on a lot of various AD&D DM tools written in C++, like random generators, full DMG treasure generator, spellbook creators using thousands of spells, npc group rollers, things like that. I've finally gotten most of a full 2e character generator done...

But it's all console based. Here's an example:

It prints out to the console, and when it's done it prints out a little character sheet to a text file like this:


I have many of these programs, with a lot of in depth things written up, but as it's all console based people aren't interested.

Any suggestion on some C++ GUI packages? I've never done a gui for anything really, but I'd like to start making the programs I've written a bit 'prettier' to generate a little interest.

QT is a good option for a C++ GUI toolkit.

However, if you want the easiest intro to GUI applications and don't mind using C#, try a WPF app. You can install Visual Studio Express for free, and it's pretty easy to jump into. WPF has C++ bindings, but it's not as straightforward and you won't find as much example code out there.

shodanjr_gr
Nov 20, 2007
-> ->

Wrote a global map viewer that can pull tileset data off a web service and render it on an OpenGL scene graph. It is heavily multithreaded so that tile loading does not block the interaction (runs at 150+ fps and moves around super fluidly). Right now it's rendering the Mapquest Open data but its trivial to switch to other tilesets (OpenStreetMaps, or something that we might serve locally). The debug overlay is from Equalizer, a C++ SDK for building distributed rendering applications, so this puppy can run on my laptop and on a tiled display wall. There's a couple of things that need fixing (I got some issues with the garbage collection and tile seams are visible sometimes) but overall I'm quite proud of this.

Luminous
May 19, 2004

Girls
Games
Gains

shodanjr_gr posted:

-> ->

Wrote a global map viewer that can pull tileset data off a web service and render it on an OpenGL scene graph. It is heavily multithreaded so that tile loading does not block the interaction (runs at 150+ fps and moves around super fluidly). Right now it's rendering the Mapquest Open data but its trivial to switch to other tilesets (OpenStreetMaps, or something that we might serve locally). The debug overlay is from Equalizer, a C++ SDK for building distributed rendering applications, so this puppy can run on my laptop and on a tiled display wall. There's a couple of things that need fixing (I got some issues with the garbage collection and tile seams are visible sometimes) but overall I'm quite proud of this.

If you're curious about other approaches, OSG with osgEarth does this as well, with (if I recall) XML configuration files to point at many different sources of map data.

Maluco Marinero
Jan 18, 2001

Damn that's a
fine elephant.
Not much to look at but I'm putting together a little Offline Documentation Server in NodeJS. Type in the language, library and version, and where to get it from, and it keeps it organised.

Currently in can fetch zips, copy local directories, or use wget to mirror online directories.



Pretty pleased with what I've put together over this weekend, set it up with a way to locally search and I'll be Googling a whole lot less I reckon.

Orzo
Sep 3, 2004

IT! IT is confusing! Say your goddamn pronouns!

Salvador Dalvik posted:

However, if you want the easiest intro to GUI applications and don't mind using C#, try a WPF app.
WinForms is magnitudes easier than WPF and pretty capable.

shodanjr_gr
Nov 20, 2007

Luminous posted:

If you're curious about other approaches, OSG with osgEarth does this as well, with (if I recall) XML configuration files to point at many different sources of map data.

I hate you so much now...I spent a solid amount of time looking for something like this and could only find "scope-limited" solutions so I basically rolled out my own...

Oh well. I'm that much smarter I guess :haw:.

hendersa
Sep 17, 2006

The BeagleSNES documentation is all typed up! Check it out. Print out a copy and keep it in the bathroom for reading. I worked hard on that thing.

EDIT: I forgot to mention that I mentioned you guys! Thanks for the help!



I had the opportunity to see BeagleSNES on an HDMI TV this weekend, and the analog signal looked awful. For my tiny video captures, I had assumed that most of the garbage in the signal was due to the capture device. Unfortunately, all of that snow, crawling, and poor color was the signal itself. So, I made the command decision to rework the registers a bit and configure the system to push everything out over the HDMI connector as a DVI signal. It took me about four hours to switch the configuration in the kernel and bootloader, and then another three to four hours to get the game selection menu and emulator adapted for the new video output.

The difference was incredible. It looks nice. I mean, I know a digital signal is going to be sharper than an analog one, but having all of the garbage removed from the signal makes a world of difference.

Analog:


Look at all the garbage in that signal. And all that noise moves around the screen, too.

Digital:


This is taken with the camera, and is not a screen capture in software. That is how much cleaner the signal is. The colors are also not anywhere near as washed out as they are in the analog signal.


The whole system with the new digital output.

As an added bonus, the video encoder (VENC) kernel driver (for analog output) is slower than the LCD kernel driver (for digital output), so performance has increased a few FPS. That's enough for me to add in a smoothing 2x2 scaling filter, rather than the raw 2x1 block filter that I has before. I don't get NTSC overscan on the digital signal, but the resolution I am now using is smaller than the old one. It used to be 720x482 at 30Hz for analog, but now it is 640x480 at 60 Hz for digital. I had to tighten up the game selection menu a bit for the smaller resolution, but it was certainly worth it.

I was also surprised to see on the BeagleBoard-xM product page that BeagleSNES was one of the three highlighted projects listed in the "BeagleBoard-xM Projects" area. :toot:

hendersa fucked around with this message at 01:22 on Apr 23, 2013

Programmer Humor
Nov 27, 2008

Lipstick Apathy


Slightly better looking backgrounds to set the mood for block design.

hendersa
Sep 17, 2006

BeagleSNES v0.2 escaped into the wild this evening. These software releases are going to kill me.

Here is the latest and greatest trailer that shows off its new digital video support: https://www.youtube.com/watch?v=QzwZX1AFjIU

I think that right now is a great time for me to curl up on the floor and sleep for about a day-and-a-half.

Orzo
Sep 3, 2004

IT! IT is confusing! Say your goddamn pronouns!
In my latest update I'm showing off something I spent the past few days tying up loose ends on for my engine. Now I can start writing permanently usable entity behaviors (i.e. the meat of the game) and edit their properties in the editor.

Here is a video of my start-to-finish workflow once I have an art asset. Might wanna make big/HD.

https://www.youtube.com/watch?v=QBBI0v8zbr8&hd=1

SlightlyMadman
Jan 14, 2005

I got inspired by an article about using voronoi polygons for terrain generation, and decided to revisit an old project for an HTML5 risk-like TBS game with procedural map generation. I've never messed with voronoi before, but I'm having a lot of fun already.

Randomized then slightly relaxed diagram, with perlin noise applied:

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?

SlightlyMadman posted:

I got inspired by an article about using voronoi polygons for terrain generation, and decided to revisit an old project for an HTML5 risk-like TBS game with procedural map generation. I've never messed with voronoi before, but I'm having a lot of fun already.

Randomized then slightly relaxed diagram, with perlin noise applied:


Nice stuff. I've been working on an HTML5 RTS. Just added building placement/construction:



LP0 ON FIRE
Jan 25, 2006

beep boop

Orzo posted:

In my latest update I'm showing off something I spent the past few days tying up loose ends on for my engine. Now I can start writing permanently usable entity behaviors (i.e. the meat of the game) and edit their properties in the editor.

Here is a video of my start-to-finish workflow once I have an art asset. Might wanna make big/HD.

https://www.youtube.com/watch?v=QBBI0v8zbr8&hd=1

If it's one thing I've experienced lately, tools really help expedite the process of making things and sometimes would be close to impossible without them. If I knew more about coding in OS X, maybe I would make my own for a game I've been developing for iOS over the last couple of years. I use Tiled, and it's a nice simple program that's helped me a lot, but the way I've been placing redundant sprites is to use 16x16px tiles that represent the sprite. The sprite most of the time is a lot bigger, so it only serves as a symbol of sorts in the editor. The map editor you made that shows the actual sprites looks really handy! Very inspiring video.

Orzo
Sep 3, 2004

IT! IT is confusing! Say your goddamn pronouns!
Thanks. There are actually some pretty big limitations when it comes to displaying the sprites in the editor. For example, I have a 'ghost' entity that looks way cooler than just a single texture (see the fonts video--it has a hat, a shadow, the body is partially transparent, and it floats). But the optional 'EditorTexture' property I've exposed in my behavior class just allows for a single texture name. What I really need is a full-on optional custom rendering function for the level editor (i.e. answers the question 'how do you display yourself in the level editor?)

At some point last night I realized that eventually I'll probably end up reworking my level editor to be a 'game' that uses the engine. That is, the game runner that runs the game itself will also be used to run the level editor. This will let me integrate a lot more WYSIWYG features, plus it'll just be way less code to maintain overall.

Rottbott
Jul 27, 2006
DMC
I put editing tools directly into the game, sometimes with a standalone GUI which talks to the game over the network. That way you can visualise exactly what you're getting, edit on console builds, etc.

Here's my space game, showing the editor in action (please ignore the placeholder art):


movax
Aug 30, 2008

HappyHippo posted:

Nice stuff. I've been working on an HTML5 RTS. Just added building placement/construction:





C&C 95! :neckbeard:

Adbot
ADBOT LOVES YOU

SlightlyMadman
Jan 14, 2005

I'm having way too much fun with this voronoi generator:


I've tweaked things a bunch, and added a post-relaxation pass that collapses rendundant nodes (any node surrounded entirely by nodes of the same height). That leaves the terrain edges intact but removes huge swaths of the same tiles, and I think looks much more organic. The plan is eventually to use this for a Risk-like game.

edit: Bridges!

SlightlyMadman fucked around with this message at 18:30 on Apr 26, 2013

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply