Search found 835 matches
- Fri Aug 31, 2012 3:20 pm
- Forum: General/Off-Topic
- Topic: What is a good free typing teaching game/program?
- Replies: 4
- Views: 2552
Re: What is a good free typing teaching game/program?
Nice! Here's another... http://www.sense-lang.org/typing/tutor/test.php
- Thu Aug 30, 2012 5:05 pm
- Forum: Programming Discussion
- Topic: Problem with OpenGL accumulation buffer
- Replies: 3
- Views: 3933
Problem with OpenGL accumulation buffer
I have been messing around with basic effects in OpenGL, the effect I have had problems with is motion blur via the accumulation buffer. When I render transparent treetops and fog in the scene, then add a motion blurred object (different part of the scene) all the treetops seem to be unaffected by f...
- Sun Aug 26, 2012 8:46 am
- Forum: Programming Discussion
- Topic: [ SOLVED ]Player wont Move C++/SDL
- Replies: 8
- Views: 4013
Re: Player wont Move C++/SDL please Help
I'm guessing but try this:
Code: Select all
void Player::Input()
{
if(Event.type == SDL_KEYDOWN)
{
if(Event.key.keysym.sym == SDLK_LEFT)
xVel -= PLAYER_WIDTH / 2;
if(Event.key.keysym.sym == SDLK_RIGHT)
xVel += PLAYER_WIDTH / 2;
}
}
- Sat Aug 25, 2012 12:12 pm
- Forum: Programming Discussion
- Topic: OpenGL Failure
- Replies: 11
- Views: 4072
Re: OpenGL Failure
I'm guessing but try this:
Code: Select all
glVertex2f( -1.0F, -1.0F );
glVertex2f( 1.0F, -1.0F );
glVertex2f( 1.0F, 1.0F );
glVertex2f( -1.0F, 1.0F );
- Thu Aug 16, 2012 3:03 pm
- Forum: Current Events and Science/Technology
- Topic: Cardboard Bicycle
- Replies: 2
- Views: 7182
Re: Cardboard Bicycle
Full of win!
- Thu Aug 16, 2012 2:49 pm
- Forum: Programming Discussion
- Topic: C++0x
- Replies: 2
- Views: 1671
C++0x
Does anybody use the new version of C++, I found myself inclined while I was recently learning some Java for the coming first year in uni. The reason I tried this new version of C++ was because of some of the features that are supported in Java that I remembered/realized were recently added to C++ i...
- Sun Jul 29, 2012 4:14 pm
- Forum: Game Development
- Topic: 3D Graphics Engine Progress
- Replies: 294
- Views: 109430
Re: [GroundUpEngine] 3D Engine Progress
Not quite GroundUpEngine but a new project that I have been working on...
http://www.youtube.com/watch?v=VU0OecA-Sw8
p.s. Check out my new website WIP... http://husawyers.webs.com/
http://www.youtube.com/watch?v=VU0OecA-Sw8
p.s. Check out my new website WIP... http://husawyers.webs.com/
- Tue Jul 17, 2012 9:30 am
- Forum: Game Development
- Topic: 3D Graphics Engine Progress
- Replies: 294
- Views: 109430
Re: [GroundUpEngine] 3D Engine Progress
Update: Just showing my success on my recent problem "OpenGL alpha blending problem", I have pretty much completed the implementation of transparent objects (just need to make it relative to the camera position and not the origin). The steps I have taken out are as follows: Z-sort opaque o...
- Fri Jul 13, 2012 4:47 pm
- Forum: Programming Discussion
- Topic: [SOLVED] OpenGL alpha blending problem
- Replies: 11
- Views: 4582
Re: OpenGL alpha blending problem
You need to draw solid objects before blended objects. Think of rendering as real painting. You draw something solid, then draw a "thin" object on top of it. This, pretty much. In fact there's something call the Painter's Algorithm that solves this exact problem. The API's own depth sort ...
- Wed Jul 11, 2012 5:30 am
- Forum: Programming Discussion
- Topic: [SOLVED] OpenGL alpha blending problem
- Replies: 11
- Views: 4582
Re: OpenGL alpha blending problem
I can't help, but I have a little question: What are you using to load in the models? No prob, I used my own simple OBJ mesh parser. I can give you a rough idea of the code being used but there's a few things you need to know first though: C/C++ basics e.g. loops, STL strings, STL vectors, file IO,...
- Tue Jul 10, 2012 4:24 pm
- Forum: Programming Discussion
- Topic: [SOLVED] OpenGL alpha blending problem
- Replies: 11
- Views: 4582
Re: OpenGL alpha blending problem
I'm so rusty with OpenGL it's terrible, thanks for the advice I understand the depth buffer a bit better now. A better output was produced by these changes but the tree trunk is still sticking out through the leaves, I have two separate OBJ meshes rendered in this order: tree trunk -> leaves. code, ...
- Mon Jul 09, 2012 1:31 pm
- Forum: Programming Discussion
- Topic: [SOLVED] OpenGL alpha blending problem
- Replies: 11
- Views: 4582
Re: OpenGL alpha blending problem
The tree branch and leafs are now separate models, and the leafs are drawn in front of the tree branch.. depth testing disabled: http://img545.imageshack.us/img545/9186/35565880.jpg depth testing enabled, hmm I thought disabling depth testing helped alpha blending... it seems the branch vertices are...
- Mon Jul 09, 2012 1:03 pm
- Forum: Programming Discussion
- Topic: [SOLVED] OpenGL alpha blending problem
- Replies: 11
- Views: 4582
Re: OpenGL alpha blending problem
setup:TheBuzzSaw wrote:Sanity checks!
Are you rendering back to front?
Did you glEnable(GL_BLEND) and glBlendFunc?
Code: Select all
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
Code: Select all
glDisable(GL_DEPTH_TEST);
...
glEnable(GL_DEPTH_TEST);
- Mon Jul 09, 2012 12:59 pm
- Forum: Programming Discussion
- Topic: Tale of a Newby.
- Replies: 10
- Views: 3445
Re: Tale of a Newby.
You and I have a lot in common... You should change your name to Inspirer. Well said. Agreed, very good advice! Just remember there are people who have been homeless that have went to Harvard. That is actually true, I remember a video about this and its so strange to see... you would think wow some...
- Mon Jul 09, 2012 12:24 pm
- Forum: Programming Discussion
- Topic: [SOLVED] OpenGL alpha blending problem
- Replies: 11
- Views: 4582
[SOLVED] OpenGL alpha blending problem
Hey guys, first of all awesome new look for the website... very trendy! ;) My projects been dead for a while yet again lol... But I've restarted it for the last time in the form of a graphics engine instead of a game engine that I'll work on bit by bit through the holidays and through uni while tryi...