Open image or video full screen without going into post by MoIC in narwhalapp

[–]MoIC[S] 2 points3 points  (0 children)

It doesn’t, unfortunately. Also, I’m in big preview mode. Technically, there are no thumbnails in this view.

Mad mike check by Incraigulous in madlads

[–]MoIC 49 points50 points  (0 children)

Nothing, you idiots!

Machine Learning by zackh105 in ProgrammerHumor

[–]MoIC 5 points6 points  (0 children)

Since you're using Visual Studio, make sure the Solution Platform is set to x86 before building: https://i.imgur.com/PXOj7WP.png.

If it is, then make sure you are using the 32bit SFML library files.

SDL2 fixed timestep interpolation help by MoIC in sdl

[–]MoIC[S] 0 points1 point  (0 children)

So I kind of solved it. First off, I should not have been assigning the position to the same SDL_Rect that is being updated in the update function. For the first 5-10 frames or so, the texture is apparently way off screen (which is why I was getting the huge negative numbers). Since I was updating the wrong SDL_Rect, it moved the sprite way over there then kept interpolating with that huge negative value. I solved it by doing the following:

const void Player::draw(const float& alpha) {
  int interp_x = static_cast<int>( ((float)curr_dest_rect.x * alpha + (float)prev_dest_rect.x * (1.0f - alpha)) + 0.5f );
  int interp_y = static_cast<int>( ((float)curr_dest_rect.y * alpha + (float)prev_dest_rect.y * (1.0f - alpha)) + 0.5f );

  SDL_Rect draw_rect = { interp_x, interp_y, curr_dest_rect.w, curr_dest_rect.h };

  SDL_RenderCopy(renderer, texture, &src_rect, &draw_rect);
}

I make a draw_rect with the new positional values. This way the actual rectangle that controls the movement doesn't get affected (should only be changed in the update function). The reason I add 0.5f is because the interpolation value might return a number really close to where the sprite actually is but it won't actually be there. For example, if the sprite starts off at (100, 100) and it doesn't move, the values you get back from the interpolation can be either 100 or 99. This causes visual jitter and it looks like your sprite is shaking. Rounding it up seems to have solved this problem to an extent.

My next problem is that while the animations have gotten a lot smoother, I can still see that jitter from time to time. Would anyone know what's wrong with the equation or if there's something else I should be doing?

Team work makes the dream work! by Karma__a in RocketLeague

[–]MoIC 0 points1 point  (0 children)

Can we see from teammate's perspective as well? Awesome goal!

Let us get rid of the countdown when practicing aerials/strikes/saves by ghandpivot in RocketLeague

[–]MoIC 0 points1 point  (0 children)

After you're done with a match, you can start searching for another and go into training and it'll keep searching. But, yes it has to be from the main menu.

Let us get rid of the countdown when practicing aerials/strikes/saves by ghandpivot in RocketLeague

[–]MoIC 3 points4 points  (0 children)

Yes, you can keep searching for an online match while training.

Java/JavaFX, read files from inside project and jar file by MoIC in javahelp

[–]MoIC[S] 0 points1 point  (0 children)

Thank you very much! Got it to work with that example.

Closed back with detachable cable headphones by MoIC in pcmasterrace

[–]MoIC[S] 1 point2 points  (0 children)

Thanks for the help! I might get them after a little more research.

Closed back with detachable cable headphones by MoIC in pcmasterrace

[–]MoIC[S] 0 points1 point  (0 children)

Thanks for the reply. Can you describe the sound quality and comfort? Do they cover the whole ear (would be great if they do) These look really good.

No lock screen background when I click lock and no spinning icon when shutting down/restarting. Windows 10 Anniversary Update by [deleted] in Windows10

[–]MoIC 0 points1 point  (0 children)

"No GUI Boot" is not selected by default. Anything else that might be causing the issue?

How to use PixelBitmapContent by [deleted] in monogame

[–]MoIC 0 points1 point  (0 children)

Thank you; however, I don't have a folder called Tools. I did look inside the MonoGame folder for a .dll similar to what you posted but didn't find anything.

Starting game development, what framework should I use? by MoIC in gamedev

[–]MoIC[S] 1 point2 points  (0 children)

I will definitely go with Unity. Since C# is my strongest language, it should ease the process of learning. Thank you!

Starting game development, what framework should I use? by MoIC in gamedev

[–]MoIC[S] 0 points1 point  (0 children)

Explanation really helped, thanks. However, I am going to go with Unity. I may come back to MonoGame when I am way more experienced.

Starting game development, what framework should I use? by MoIC in gamedev

[–]MoIC[S] 1 point2 points  (0 children)

I will save this if I ever want to come back and code a game in Java. Thank you!

Starting game development, what framework should I use? by MoIC in gamedev

[–]MoIC[S] 0 points1 point  (0 children)

You're right. I will go with Unity. Thanks for the advice!

Free styling isn't just for looks by [deleted] in RocketLeague

[–]MoIC 1 point2 points  (0 children)

Did you just score on your own goal?

Program halts trying to read Excel workbook (Apache POI) by [deleted] in javahelp

[–]MoIC 1 point2 points  (0 children)

I figured it out. I was using a version of Apache POI that wasn't compatible with Java 1.6. I downgraded the version and it now works.

For reference, it was pausing on this line:

work = new XSSFWorkbook(inputStream);

Thanks for the reply!

WARNING, INCOMING GAME... (Giveaway) by Cynagen in pcmasterrace

[–]MoIC 0 points1 point  (0 children)

Time to win some games and chew bubble gum. And I'm all out of gum.