• What are you working on? v19
    6,590 replies, posted
[QUOTE=theJohn;30807740]Would it be stupid to learn OpenGL to make 2D-games for starters? I'm eager to learn OpenGL but I don't have the math knowledge needed for 3D-stuff without copying shit straight out of tutorials. EDIT: Is OpenGL even suitable for 2D-games?[/QUOTE] 2d just as much as 3d!
It works absolutely fine on my iPod touch - it sticks an ascii 10 in, just like it's supposed to. The problem seems to be Windows jumping in and adding another byte in a function that is only meant to ever write one byte, and shooting itself in the bloody foot in the process. Does anyone have a way around this? [editline]30th June 2011[/editline] Nvm, fixed it. Opening the file with "wb" makes the output functions do what you tell them to. Makes a certain amount of sense, but still doesn't explain why putc() should ever put more than one char :argh:
Switched to a quad-tree from a spatial hash. I've noticed performance increments! It also removes the width/height limitation of the spatial hash. I could have infinitely big maps in theory. Added a cool looking background, debug zooming, large maps, scrolling. [media]http://www.youtube.com/watch?v=GBzu1lRAFwA[/media]
[QUOTE=r0b0tsquid;30807948]...doesn't explain why putc() should ever put more than one char :argh:[/QUOTE] [url=http://www.google.com/search?q=cr+lf]CR+LF[/url] line endings. So you can store a newline in one character in your program, but maintain output that is readable by Windows Notepad. It's like having your birthday cake and replacing every candle with two.
[QUOTE=Night-Eagle;30808423][url=http://www.google.com/search?q=cr+lf]CR+LF[/url] line endings. So you can store a newline in one character in your program, but maintain output that is readable by Windows Notepad. It's like having your birthday cake and replacing every candle with two.[/QUOTE] Which sucks. Everything should just be with the \n instead of having both \r\n and \n. What good does it even do?
[QUOTE=SupahVee;30808286]Switched to a quad-tree from a spatial hash. I've noticed performance increments! It also removes the width/height limitation of the spatial hash. I could have infinitely big maps in theory. Added a cool looking background, debug zooming, large maps, scrolling. [media]http://www.youtube.com/watch?v=GBzu1lRAFwA[/media][/QUOTE] Looks pretty good so far. You just need to fix that tile "tearing" issue. I have the same problem myself, any idea how to solve it ?
[img]http://filesmelt.com/dl/blarrrg.png[/img] Pin/Unpin tiles, live tiles(get gmail unread count), a clock, clicking on a tile displays the current opened windows (middle click opens another instance of application, right gives context menu). Work PC uses Xp so I've yet to do any cool dwm shit like window previews.... in 7 and vista the currently opened windows will be a preview rather than a plain colored tile.
[QUOTE=Night-Eagle;30808423][url=http://www.google.com/search?q=cr+lf]CR+LF[/url] line endings. So you can store a newline in one character in your program, but maintain output that is readable by Windows Notepad. It's like having your birthday cake and replacing every candle with two.[/QUOTE] I understand that Windows tends to use \r\n instead of the more common linefeed, and it would be quite understandable for it to do so in fprintf() since that's generally used for text and formatted output (print[b]f[/b]), but I just find it a little illogical for a function called putc() to put more than one char :/ [editline]30th June 2011[/editline] In related news, I figured out how to map midi note numbers to frequencies :science:
[QUOTE=Foda;30808960][img]http://filesmelt.com/dl/blarrrg.png[/img] Pin/Unpin tiles, live tiles(get gmail unread count), a clock, clicking on a tile displays the current opened windows (middle click opens another instance of application, right gives context menu). Work PC uses Xp so I've yet to do any cool dwm shit like window previews.... in 7 and vista the currently opened windows will be a preview rather than a plain colored tile.[/QUOTE] I thought the idea of push e-mail was the server pushes new mail to the client so it doesn't need to interval check? When you have to set an interval that's "Fetch" e-mail because your client is asking the server for new mail (Fetching it)
[QUOTE=r0b0tsquid;30808973] just find it a little illogical for a function called putc() to put more than one char :/[/QUOTE] Open file in binary mode and it won't.
[QUOTE=CarlBooth;30809071]I thought the idea of push e-mail was the server pushes new mail to the client so it doesn't need to interval check? When you have to set an interval that's "Fetch" e-mail because your client is asking the server for new mail (Fetching it)[/QUOTE] Yea, you're right. I can't actually do push notifications (or not that I know of...). I'll change it to "Fetch" and add a picture of a dog. Edit: [img]http://filesmelt.com/dl/dawwg.png[/img]
Look in to EWS API
[QUOTE=CarlBooth;30809276]Look in to EWS API[/QUOTE] Oh neat! Had no idea about that, looks like I know what I'm going to be working on tomorrow. ...but I'm going to keep that dog. Edit: Also, the only reason why I bother with XP support is because like I said before, my work PC runs XP. I noticed that the animation speeds and overall GUI performance is very slow. Vista/7 is so much better at drawing alpha enabled objects that it's not even funny. Edit2: Also, I wanted to include the ability to load custom tiles like weather and shit. I was thinking about doing that via a tile that just displayed a Webkit window and loaded a local html (vista/7 sidebar/widgets do that right?). Would that even be a good idea? I was thinking html5 and javascript would enable some cool stuff but I have no idea if there is a better solution out there.
[QUOTE=Foda;30809254]Yea, you're right. I can't actually do push notifications (or not that I know of...). I'll change it to "Fetch" and add a picture of a dog. Edit: [img]http://filesmelt.com/dl/dawwg.png[/img][/QUOTE] It looks nice except for the hideous windows 98 era buttons / tab shading
[QUOTE=Dotmister;30809844]It looks nice except for the hideous windows 98 era buttons / tab shading[/QUOTE] that's XP for ya
My iPod now has the original Mario theme for an alarm :D unfortunately it plays at at least warp factor eight. I need to get my timing sorted out. [editline]30th June 2011[/editline] [QUOTE=esalaka;30809226]Open file in binary mode and it won't.[/QUOTE] I wasn't sure whether to rate useful or late, so I went for friendly :) I fixed it a while ago, I was just whining about function names.
[QUOTE=r0b0tsquid;30810031]I wasn't sure whether to rate useful or late, so I went for friendly :) I fixed it a while ago, I was just whining about function names.[/QUOTE] Well the point is non-binary mode wouldn't exist if it wasn't for things like DOS that just have to have their CRLF
Whoever suggested the Head First Java books in this thread is a genius and many thanks go out to you, the book is very well written. I'm working through it at quite a pace.
[QUOTE=T3hGamerDK;30808693]Which sucks. Everything should just be with the \n instead of having both \r\n and \n. What good does it even do?[/QUOTE] [url]http://en.wikipedia.org/wiki/Newline#History[/url]
So I read the word "quad tree" somewhere on this page and that inspired me to make this: [img]http://dl.dropbox.com/u/4081391/opentktktkt.gif[/img] As you can see, it gets really laggy near the end :v: Bigger, not-animated version: [quote][url=http://i.imgur.com/vttUX.png][img]http://i.imgur.com/vttUX.png[/img][/url][/quote]
[QUOTE=r0b0tsquid;30810031]My iPod now has the original Mario theme for an alarm :D unfortunately it plays at at least warp factor eight. I need to get my timing sorted out.[/QUOTE] This is an awesome idea and I can't believe I didn't think of it
[QUOTE=Dlaor-guy;30810504]So I read the word "quad tree" somewhere on this page and that inspired me to make this: [img]http://dl.dropbox.com/u/4081391/opentktktkt.gif[/img] As you can see, it gets really laggy near the end :v: Bigger, not-animated version:[/QUOTE] Make tiles the smallest unit of your tree and use this for tilemap zooming. As a proof-of-concept or something.
[QUOTE=CarlBooth;30810512]This is an awesome idea and I can't believe I didn't think of it[/QUOTE] I'd never realised you could put different tones on the nano, but after fiddling I discovered that iPod_control/Tones contains tone files, and the nano will automatically load any file ending in .tone. The format is plaintext: the file begins with the name to be displayed in the menu, and then each note consists of a linefeed, a frequency in Hz, a space and then a duration in milliseconds. You could make new tones in notepad or w/e if you wanted, but I thought I'd do something a little more fun :buddy:
[QUOTE=snergwerf;30801241]Maybe you can [b]write about it at [h2]open.gl[/h2][/b][/QUOTE] I'm going to work on it after this mapping project, the one I've been writing the converter for.
[QUOTE=Overv;30811497]I'm going to work on it after this mapping project, the one I've been writing the converter for.[/QUOTE] as if :v:
Porting my XNA stuff to SlimDX, weee
Finally, here something I've been working on: [img]http://ahb.me/3mcp[/img] It's the start of a Dungeons and Dragons game :v: [editline]30th June 2011[/editline] Written in C++ with Polycode And me and NorthernGate have postcount synchronicity :v: :v:
[QUOTE=NorthernGate;30812301]Porting my XNA stuff to SlimDX, weee[/QUOTE] Say bye bye to XNA's lovely fbx parser if you're using 3D =(
Oh well, since you guys are so impatient, I'll put my progress so far on the site. [url=http://open.gl]http://open.gl[/url]
[QUOTE=Overv;30812526]Oh well, since you guys are so impatient, I'll put my progress so far on the site. [url=http://open.gl]http://open.gl[/url][/QUOTE] I approve of the content
Sorry, you need to Log In to post a reply to this thread.