• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Blue*Omega

EXT_framebuffer_object usable yet?

13 posts in this topic

Just curious if anybody has gotten the new EXT_framebuffer_object to work yet? nVidia has said that the drivers for the extension are avalible now in beta form, but I've yet to get my programs to recognize the extension. I'm developing on a geForceFX 5500, and have the lateset beta drivers (71-1.8 or somthing like that...), which I would assume should be more than enough to support the feature. I realize that it's not practical to use it an anything you're planning on distributing (yet), but I simply wanted to toy around with their functionality and compare it with my current pBuffer setup (shudder!) Thanks for any help! [Edited by - Blue*Omega on April 15, 2005 12:58:25 PM]
0

Share this post


Link to post
Share on other sites
people have over on OpenGL.org, check the 'advanced' forum for a couple of threads on it.

ATI's support will apprently appear 'in a couple of months', I'm hoping for June so its in time for my b'day [grin]
0

Share this post


Link to post
Share on other sites
Thanks for the advice.

Just FYI, the best thread on the subject I found was

Here

In that thread, they also link to some of the newest beta drivers that expose FBO functionality. Sounds like it's still a bit buggy, but the overall reaction seems good. (And hey, why wouldn't it be? Anything that avoids the hell of pBuffers is reason to get excited!)
0

Share this post


Link to post
Share on other sites
yeah, p-buffers are a pain, i was doing some work on a screen bluring effect with GLSL the other day and reaslised I'd need two pbuffers, so I cried and put away the code to wait until ATI deliver the extension..
0

Share this post


Link to post
Share on other sites
One thing I'm wondering about (wish I had a chance to test it myself) is how far back the FBO's will be compatible. I would imagine that they would work on any card that already supports the ARB_render_texture extensions, which would give pretty good backwards compatibility once the "real" drivers are released.

I'm just hoping that a year or so down the line the drivers will be to the point where there's no need to write fallback support to ARB_render_texture. That would be very nice indeed!
0

Share this post


Link to post
Share on other sites
Too bad more people don't take that approach. Games would move forward a whole lot faster if we didn't bother writing fallbacks for everything under the sun.

Personally, I'll go out of my way to support NV25 class stuff (don't remeber the ATI equivalent) but I'm not gonna spend a lot of my time there. I'm focusing my current development on NV30+ stuff, so these Framebuffers are sliding nicely into my little niche.
0

Share this post


Link to post
Share on other sites
EXT_Framebuffer_Object is available in the 75.90 and 76.10 Beta forceware drivers, which you can get at guru3d.org. I believe Nvidia will support it all the way back to Geforce 256 cards. I was unable to get FBO funtionality working properly in 75.90, and I have not yet tried it with 76.10, however, this is probably because I am not an expert ogl coder. Anyone else get a working demo yet?
0

Share this post


Link to post
Share on other sites
Quote:
Original post by Blue*Omega
Too bad more people don't take that approach. Games would move forward a whole lot faster if we didn't bother writing fallbacks for everything under the sun.


Well, I can do it coz (a) I havent got owt produced yet so by the time I do my target hardware will be pretty common and (b) I dont have to sell games [wink]

There is alot of legacy hardware out there and most games dont have the pull to get people to upgrade. Infact, only really 3 companies do atm; iD, Valve and Epic as they are the ones pushing things forward.
0

Share this post


Link to post
Share on other sites
I have about three demos coming using FBO one way or another, stay tuned ;)


#include "FrameBufferObject.h"

FrameBufferObject::FrameBufferObject()
{
stencilBufferIndex = 0;
frameBufferIndex = 0;
depthBufferIndex = 0;
height = 0;
width = 0;
}

bool FrameBufferObject::initialize(int width_, int height_, int format)
{
if(!GLEE_EXT_framebuffer_object)
return Logger::writeErrorLog("GL_EXT_framebuffer_object not supported");

if(width_ <= 0 || height_ <= 0)
return Logger::writeErrorLog("Width and height of FBO must be positive");

height = height_;
width = width_;

glGenFramebuffersEXT(1, &frameBufferIndex);
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, frameBufferIndex);

GLuint depth = (format & FBO_DEPTH_16) ? GL_DEPTH_COMPONENT16 :
(format & FBO_DEPTH_24) ? GL_DEPTH_COMPONENT24 :
(format & FBO_DEPTH_32) ? GL_DEPTH_COMPONENT32 : 0;
if(depth)
{
glGenRenderbuffersEXT(1, &depthBufferIndex);
glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, depthBufferIndex);
glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, depth, width, height);
glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT,
GL_RENDERBUFFER_EXT, depthBufferIndex);
}

if(format & FBO_STENCIL)
{
glGenRenderbuffersEXT(1, &stencilBufferIndex);
glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, stencilBufferIndex);
glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_STENCIL_INDEX, width, height);
glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT, GL_STENCIL_ATTACHMENT_EXT,
GL_RENDERBUFFER_EXT, stencilBufferIndex);
}
bool result = checkFrameBufferStatus();
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
return result;
}

bool FrameBufferObject::checkFrameBufferStatus()
{
GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT);

switch(status)
{
case GL_FRAMEBUFFER_COMPLETE_EXT:
Logger::writeInfoLog(String("Successfully created the frame buffer object < ") +
int(width) + ", " + int(height) + ">");
break;
case GL_FRAMEBUFFER_UNSUPPORTED_EXT:
return Logger::writeErrorLog("Failed to create the frame buffer object, please verify your format");
break;
}
return true;
}

void FrameBufferObject::switchTarget(GLint target, GLint textureID)
{
if(frameBufferIndex)
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT,
target, textureID, 0);
else
Logger::writeErrorLog("Invalid FrameBufferObject index");
}

void FrameBufferObject::bind()
{
if(frameBufferIndex)
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, frameBufferIndex);

else
Logger::writeErrorLog("Invalid FrameBufferObject index");
}

void FrameBufferObject::stop()
{
if(frameBufferIndex)
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
}

GLuint FrameBufferObject::getHeight(){ return height; }
GLuint FrameBufferObject::getWidth() { return width; }

FrameBufferObject::~FrameBufferObject()
{
if(stencilBufferIndex)
glDeleteRenderbuffersEXT(1, &stencilBufferIndex);

if(depthBufferIndex)
glDeleteRenderbuffersEXT(1, &depthBufferIndex);

if(frameBufferIndex)
glDeleteFramebuffersEXT(1, &frameBufferIndex);
}

#ifndef FRAME_BUFFER_OBJECT_H
#define FRAME_BUFFER_OBJECT_H
#include "../GenUtils/Logger.h"

#define FBO_DEPTH_16 0x00000001
#define FBO_DEPTH_24 0x00000002
#define FBO_DEPTH_32 0x00000004
#define FBO_STENCIL 0x00000010


class FrameBufferObject
{
GLuint width,
height,
frameBufferIndex,
depthBufferIndex,
stencilBufferIndex;
bool checkFrameBufferStatus();

public:
FrameBufferObject();
~FrameBufferObject();

bool initialize(int width, int height, int format = 0);

void switchTarget(GLint target, GLint textureID);
void bind();
void stop();

GLuint getHeight();
GLuint getWidth();
};
#endif


0

Share this post


Link to post
Share on other sites
Quote:
Original post by _the_phantom_
ATI's support will apprently appear 'in a couple of months', I'm hoping for June so its in time for my b'day [grin]


A friend of mine just checked last night and current stable ATI drivers do have the EXT_fb_o entrypoints, but does not expose the extension in the extension string, so I think it will be officially there in not so long time.

-M
0

Share this post


Link to post
Share on other sites
yeah, i tested the entry points myself yesterday and while they dont crash they dont work, heh

I got my infomation from someone who works at ATI, so it will be longer than a month, a 'couple' implies two months but it could be more (driver pipeline depth and the state of the code base play a huge role in it)... simply adding entry points isnt that hard tbh, all they would need todo is define a couple of functions and put them in the export table of the dll, they dont have todo anything [smile]
0

Share this post


Link to post
Share on other sites
Quote:
Original post by _the_phantom_
simply adding entry points isnt that hard tbh, all they would need todo is define a couple of functions and put them in the export table of the dll, they dont have todo anything [smile]

True, but that at least means they've started to think about it :P

-M
0

Share this post


Link to post
Share on other sites
Most of the 2D functionalities are implemented now in the NV beta drivers 76.44, so rendering to multiple buffers, multiple textures, that works pretty well. No ATI equivalent right now (which sux b/c thats what i have and need it for) and unfortunately there is no 3D render to texture support yet.

Here is a demo in this thread by Java Cool Dude, there is 1 or 2 more somewhere earlier in that thread if you want to take a look.

If anyone gets 3D to work on some new drivers, tell me, i'm kind off stuck without it :)

Edit: Java Cool Dude posted the same demo on these forums as well :), just noticed it.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0