Search found 835 matches

by GroundUpEngine
Thu Aug 30, 2012 5:05 pm
Forum: Programming Discussion
Topic: Problem with OpenGL accumulation buffer
Replies: 3
Views: 3915

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...
by GroundUpEngine
Sun Aug 26, 2012 8:46 am
Forum: Programming Discussion
Topic: [ SOLVED ]Player wont Move C++/SDL
Replies: 8
Views: 3997

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;
   }
}
by GroundUpEngine
Sat Aug 25, 2012 12:12 pm
Forum: Programming Discussion
Topic: OpenGL Failure
Replies: 11
Views: 4055

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 );
by GroundUpEngine
Thu Aug 16, 2012 3:03 pm
Forum: Current Events and Science/Technology
Topic: Cardboard Bicycle
Replies: 2
Views: 6953

Re: Cardboard Bicycle

Full of win!
by GroundUpEngine
Thu Aug 16, 2012 2:49 pm
Forum: Programming Discussion
Topic: C++0x
Replies: 2
Views: 1663

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...
by GroundUpEngine
Sun Jul 29, 2012 4:14 pm
Forum: Game Development
Topic: 3D Graphics Engine Progress
Replies: 294
Views: 108249

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/
by GroundUpEngine
Tue Jul 17, 2012 9:30 am
Forum: Game Development
Topic: 3D Graphics Engine Progress
Replies: 294
Views: 108249

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...
by GroundUpEngine
Fri Jul 13, 2012 4:47 pm
Forum: Programming Discussion
Topic: [SOLVED] OpenGL alpha blending problem
Replies: 11
Views: 4564

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 ...
by GroundUpEngine
Wed Jul 11, 2012 5:30 am
Forum: Programming Discussion
Topic: [SOLVED] OpenGL alpha blending problem
Replies: 11
Views: 4564

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,...
by GroundUpEngine
Tue Jul 10, 2012 4:24 pm
Forum: Programming Discussion
Topic: [SOLVED] OpenGL alpha blending problem
Replies: 11
Views: 4564

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, ...
by GroundUpEngine
Mon Jul 09, 2012 1:31 pm
Forum: Programming Discussion
Topic: [SOLVED] OpenGL alpha blending problem
Replies: 11
Views: 4564

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...
by GroundUpEngine
Mon Jul 09, 2012 1:03 pm
Forum: Programming Discussion
Topic: [SOLVED] OpenGL alpha blending problem
Replies: 11
Views: 4564

Re: OpenGL alpha blending problem

TheBuzzSaw wrote:Sanity checks!

Are you rendering back to front?

Did you glEnable(GL_BLEND) and glBlendFunc?
setup:

Code: Select all

glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
render:

Code: Select all

glDisable(GL_DEPTH_TEST);

    ...

glEnable(GL_DEPTH_TEST);
Back to front? :P
by GroundUpEngine
Mon Jul 09, 2012 12:59 pm
Forum: Programming Discussion
Topic: Tale of a Newby.
Replies: 10
Views: 3429

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...
by GroundUpEngine
Mon Jul 09, 2012 12:24 pm
Forum: Programming Discussion
Topic: [SOLVED] OpenGL alpha blending problem
Replies: 11
Views: 4564

[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...