Search found 4373 matches

by albinopapa
October 30th, 2021, 10:49 pm
Forum: Everything
Topic: Question about nearZ, farZ, and camera position relationship in perspective projection
Replies: 1
Views: 5116

Re: Question about nearZ, farZ, and camera position relationship in perspective projection

Just a guess here, but I'll try my best. When you create a projection matrix, it defines the entire area the camera can see. Setting the near Z to 1.f would/should be where the "screen" is. By lowering the near Z, you move the near clip plane or closest viewable plane closer to the camera and increa...
by albinopapa
October 29th, 2021, 12:02 am
Forum: Everything
Topic: Is there a way to alter the chili framework to run at max framerate possible?
Replies: 1
Views: 5026

Re: Is there a way to alter the chili framework to run at max framerate possible?

Look in Graphics::EndFrame(). You'll find something like pSwapChain->Presetn( 1u, 0u );
Change it from 1u, 0u to 0u, 0u. This will avoid v-sync.
by albinopapa
September 26th, 2021, 4:24 pm
Forum: Everything
Topic: AABB Resolution but not working.
Replies: 3
Views: 3969

Re: AABB Resolution but not working.

There is another way to determine collision and how much correction called Separating Axis Theorem ( SAT ). This took me some time to figure out from all the information on the subject, a lot of the code examples online have errors that the authors never address. Unfortunately, it has been too long ...
by albinopapa
September 26th, 2021, 4:16 pm
Forum: Everything
Topic: Framework Error Opening Graphics.cpp w/ Visual Studio 2019
Replies: 2
Views: 3334

Re: Framework Error Opening Graphics.cpp w/ Visual Studio 2019

Glad you figured it out, the text in the image is WAY too small for me to read, so I wouldn't have been able to help at all.
by albinopapa
September 26th, 2021, 4:14 pm
Forum: Everything
Topic: AABB Resolution but not working.
Replies: 3
Views: 3969

Re: AABB Resolution but not working.

Sorry for the late reply, I guess not many people still visit the forum and I have been busy for the past few months.
by albinopapa
September 26th, 2021, 4:13 pm
Forum: Everything
Topic: AABB Resolution but not working.
Replies: 3
Views: 3969

Re: AABB Resolution but not working.

The way you are handling the collision is missing a key factor, where the collision is taking place. Let's say you are coming from the top and heading to the right. The first thing your code does is check the direction you're traveling. In this case, we are moving right, so the green rectangle gets ...
by albinopapa
August 31st, 2021, 1:32 am
Forum: Everything
Topic: Accessing the gfx.PutPixel from other scopes.
Replies: 3
Views: 3710

Re: Accessing the gfx.PutPixel from other scopes.

Ultimately, there are a few steps to achieve what you want. First, you must #include "Graphics.h" at the top of the header ( .h ) file you want to use the Graphics class. Put this line after #pragma once. Second, in the declaration of the Draw function you must pass the Graphics object by reference ...
by albinopapa
August 30th, 2021, 9:20 pm
Forum: Everything
Topic: Accessing the gfx.PutPixel from other scopes.
Replies: 3
Views: 3710

Re: Accessing the gfx.PutPixel from other scopes.

the only classes I see in those files are position and inhibitions.
by albinopapa
August 12th, 2021, 9:22 pm
Forum: Everything
Topic: Sand Simulator / 2D Fun
Replies: 19
Views: 20011

Re: Sand Simulator / 2D Fun

Interesting stuff.

Have you determined how many particles you're creating and rendering? Seems to be quite a few and still pretty smooth.

Are you planning on releasing the source code? or as a library? or just for personal use?
by albinopapa
August 8th, 2021, 1:35 am
Forum: Everything
Topic: My very first C++ game!!
Replies: 7
Views: 5048

Re: My very first C++ game!!

Wasn't able to run your program there, says there's an assertion in file Surface.cpp on line 9.