Jump to content

  • Log In with Google      Sign In   
  • Create Account


treiguts

Member Since 09 Jun 2011
Offline Last Active Today, 02:02 PM

Topics I've Started

Texture flickering and missing pixels

27 January 2013 - 04:04 PM

Hi! smile.png

 

Youtube video with my "game": 

 

I have missing pixel problem. At top left corner you can see few readings. My coordinates reading is missing some pixels from x coordinate (00:05 time in video). y coordinate is ok. That makes me believe, than my texture coordinates are calculated correctly. I'm not sure where should I start look for the root of problem. The same thing appears in FPS reading, P is missing pixels. But at the same time, CPU reading is ok.

 

Flickering - tiles/textures edge is flickering in white color. It is seen only when camera is moving. And again, I don't know where to look to fix it.

 

If my problems is uncommon, I supplied files as attachments. They are separated for each problem and redundant code removed.

 

Anyway, I hope for some suggestions smile.png


2D platformer. Find nearest two objects for collision.

17 October 2012 - 11:22 AM

HI!
I'm working at my very first game, 2D platformer, and I came across collision problem.

Given some random object in map ( object A ), how to find object B for collision check? I attached an image. At bottom, there is blue platform. That specific platform should be checked for collision with 3 objects: player, right and left rock. All other objects doesn't matter. Question: how do I keep link between those objects?

And player, should I brute-check with all objects in map, whether they collide? That seems ineffective.
I wouldn't want to keep two-dimensional array for tile positions, because I have moving objects besides player.

http://i.imgur.com/JnBbz.png

"final link failed: File truncated" when including gl/glu.h

26 June 2011 - 03:45 AM

Whenever I include <gl\glu.h> in my file, I get

c:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: final link failed: File truncated

Question is: why I get this, what it is and how to fix it?

PARTNERS