I need to draw lots of cubes and so I'm using VBOs.
I need them to have vertexes(obviously), normals and textures, so I've defined all the data like this:
GLfloat cubeVertexData[] =
{
...
Type: Posts; User: Fezziwig
I need to draw lots of cubes and so I'm using VBOs.
I need them to have vertexes(obviously), normals and textures, so I've defined all the data like this:
GLfloat cubeVertexData[] =
{
...
Ok, in the GiGi documentation they use boost 1.34. I downloaded this and tried to compile my program with it. I got the error
Also, in the output window, for each file compiled it says
Is...
Thanks, GiGi looks like the sort of library I was after. Only problem is, It needs the file boost/serialization/is_abstract.hpp. I'm using boost 1.52.0 and I can't see the file. Do I need an older...
In most games there are input boxes; for example, username and password details at the start of an MMO, or entering a characters name at the start of an RPG. In previous projects I've created pop-up...
Why shouldn't a transparent object write to depth buffer? How else am I meant to change the drawing order without major changes to my code?
When I enable depth testing in my program I get this weird overlap effect. I gather it's something to do with blending but I don't know much about texture blending.
http://i.imgur.com/vBAtP.png
In...
~~~bump~~~
Although you seem fairly anti-hardware occlusion queries I'm just curious on how you would do it and see whether it has any effect on my programs fps.
I can't seem to find any easy to follow tutorials on how to implament occlusion culling
Any help is much appreciated!
Thanks,
Rowan.
Is there a name for culling objects that are hidden by other objects? And how is it done?
Thanks, that's solved it! For future reference this is the new quads list. I worked it out by making one face at a time have red, yellow, green and blue in each corner (in that order), and then...
I'm new to culling and I've followed a tutorial but in my program it doesn't seem to be culling correctly.
What's happening;
http://i.imgur.com/bIz8F.png
http://i.imgur.com/Tqlu1.png
Some...
I'm making a voxel engine which requires a lot of cube to be drawn, thus I need a better way to draw a cube than GL_QUADS for all the sides. Which way of drawing a cube uses the least vertexes?
During a class construction no matter what I put as the file name SOIL_load_OGL_texture always returns "Unable to open file". This is a very annoying problem that I haven't been able to figure out...
I'm having a problem with loading textures in soil at the moment. It only seems to work when I give to whole directory of the file as opposed to the directory relative to the executable file.
tex...
Don't worry figured it out myself :)
How do I do that?
In a simple top-down shooter shooter I'm making to make the camera follow the character i put
glTranslatef(Player_1.x - Player_1.next_x, Player_1.y - Player_1.next_y, 0); at the beginning of the...
It was an initialised variable in the cuboid class. I didn't realise that you needed to put in all variables in the setter
I have a program which, simply put, is just a large collection of cuboid however, despite not being in the code, in release mode a random line comes out of every cuboid stretching on for infinity...
Works a treat, thanks
Is it possible to get the 3D coordinates of the point the mouse is pointing to.
This example might help.
http://i.imgur.com/e9v5v.jpg
Thanks,
Rowan
Thanks, that solved the problem. :)
How is it possible to stop or highly reduce clipping because in a simple 3D world I created objects seem to 'fall behind the screen' a long time before they should when you moving around?
This...
Ah, Solved :).
Rather than using a for loop to draw lots of squares I should have been drawing a large square with these parameters.
glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);...