Search found 387 matches
- Sun Aug 02, 2009 1:14 pm
- Forum: Programming Discussion
- Topic: OpenGL Rotatef
- Replies: 28
- Views: 5300
Re: OpenGL Rotatef
If the image is showing but not blending, then most likely you have not enabled alpha blending. If you want to smoothly blend with the rest of the scene you'll need to turn z-testing off (if you're doing depth tests) and render back to front blending the source alpha to the inverted source's alpha v...
- Sat Aug 01, 2009 10:36 pm
- Forum: Programming Discussion
- Topic: OpenGL Rotatef
- Replies: 28
- Views: 5300
Re: OpenGL Rotatef
I'm glad that fixed it. You'll pick up the terminology as you go. The user pointer doesn't operate terribly much different from the immediate mode processing, instead it attempts to make better use of vertex cache coherency and reduce DMA overhead to the card by batching multiple vertices at a time....
- Sat Aug 01, 2009 7:08 pm
- Forum: Programming Discussion
- Topic: OpenGL Rotatef
- Replies: 28
- Views: 5300
Re: OpenGL Rotatef
Sorry, I made a small mistake, I'd forgotten matrices in OpenGL are row major. (its been awhile :P). Which when multiplying 4 component vectors is the same as pre-multiplying a column major matrix Sorry bout that I just thought about that when reading your code there. So: while logically you're sayi...
- Sat Aug 01, 2009 12:16 pm
- Forum: Programming Discussion
- Topic: [Solved]Visual Studio Linker Error
- Replies: 2
- Views: 327
Re: Visual Studio Linker Error
1) If it worked in VS express, you may simply have a bad build. Have you tried cleaning and rebuilding? (Right click on the project...hit rebuild). 2) You may have actually multiply defined everything in that file. This is usually the case when you have mutual inclusion. Eg: crap.h includes stuff.h,...
- Sat Aug 01, 2009 12:02 pm
- Forum: Programming Discussion
- Topic: OpenGL Rotatef
- Replies: 28
- Views: 5300
Re: OpenGL Rotatef
The GL_MODELVIEW matrix is a concatenated model transform and view transform. A model (or world) transform describes objects relationships to each other in a common coordinate frame. After a modelling transformation the objects are said to be in "worldspace". The view transform is a transf...
- Sat Aug 01, 2009 4:12 am
- Forum: Programming Discussion
- Topic: OpenGL Rotatef
- Replies: 28
- Views: 5300
Re: OpenGL Rotatef
You need to determine the center of the object you're trying to draw in model space. A simple bounding box test will suffice. You also need to save the current model/view matrix before modifying the state, otherwise you wont be able to get the previous matrix back (actually, you CAN...but it's more ...
- Sat Jul 04, 2009 3:23 pm
- Forum: Programming Discussion
- Topic: Where to start with GUI
- Replies: 11
- Views: 1174
Re: Where to start with GUI
It just depends on how deep you want to go with this. A very simple, rudimentary implementation would be one where the GUI can ONLY go one level deep so you don't have to manage convoluted ownership privileges and object relationships. However, in general, they key to a good UI is to keep it as *dec...
- Thu Apr 02, 2009 9:18 am
- Forum: Programming Discussion
- Topic: OpenGL and color effects
- Replies: 4
- Views: 552
Re: OpenGL and color effects
Not sure EXACTLY what you want to do here, but I suspect I have an idea. If you want to do all three of those in combination, the best solution would be as an image based post-processing effect. This involves rendering the scene to an offscreen render target as a forward rendering pass, then in a se...
- Thu Mar 26, 2009 11:22 am
- Forum: Programming Discussion
- Topic: Needed help with spliting up code
- Replies: 22
- Views: 1582
Re: Needed help with spliting up code
This has actually been a pretty big problem with VS9 in particular (VS2008 series). It's been a problem with all MS compilers, however; its a horrendous problem with 2008. If you ever run across code that you absolutely know should work or that a change was made then undone, especially where it pert...
- Wed Mar 25, 2009 9:18 pm
- Forum: Programming Discussion
- Topic: Efficiently Displaying Objects?
- Replies: 11
- Views: 993
Re: Efficiently Displaying Objects?
Spawning the movement code off to a separate thread is certainly not a bad idea. However, in response to the actual problem at hand is just masking the symptom. The issue is that OpenGL does not have any inherent understanding of the concept of v-sync. So anytime double or triple buffering is enable...
- Tue Feb 24, 2009 12:01 pm
- Forum: Programming Discussion
- Topic: OpenGL or Direct X?
- Replies: 12
- Views: 1505
Re: OpenGL or Direct X?
OpenGL is on the way out. Are you serious?! Almost all game consoles base their graphics API off of the OpenGL specs (with exception to Xbox). Direct3D does not provide the flexibility that OpenGL does, to do on the fly geometry instructions in OGL its a simple glBegin(), in D3D you have to jump th...
- Mon Feb 23, 2009 3:03 pm
- Forum: Programming Discussion
- Topic: OpenGL or Direct X?
- Replies: 12
- Views: 1505
Re: OpenGL or Direct X?
If anything, in the past 4 years or so, especially since DX9, OpenGL has been playing a *MAJOR* catch up game. The big issue with OpenGL is that all of it's functionality is still expressed through a subsystem that is over 10 years old. As such, none of the underlying subsystem has changed in 10 yea...
- Thu Jan 29, 2009 9:25 pm
- Forum: Programming Discussion
- Topic: Need a Little advise
- Replies: 124
- Views: 12494
Re: Need a Little advise
Well then you misinterpreted. That'd be 35-50K for your entire college career. Not per year.
- Thu Jan 29, 2009 6:19 pm
- Forum: Programming Discussion
- Topic: Need a Little advise
- Replies: 124
- Views: 12494
Re: Need a Little advise
Where are you getting these tuition figures from?? Either you're misinterpreting the actual cost or you're looking in the wrong places. According to University of Washington, their annual tuition rates are around $13k. (Thats per year ~6.5k/semester) Edit: Looking at your post, I think you misinterp...
- Thu Jan 29, 2009 11:23 am
- Forum: Programming Discussion
- Topic: Need a Little advise
- Replies: 124
- Views: 12494
Re: Need a Little advise
Aeolus, Wait a sec....you're in Washington right? 35-50K annually for school? You've got to be looking at private universities because that's absolutely obscene. The University of Washington has one of the most respected engineering departments in the United States(Public and private). They're in th...