Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

incertia

Member Since 25 Nov 2011
Offline Last Active May 05 2013 09:31 AM
-----

#5051983 Microsoft WORD sizes

Posted by incertia on 10 April 2013 - 06:52 PM

I've heard that Microsoft WORD will always be 16-bit and DWORD will always be 32-bit. Is this because they change the types (say from unsigned long to unsigned short) whenever the system WORD size changes?


#5048468 How much will Windows hate me if I don't use RemoveProp

Posted by incertia on 30 March 2013 - 09:29 PM

I recently found a good way to send a useful pointer to WndProc through the use of SetProp() for use throughout the entire program loop, but I never actually removed it because I never found a good place to. So I'm wondering bad the consequences are going to be if I don't use RemoveProp().


#5048342 WireFrame using HLSL 5

Posted by incertia on 30 March 2013 - 10:48 AM

Why not just switch the rasterizer states?
//FillState and WireframeState have already been defined and created...
pImmediateContext->RSSetState(FillState);
//draw complete objects
pImmediateContext->RSSetState(WireframeState);
//draw wire objects



#5047487 breakout lives

Posted by incertia on 27 March 2013 - 09:37 PM

try setting all your matrices to identity matrices right before you draw the text. You might be translating the text without your knowing.

EDIT: Also, it appears as if glColor and glRasterPos are not OpenGL 4 compliant. They may have been deprecated because I can't seem to find them here.

EDIT2: Lighting and texturing may also effect the color of your text because it seems when lighting is on, a lighting equation is used to compute a new primary color for the rasterized pixel.


#5047484 breakout lives

Posted by incertia on 27 March 2013 - 09:24 PM

I'm not particularly familiar with OpenGL, but here are some good questions to consider. Are you sure (0, 2, 0) is actually within the window? Is your window background white (you're printing white text)? Does the current raster position refer to the bottom left or top left of a character? Try outputting the text at (100, 100, 0) and see what happens.


#5047462 breakout lives

Posted by incertia on 27 March 2013 - 08:26 PM

It would help if we could know what the problem actually was


#5044770 Opengl Rotate from and to a certain point

Posted by incertia on 19 March 2013 - 09:19 PM

So this is going to be pretty general, but I'm sure you can find out a way to do it in code.

You want to rotate from an angle, say theta, to a different angle, say phi, in a direction d (1 for CCW, -1 for CW) in a given time, say t, along the axis of your choice about a point (x, y, z). Your angular velocity then has to be about that axis, which gives you the angle you must rotate per frame to reach your goal in your goal time. However, FPS can change so you must recalculate omega accordingly.

So you now know how fast you're rotating the object, but you're not quite sure how to get to rotate about a certain point. What you do know is that OpenGL provides support for rotating about the origin, so you can subtract (x, y, z) from your point P to center your rotation around the origin, rotate, and then add back (x, y, z). As such, we our transform becomes P = Rotate(P - (x, y, z), omega) + (x, y, z), and you're done.


#5044402 Bizarre Pathfinding Bug, Please Help

Posted by incertia on 18 March 2013 - 05:52 PM

It's generally not a good idea to delete your own topic, because somebody else might have the same logic error as you, and your own solution may be the root of their problem.


#5019724 Projectile Movement C++

Posted by incertia on 09 January 2013 - 07:37 PM

Probably because integers are bad for division.


#5000692 Which game engine.. an indie but experienced programmer?

Posted by incertia on 13 November 2012 - 04:05 PM

Maybe you want to look into engines such as Unreal or maybe rendering engines such as Ogre3D and Irrlicht?


#5000449 "Frames" per second in Win32 console application

Posted by incertia on 12 November 2012 - 09:43 PM

GetTickCount()
is another, but it's not very reliable.


#5000445 Version of Visual Studio to use

Posted by incertia on 12 November 2012 - 09:35 PM

If you have an older version of VS11, all you need to do is update it. Just download the updated compiler and install it.


#4995659 Good library to use for 2d game development with c

Posted by incertia on 30 October 2012 - 07:50 PM

Did some searching, Cairo might also be a good candidate.


#4994585 CLR and COM components

Posted by incertia on 27 October 2012 - 05:54 PM

I'm not very familiar with using the CLR to profile code, so I can't exactly answer #1.

Anyways, here is a good tutorial on COM.


#4994239 Starting with a game

Posted by incertia on 26 October 2012 - 01:14 PM

Serapth is right. Maybe you want to work on something simple, like a tic tac toe. Player vs player is easy to do, but maybe try to implement an AI so the player can test his skills against a computer. Then you can go more advanced, maybe a text based version of poker or mancala. Just keep programming existing games and then  you'll have an idea of what you need for a game that you want to make.




PARTNERS