• What are you working on? May 2012
    2,222 replies, posted
  • [QUOTE=Richy19;35848316]What are the 3 little renders of the scene in the bottom left? Im guessing the first is the scene without any lighting applied, the second is the normals but I have no idea what the third is[/QUOTE] The third render is a position buffer, it is used for deferred rendering... Usually people only store the z value and reconstruct the position using the projection matrix but right now I'm simply passing the entire position like this: framebuffer.rgb = pos_in_world_space.xyz ... this is still an optimization I have to work on :v:
  • [QUOTE=dije;35849515]Anyone have a link to a tutorial on how to do collision between two 2D objects? I have all the detection stuff going on, just need to get the proper maths for actual collisions.[/QUOTE] [URL="http://www.opentk.com/node/869"]aabb works nicely for me[/URL], if you want anything more complex you should probably look into a physics engine. [editline]asdf[/editline] [QUOTE=Doctor Dark;35845032]Working on a tower defense/top-down shooter mix. I'm gonna have to re do placing blocks, this way is extremely clunky. <broken video> Also, this uses an xbox controller.[/QUOTE] I guess you can't tell, but [url=http://bit.ly/Jf9QGK]your video link is broken.[/url]
  • [QUOTE=elih595;35849513][url]http://pastebin.com/PVbfMQG8[/url] [URL=http://filesmelt.com/][IMG]http://filesmelt.com/dl/thing26.png[/IMG][/URL] I'm trying to make collision in Love, Lua. It is my first attempt at a game but I cant figure out how to make collision on all sides of the square. It only works on the left side right now.[/QUOTE] Looking at the way you've done it, change your movement if statements to something like this maybe?; [lua] if (k.isDown("s"))then if playerY < height - 26 then playerY = playerY + speed end end [/lua] [editline]a[/editline] sorry I thought you just wanted collision with the window boundary, but I suppose you could keep with that and have 4 types of collision for the player, up, down, left and right and if any of those are true then you can't move in that direction using the arrow keys, I'm not good with collision but that's how I'd do it
  • When I try to make 4 different code segments only one works, and when I try to collide with the other sides it pushes the ball through the square.
  • [QUOTE=elih595;35849721]That code makes the ball's Y get stuck once it touches the top or bottom.[/QUOTE] [lua] if (k.isDown("s"))then if playerY < height - 26 then playerY = playerY + speed elseif playerY >= height - 26 then playerY = height - 25 end end [/lua] try that?
  • [img]http://www.leet.cc/Screenshot_from_2012-05-06_19_32_57.png[/img] This took way longer than it should have.
  • Sorry I wasn't clear enough, I was trying to make the ball collide with the blue square. I already have collision with the sides of the program.
  • [QUOTE=DarKSunrise;35849830][img]http://www.leet.cc/Screenshot_from_2012-05-06_19_32_57.png[/img] This took way longer than it should have.[/QUOTE] What IDE/Theme is that?
  • [QUOTE=Richy19;35849870]What IDE/Theme is that?[/QUOTE] Looks like default sublime text 2
  • [QUOTE=DarKSunrise;35849830][img]http://www.leet.cc/Screenshot_from_2012-05-06_19_32_57.png[/img] This took way longer than it should have.[/QUOTE] So you wrapped X windows? Excellent.
  • [QUOTE=Richy19;35849870]What IDE/Theme is that?[/QUOTE] It's [url=http://www.sublimetext.com/]Sublime Text 2[/url] with the [url=https://github.com/buymeasoda/soda-theme/tree/master/Soda%20Dark]Soda Dark theme[/url] and [url=https://github.com/mrlundis/Monokai-Dark-Soda.tmTheme]Monokai Dark Soda color scheme[/url]. The font is Ubuntu Mono.
  • Whenever I have to do anything with X, I look at the SFML source. It is way more informative and useful than the "documentation".
  • I noticed a map piece position generation error that caused alot of troubles with collisions and some more stuff, so it actually took a while to figure out how to change the vertice generation. Now to figure out how to create 4 bounding boxes around the player, each turning when the player moves and each representing a side and then checking on how to move the player. Damn i hate collisions. Also, is it 'vertice' or 'vertex'? Have i been saying it wrong all the time?
  • [QUOTE=Funley;35850108]I noticed a map piece position generation error that caused alot of troubles with collisions and some more stuff, so it actually took a while to figure out how to change the vertice generation. Now to figure out how to create 4 bounding boxes around the player, each turning when the player moves and each representing a side and then checking on how to move the player. Damn i hate collisions. Also, is it 'vertice' or 'vertex'? Have i been saying it wrong all the time?[/QUOTE] Vertex in singular, vertices in plural.
  • [QUOTE=Perl;35850131]Vertex in singular, vertices in plural.[/QUOTE] Well shit :v:
  • [QUOTE=Overv;35849920]Whenever I have to do anything with X, I look at the SFML source. It is way more informative and useful than the "documentation".[/QUOTE] To add on this: The only windowing library that does fullscreen windowing correctly for games is SDL 2. The rest just steal the focus and break alt+tabbing and whatnot from the window manager, while SDL 2 lets the window manager manage fullscreen support.
  • [QUOTE=Jookia;35850215]To add on this: The only windowing library that does fullscreen windowing correctly for games is SDL 2. The rest just steal the focus and break alt+tabbing and whatnot from the window manager, while SDL 2 lets the window manager manage fullscreen support.[/QUOTE] Yea... about that: [vid]http://dl.dropbox.com/u/18453712/glfwalttab.webm[/vid]
  • I'm having some problems with spritebatches in love [img]http://dl.dropbox.com/u/45554193/images/stupid%20spritebatches.png[/img] [editline]6th May 2012[/editline] Those lines are there regardless of the tileset, and whatever I do argegeggehgh
  • [QUOTE=ZenX2;35850664]I'm having some problems with spritebatches in love [img]http://dl.dropbox.com/u/45554193/images/stupid%20spritebatches.png[/img] [editline]6th May 2012[/editline] Those lines are there regardless of the tileset, and whatever I do argegeggehgh[/QUOTE] Wrong scaling filter?
  • [QUOTE=Richy19;35850522]Yea... about that: [vid]http://dl.dropbox.com/u/18453712/glfwalttab.webm[/vid][/QUOTE] Interesting. SDL 1 and SFML 1 & 2 don't do that. After browsing the source, I saw that GLFW uses the window manager fullscreen method, just like SDL 2.
  • [QUOTE=Richy19;35850522]Yea... about that: -glfw gif-[/QUOTE] I love glfw soooo much, its way better then trying to do it my self or having to include a larger project like sdl or sfml.
  • [QUOTE=ZenX2;35850664]I'm having some problems with spritebatches in love [img]http://dl.dropbox.com/u/45554193/images/stupid%20spritebatches.png[/img] [editline]6th May 2012[/editline] Those lines are there regardless of the tileset, and whatever I do argegeggehgh[/QUOTE] Try adding 0.5 to every coordinate.
  • [media]http://www.youtube.com/watch?v=vKGGEmdIn00[/media] Also, how do I create .webm movies?
  • Just finished up a script to tell me what song is playing in iTunes. [IMG]http://i.imgur.com/QVSPA.png[/IMG] Github link if you want to fork it or something: [url]https://github.com/iryw/Playing[/url]
  • [QUOTE=dije;35851253] Also, how do I create .webm movies?[/QUOTE] To simply say, 1. Record video. 2. Download Miro Video Converter. 3. Use Miro to convert video into WebM. 4. Download Dropbox. 5. Paste video into Dropbox 'Public' folder. 6. Copy video file's public link from Rightclick->Dropbox->Copy Public Link. 7. Paste link in (vid)(/vid) tags. (Replace '()'s with '[]'s)
  • [QUOTE=polkm;35851171]I love glfw soooo much, its way better then trying to do it my self or having to include a larger project like sdl or sfml.[/QUOTE] I found GLFW to be perfect, except for the fact that it doesn't have a function to get the window's position. Weird that the person who made it forgot about that!
  • [QUOTE=Mordi;35851651]I found GLFW to be perfect, except for the fact that it doesn't have a function to get the window's position. Weird that the person who made it forgot about that![/QUOTE] Why not write it yourself and make a pull request?
  • [QUOTE=ditoway;35851749]Why not write it yourself and make a pull request?[/QUOTE] Hopefully it won't come to that. im not good with computer :tinfoil:
  • [QUOTE=dije;35851253]Also, how do I create .webm movies?[/QUOTE] If you have ffmpeg you can use this: [code]#!/bin/sh resolution=460x225 fps=15 ffmpeg -i $1 -f webm -vcodec libvpx -acodec libvorbis -ar 44100 -ab 64000 -b 1000k -r $fps -s $resolution -maxrate 2000k -pass 1 -y /dev/null -async $fps $2.webm ffmpeg -i $1 -f webm -vcodec libvpx -acodec libvorbis -ar 44100 -ab 64000 -b 1000k -r $fps -s $resolution -maxrate 2000k -pass 2 -async $fps $2.webm[/code] But seeing as your on windows your probably better getting Miro Converter