• What are you working on? December 2011 Edition
    3,353 replies, posted
[QUOTE=simie;33708035]I've been working on a data editor for my game. It uses C# reflection to build a raw data editor for each type, and there will be a more user-friendly "designer" tab for each data type. [img]http://f.cl.ly/items/3t2o2j0c3H0b300e0b3n/Image%202011-12-13%20at%2011.03.52%20PM.png[/img] It has a bit of support for any type of generic list, but it can't save those yet.[/QUOTE] Could you post the code for windows inside windows?
Sure: [CODE] Form someForm = new Form(); someForm.MdiParent = someParentForm; // someParentForm must have MdiContainer set to true someForm.Show(); [/CODE] is basically it. There is a lot of extra stuff about merging menus and stuff but there is some msdn docs about that.
[QUOTE=Tezzanator92;33706962]Great little brain teaser :O[/QUOTE] Cool, now triangulate this: [img]http://eagle.undo.it:8083/img/testTriangles3.png[/img]
[QUOTE=PortalGod;33707303]Got 2D top-down movement working, something I've always wanted to do [vid]http://dl.dropbox.com/u/32605179/tiles.webm[/vid] [editline]13th December 2011[/editline] Woops, fraps got the song I was listening to :v:[/QUOTE] I could be your boy
[QUOTE=DrLuke;33708319]I could be your boy[/QUOTE] You could be my girl
[img]http://puu.sh/aAyq[/img] Need to fix the thicker outline.
[QUOTE=Darwin226;33708596][img]http://puu.sh/aAyq[/img] Need to fix the thicker outline.[/QUOTE] Whatcha' makin'?
Created a random galaxy of 8192 planets with random planet names as an assignment for school. We were not allowed to "store" planet positions and names in an array of sorts. The names are procedurally calculated. [img]http://i53.tinypic.com/10e0uhx.png[/img] [img]http://i54.tinypic.com/flc8ht.png[/img] It even scrolls. :D
[QUOTE=DeadKiller987;33701527] I'm currently using Visual Studio 2011 Dev Preview with Visual Assist X. I can't work without either now.[/QUOTE] How did you make it work for non-metro apps?
Hey hey hey, fixed up my stack issue. I tried not using negative stack indices, and bam: [img]http://i.imgur.com/lBMWJ.jpg[/img] The coordinates given, and eye angle provided create the background image for HL2:SB! Woo. Except I can't use it because the light blue sky and white logo have too little contrast. :(
[QUOTE=Night-Eagle;33708317]Cool, now triangulate this: [img]http://eagle.undo.it:8083/img/testTriangles3.png[/img][/QUOTE] I gave it a shot: [t]http://i.imgur.com/g9gAn.png[/t] I'm taking a break from my physics engine to pick this project back up. Have some concept art: [t]http://mordi.ziphoid.com/data/stuff/CharacterConcepts2.png[/t] *edited* have a larger version
Made this because I couldn't sleep :v: [vid]http://dl.dropbox.com/u/28308500/Pics/stuff.webm[/vid]
Yes I did. Aren't they pretty? :v:
Been working on a pacman-ish game for one of my courses, just got done getting the code to compile in Windows too. For some reason my 1.6GHz single-core laptop with an Intel 945GM gets better frame times than my i7 950 desktop with a GTX570... [img]http://ace.haxalot.com/pictures/random/zscreen/Not_Quite_Pacman_%28Debug%29_Built_at_Dec_14_2011_004612-2011-12-14_03.05.19.png[/img] You can try it [url=http://ace.haxalot.com/projects/NQP.7z]here[/url] (Added the Linux executable, requires SDL 1.2 and SDL_image) If it crashes then by all means, report it. (But not if it's a missing [url=http://www.microsoft.com/download/en/details.aspx?id=5555]MSVCR100D.dll[/url])
[QUOTE=ace13;33710813] If it crashes then by all means, report it.[/QUOTE] It crashed as soon as i clicked on it. There was no warning it just crashed.
"hello world" of game networking! enet is pretty awesome. [IMG]http://i.imgur.com/cVCNj.png[/IMG]
[QUOTE=amcfaggot;33709329]I tried not using negative stack indices...[/QUOTE] This will cause more problems later on. You should only ever deal with the stack using negative indices (unless being called by Lua). luasrc_dumpstack printed this: [code] 1: Vector 2: QAngle 3: 90 [/code] Negative stack indices operate from the top of the stack, so -1 refers to 90, -2 refers to QAngle, -3 refers to Vector. The fact that the 90 did not print confirms this (lua_tonumber returned false).
[QUOTE=Deco Da Man;33711748]This will cause more problems later on. You should only ever deal with the stack using negative indices (unless being called by Lua). luasrc_dumpstack printed this: [code] 1: Vector 2: QAngle 3: 90 [/code] Negative stack indices operate from the top of the stack, so -1 refers to 90, -2 refers to QAngle, -3 refers to Vector. The fact that the 90 did not print confirms this (lua_tonumber returned false).[/QUOTE] Thanks for pointing that out. Perhaps not working on the mod for months has left me back in a state of stack confusion. The rest of the codebase deals with negative indexing, though. I guess this is just a matter of me forgetting a thing or two. Anyway, I really really appreciate that, thanks again.
What model formats does XNA accept?
[QUOTE=Mr. Smartass;33712933]What model formats does XNA accept?[/QUOTE] .fbx and .x but you can make your own custom importers for other model formats.
[vid]http://dl.dropbox.com/u/11517902/3DTestXNA 2011-12-13 14-54-22-32.webmvp8.webm[/vid] Woopsie rotation got a bit borked :v:
[media]http://www.youtube.com/watch?v=Eb-qOyjeyJU[/media] Uploaded this video to help a colleague torture some kids in another class. Thought I'd post it here too. [QUOTE=thrawn2787;33712965]Woopsie rotation got a bit borked :v:[/QUOTE] Beware of gimbal lock and unnormalized quaternions!
[QUOTE=efeX;33712942].fbx and .x but you can make your own custom importers for other model formats.[/QUOTE] [url=http://tomato.codeplex.com/]Tomato[/url] has a pretty good obj importer, it doesn't rely on anything (afaik) from the rest of the renderer and shouldn't be too hard to hack together into a project.
I just got a whole shitload of viruses n' shit injected into my body Can't sleep MORE UI GIVE IT TO ME I NEED THE DELICIOUS UI CODING Time to work on...uh...turning YogUI (pronounced Yaw-Gooey) into a DLL.
Haha, finals tomorrow and need plenty of sleep? Too bad, instant inspiration to start programming late at night. Well fuck me.
[QUOTE=amcfaggot;33713041]Haha, finals tomorrow and need plenty of sleep? Too bad, instant inspiration to start programming late at night. Well fuck me.[/QUOTE] We can be late night programming buddies [img]http://sae.tweek.us/static/images/emoticons/emot-buddy.gif[/img]
[QUOTE=Yogurt;33713064]We can be late night programming buddies [img]http://sae.tweek.us/static/images/emoticons/emot-buddy.gif[/img][/QUOTE] What's that? 4am on a friday night (saturday morning?) Sounds like the perfect time to program to me. :v:
[QUOTE=Lord Ned;33713140]What's that? 4am on a friday night (saturday morning?) Sounds like the perfect time to program to me. :v:[/QUOTE] Ex... Except it's Tuesday night.
So I made it super easy to add custom styles and content to the Panel without any subclassing bullshit. You can make an NSObject which responds to some or all of the following: - SPPanelStyleHandler: Handles styling controls to be added to the panel - SPPanelContentHandler: Handles adding new content to the panel - SPPanelBackgroundContentHandler: Handles drawing things behind the background. You can also set to draw the default background image or not. Here's a basic implementation of a styler, content handler, and background content handler. .h [code] #import <Foundation/Foundation.h> #import "SPPanel.h" @interface SPPanelControllerTest : NSObject <SPPanelStyleHandler, SPPanelContentHandler, SPPanelBackgroundContentHandler> @end [/code] .m [code]#import "SPPanelControllerTest.h" @implementation SPPanelControllerTest - (void)styleControl:(UIControl *)control { if (control != nil) { Class cClass = [control class]; if (cClass == [UIButton class]) { // Make the text color of the button black UIButton *button = (UIButton*)control; [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; button.backgroundColor = [UIColor clearColor]; } else if (cClass == [UISlider class]) { // Make the left part of the slider red UISlider *slider = (UISlider*)control; slider.minimumTrackTintColor = [UIColor redColor]; slider.backgroundColor = [UIColor clearColor]; } else { NSLog(@"WARNING: No style is availible for the UIControl"); } } else { // Just in case... [NSException raise:@"Passed nil to styleControl:control" format:nil]; } } - (BOOL)shouldDrawDefaultBackgroundImage { return YES; } -(void)setupBackgroundView:(UIView *)view fromSender:(id)sender { // Add a label to the background that says "Insane" UILabel *l = [[UILabel alloc] initWithFrame:CGRectMake(8, 8, 140, 30)]; l.text = @"Insane"; l.backgroundColor = [UIColor clearColor]; [view addSubview:l]; } - (void)setupContentView:(UIView *)view fromSender:(id)sender { // Add a label to the content view that says "Clown" and a button that says "Posse" SPPanel *panel = (SPPanel*)sender; UILabel *l = [[UILabel alloc] initWithFrame:CGRectMake(8, 8, 140, 30)]; [panel addView:l]; UILabel *l2 = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 140, 30)]; l2.text = @"Clown"; [panel addView:l2]; UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btn.frame = CGRectMake(0, 0, 140, 30); [btn setTitle:@"Posse" forState:UIControlStateNormal]; [panel addControl:btn styled:YES]; UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake(0, 0, 140, 0)]; // 0 can be the height because UISlider has a locked height. [slider setMinimumValue:0]; [slider setMaximumValue:100]; [slider setValue:50]; [panel addControl:slider styled:YES]; } @end [/code] That code, when applied to a Panel, outputs this: [img]http://i.imgur.com/RdWCE.png[/img] Default styles would output this: [img]http://i.imgur.com/BPET5.png[/img] Sorry about the gigantic post.
[QUOTE=jalb;33709472]I gave it a shot: [t]http://i.imgur.com/g9gAn.png[/t] [/QUOTE] I wish I knew where to start with this, every algorithm I have came up with so far has had some irritating limitation. For example, with the above can you make a chevron with 4 points no matter which point is used to start from? Also your sidebar looks pretty much exactly how I have it sketched in my notebook :v:
Sorry, you need to Log In to post a reply to this thread.