Search found 387 matches

by qpHalcy0n
Sun May 09, 2010 2:17 pm
Forum: Programming Discussion
Topic: gluPerspective problems
Replies: 11
Views: 978

Re: gluPerspective problems

Then one of two things is going on. You've either got something sneaky going on in code that is not posted or you need to clean your build and rebuild the entire project with that fix. That is most certainly the fix for THAT particular problem. You have to understand that a perspective projection sc...
by qpHalcy0n
Sun May 09, 2010 12:50 pm
Forum: Programming Discussion
Topic: gluPerspective problems
Replies: 11
Views: 978

Re: gluPerspective problems

You're actually rendering outside the view volume, which is what both the perspective and orthographic projection define. If you're using GLU, it generates a right handed coordinate frame and the OpenGL pipeline is setup for a right handed system. In this system, the camera looks along (0, 0, -1) in...
by qpHalcy0n
Fri May 07, 2010 4:34 pm
Forum: Game Development
Topic: Why Not
Replies: 7
Views: 958

Re: Why Not

I should have been more specific...

You should test against the Z-Buffer, but not write to it in the transparency pass. So Z-writes should be off.
by qpHalcy0n
Thu May 06, 2010 10:00 pm
Forum: Game Development
Topic: Why Not
Replies: 7
Views: 958

Re: Why Not

You're not forced into drawing everything into the z-buffer all the time.

For the transparent faces, just turn z-buffering off and render the transparent faces back to front. Thats all.
by qpHalcy0n
Wed May 05, 2010 2:33 pm
Forum: Programming Discussion
Topic: VC++ 2010 Express Release Problem
Replies: 22
Views: 1386

Re: VC++ 2010 Express Release Problem

Well I'm sorry if my post seemed pissy, it's just been starting to get on my nerves...
I guess a lack of emoticons makes it easy for a post to be taken too seriously
You've probably gathered that I wasn't simply talking about this post. I'm not THAT psycho.
by qpHalcy0n
Wed May 05, 2010 11:21 am
Forum: Programming Discussion
Topic: VC++ 2010 Express Release Problem
Replies: 22
Views: 1386

Re: VC++ 2010 Express Release Problem

You know what? You really need to work on your attitude because it sucks and is rather irritating. You told him that he's never right then at the same time you go and get all pissy because someone poked fun at you for segfaulting pong. Oh no! Take it in jest and move on. Instead of learning from you...
by qpHalcy0n
Wed May 05, 2010 10:30 am
Forum: Programming Discussion
Topic: VC++ 2010 Express Release Problem
Replies: 22
Views: 1386

Re: VC++ 2010 Express Release Problem

Well, this isn't really the fault of Visual Studio. You're just in DLL hell and getting into the finer points of software deployment in general :] Either way, it can't read a DLL it needs. Either the DLL in question does not have read access (not installed correctly), the DLL version does not match ...
by qpHalcy0n
Sat May 01, 2010 12:28 pm
Forum: Programming Discussion
Topic: SDL: Controlling input
Replies: 17
Views: 1261

Re: SDL: Controlling input

Given most compilers, if you actually look, it USUALLY generates the exact same code.

If the switch is pretty tightly packed and sequential, then the compiler MAY create a jump table which ends up being a smidge faster. What one compiler does another may not.
by qpHalcy0n
Fri Apr 30, 2010 12:11 am
Forum: General/Off-Topic
Topic: What Would You Tell Your Highschool Self?
Replies: 32
Views: 4012

Re: What Would You Tell Your Highschool Self?

"You invented the flux capacitor."
by qpHalcy0n
Thu Apr 22, 2010 4:17 pm
Forum: Programming Discussion
Topic: Render to Texture?
Replies: 8
Views: 930

Re: Render to Texture?

Exactly. The more practical application here is to store data that isn't an "image". Anything like split screens, portals, and things of that nature don't require RTT. Bump mapping as well does not require RTT, as a matter of fact this would be a nasty waste of memory and bandwidth. More c...
by qpHalcy0n
Thu Apr 22, 2010 2:26 pm
Forum: Programming Discussion
Topic: Render to Texture?
Replies: 8
Views: 930

Re: Render to Texture?

Means rendering to something other than the default back buffer, like say...a texture for example :] (Some API's and extensions do make the distinction between a "renderable texture" and a "render target"...there IS a difference). Their uses are far too many to even mention here....
by qpHalcy0n
Sat Apr 17, 2010 11:47 am
Forum: Programming Discussion
Topic: <SOLVED>Destructors and access voilation reading location
Replies: 14
Views: 1019

Re: <SOLVED>Destructors and access voilation reading location

No, absolutely not.

It just means that if you're pushing on pointers to heap allocated memory that you have to MANUALLY go through and explicitly delete the memory because it is not implicitly deleted by std:: containers.
by qpHalcy0n
Sat Apr 17, 2010 9:58 am
Forum: Game Development
Topic: Global/Singleton or Local?
Replies: 9
Views: 1321

Re: Global/Singleton or Local?

I'd say for those objects that are persistent (eg: xxxxxMachine, xxxxEngine, xxxxFactory), then there's absolutely no problem whatsoever having a global pointer to the instance. A good and safe bet is to just define an externally linked pointer at the end of the class definition. Then you need a con...
by qpHalcy0n
Sat Apr 17, 2010 9:31 am
Forum: Programming Discussion
Topic: <SOLVED>Destructors and access voilation reading location
Replies: 14
Views: 1019

Re: <SOLVED>Destructors and access voilation reading location

No, it doesnt matter how you get them in there. The std:: containers only see pointers. The implementation doesn't care beyond that. So it can't presume anything about them other than that they're pointers.....to something. So the clear methods, the pop methods and so forth don't invoke delete/free....
by qpHalcy0n
Fri Apr 16, 2010 8:27 pm
Forum: Programming Discussion
Topic: <SOLVED>Destructors and access voilation reading location
Replies: 14
Views: 1019

Re: <SOLVED>Destructors and access voilation reading location

Unfortunately in this case pop_back will not suffice. pop_back will not invoke delete on memory allocated on the heap, which in this case it is. If it were a case where he were just pushing on copies of whatever it is then this would be fine. In this case you have satisfied the runtime error, but no...