Search:
Type: Posts; User: bovinedragon
Search:
Search took 0.02 seconds.
-
September 29th, 2008, 04:55 PM
Both representations work, just depends what type of camera you want.
-
September 26th, 2008, 06:00 PM
Have you enabled lighting in your scene? In OpenGL you have to set a light source to get shading from the normals.
-
September 24th, 2008, 05:24 PM
You are defeating the purpose of virtual functions as kempofighter said. You are going to have a matching IBuffer for each of your IRenderer, so how I would do this is to combine the two classes. ...
-
September 23rd, 2008, 08:52 PM
I dont know if this is it since you are not doing any transformations, but you should set your current Matrix back to the Model View Matrix at the end of your init function after you set up the...
-
September 20th, 2008, 06:17 PM
I find myself using lots of getter/setter functions to access the private variables of a class. Is this common practice? or does it mean I should rethink my design? When should you use getter/setter...
-
September 15th, 2008, 12:43 PM
Are you including the header file in both of your .cpp files?
Try putting an include guard in your header file.
http://en.wikipedia.org/wiki/Include_guard
-
September 7th, 2008, 05:30 PM
Well how would you calculate it on paper? You find the difference of the two, and then check if the absolute value is less than your threshold
if( abs( num - guess ) < 10 )
cout << "You are so...
-
September 7th, 2008, 05:18 PM
Try adding "glew32.lib" to your dependencies.
If you are using VC++ 2008 express, it is under project-> *name* properties->configuration properties->linker-> additional dependencies
-
September 7th, 2008, 12:34 AM
TreeNode( ) : root(NULL){}
is a contructor for the class TreeNode, that initializes member "root" with the value NULL.
The : part is called an initialization list. It is a feature of classes,...
-
September 6th, 2008, 04:52 PM
Sorry, that was not my full code, i just put the parts that were demonstrating my problem.
The double dispatch looks like just what i need, thanks.
-
September 6th, 2008, 03:15 PM
I have a pure virtual base class "BoundingVolume", and i derive different types of volumes from. I have to pass a BoundingVolume* to another BoundingVolume* to check if they collide, but it has to...
-
August 29th, 2008, 11:40 AM
and for projecting a point onto a plane, look at dot products
-
August 29th, 2008, 12:23 AM
There were many options suggested above. If you dont know whether your points are convex hull or not, maybe tell us more about what you are trying to do exactly and we can help. How are you...
-
July 24th, 2008, 12:15 AM
Well, if you are going to be a game programming/graphics major, it is certainly not a bad waste of time to make a game graphics engine!
Its not that hard, check out http://www.gamedev.net/ for...
-
July 23rd, 2008, 01:09 PM
Those are very big subjects, but basically:
Abstraction - Using Abstract classes, virtual members, polymorphism
Encapsulation - Hiding information, providing only the interface that is needed to...
-
July 23rd, 2008, 12:59 PM
-There is no reason to pass 'repeat_instructions' to instructions(), as you are not using that value in that function. The 'repeat_instructions' in the instructions() should be a local variable. ...
-
July 22nd, 2008, 11:17 PM
as srelu said, we don't do that here
I'm guessing you are stuck on the math part?
http://en.wikipedia.org/wiki/Linear_interpolation
use gray scale value as the 'dx', and interpolate between...
-
July 22nd, 2008, 11:06 PM
also, dont forget to call srand()
http://www.cplusplus.com/reference/clibrary/cstdlib/srand.html
-
July 22nd, 2008, 10:52 PM
couple of quick things that I noticed:
- You are using 'int' to hold a 1 or 0 in many places(like program, inst_loop), you should be using 'bool'
-There is no reason to define res2 in the main(),...
-
June 27th, 2008, 01:51 AM
You dont really need two variables for amount. Something like this?
while(count <= aInvest.yearsNum)
{
cout<<"At the start of year "<<count<<", you have...
-
June 23rd, 2008, 01:22 AM
http://www.codeguru.com/forum/showthread.php?t=366302
-
I have a file that my program reads. It is in the debug folder of my project, where the exe is. When i manually go the folder and run the exe, it sees the file, but when i run the exe through VC++...
-
April 13th, 2008, 11:43 PM
None of the OpenGL libs cost money, you just may need to go download them. A quick google search does the trick.
-
April 12th, 2008, 11:00 PM
OpenGL is not open source, despite the name. And yes, the basic OpenGL libs come with VC++ 2008
-
March 31st, 2008, 11:48 PM
for the 12944th time...
http://www.codeguru.com/forum/showthread.php?t=366302
|
Click Here to Expand Forum to Full Width
|