Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 44 results for
vbo
- Page 1
Creating a cube with OpenGL VBO
Programming
Software Development
14 Years Ago
by ticktock
… all, I am trying desperately to create a cube using
VBO
. I have the correct vertices that must be used yet… some arguments and the vertices array itself to comply for
VBO
usage. Thank you to those who'll be helping.
create cube using vbo
Programming
Software Development
11 Years Ago
by Artyom_1
I'm trying to create a simple colored cube using
vbo
(well it actually a rectangle with z = 0).…argv); glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA); glutInitWindowSize(g_width, g_height); glutCreateWindow("
VBO
ASSIMP STARTER"); glewExperimental = true; if (glewInit() != GLEW_OK) { …
Re: Creating a cube with OpenGL VBO
Programming
Software Development
14 Years Ago
by mike_2000_17
Your problem is that you declare the array of vertices as having 9 coordinates in total, which would only include the first 3 points, i.e. the first triangle. [CODE]//This is where that is set: glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 9, &vertex[0], GL_STATIC_DRAW); //This is what it should be: glBufferData(GL_ARRAY_BUFFER, sizeof(…
Re: Creating a cube with OpenGL VBO
Programming
Software Development
14 Years Ago
by ticktock
I see, how stupid of me. I thought that was where the problem existed, I just did not know what to replace the data argument for that function. Thank you very much! I know that this seems out of context for my thread but, how do I change the perspective of the camera in such a way I can see the figure in its 3d goodness? Sorry for this noob …
Re: Creating a cube with OpenGL VBO
Programming
Software Development
14 Years Ago
by mike_2000_17
If you are just starting out, it is a bit of a jump to be writing vertex buffers. Don't you think? Try going through the [URL="http://nehe.gamedev.net"]NEHE[/URL] tutorials in order (they are quick and easy to follow, and before you know it you'll be rendering flags flopping in the wind on top of a hill with a bunch of trees around and a …
Re: Creating a cube with OpenGL VBO
Programming
Software Development
14 Years Ago
by ticktock
Thank you for the tip! I am indeed studying with no direction whatsoever. Haha. Oh, and will play around with the glRotatef() function to get to what I want. I'll just mark this as solved! :D
Re: create cube using vbo
Programming
Software Development
11 Years Ago
by mike_2000_17
You made a typo on line 61: glBindBuffer(GL_ARRAY_BUFFER, vertexId); It should be: glBindBuffer(GL_ARRAY_BUFFER, colorId); Also, I think you should be using `GL_TRIANGLE_STRIP` instead of `GL_TRIANGLES`. See [explanation](http://en.wikipedia.org/wiki/Triangle_strip) or [this page](http://www.lighthouse3d.com/tutorials/glsl-core-tutorial…
Re: create cube using vbo
Programming
Software Development
11 Years Ago
by Artyom_1
Oh! I see. Thanks!
Issue when passing normals to shaders
Programming
Software Development
12 Years Ago
by jackshannon4
…lt;< " "; } glGenBuffers(3,
vbo
); glBindBuffer(GL_ARRAY_BUFFER,
vbo
[0]); // vertices glBufferData(GL_ARRAY_BUFFER, sizeof(float) *…*)& tmp_normals[0], GL_STATIC_DRAW); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER,
vbo
[2]); // indices glBufferData(GL_ELEMENT_ARRAY_BUFFER, indexList.size() *…
Re: Issue when passing normals to shaders
Programming
Software Development
12 Years Ago
by venomxxl
… checked the compilation log? Also take a look at how
VBO
drawing is done in my engine, maybe it'll help…
JOGL How to texture glDrawElements
Programming
Game Development
14 Years Ago
by hallinan
…yLineIndexBuffer = BufferUtil.newIntBuffer(21 * 201); /*
VBO
ID numbers for holding the data when OpenGL version… */ private int vertexVBO, normalVBO; //
VBO
IDs for surface data. private int xLineVBO, …yLineVBO, surfaceVBO; //
VBO
IDs for index data. public DrawWater() { …
Cannot see quad drawn to screen
Programming
Game Development
12 Years Ago
by Johnathon332
…, 6 * m_ui32VertexStride, sqVert, GL_STATIC_DRAW); // Unbind the
VBO
glBindBuffer(GL_ARRAY_BUFFER, 0); return true; //set projection matrix,…eVMatrix], 1, GL_FALSE, v_Matrix.ptr()); // Bind the
VBO
glBindBuffer(GL_ARRAY_BUFFER, m_ui32Vbo); glUniformMatrix4fv(m_ShaderProgram.auiLoc[eMMatrix], 1,…
Keys not responding
Programming
Software Development
12 Years Ago
by Viped
… play = new JButton("Play vBreakOut"); public Menu(VBreakOut
vbo
) { try { menubg = ImageIO.read(new File("res/menubg.png…
voxel engine help
Programming
Software Development
10 Years Ago
by Danieldorn1797
….h, GLU.h, glew.h, and glm.hpp) - uses a
vbo
to make blocks and chunks - implements face culling on blocks…
More VBO issues
Programming
Software Development
13 Years Ago
by Labdabeta
I have reinstalled my compiler successfully (finally) and got right back to work. I have created a glModel class as follows: [CODE]class glModel { private: int numv; int numn; unsigned int model; unsigned int textu; unsigned int norma; float *vars; float *norm; public: glModel():numv(0),numn(0){…
Re: More VBO issues
Programming
Software Development
13 Years Ago
by mike_2000_17
There are several things wrong with your code. First, you have completely redundant pieces of code that clearly abuse dynamic memory allocation. As in this snippet: [CODE] float *temp=new float[numv*5]; for (int i=0; i<numv*5; i++) temp[i]=vars[i]; delete[]vars;vars=NULL; vars=new float[numv*5+5]; for (int i=0; i<…
Re: More VBO issues
Programming
Software Development
13 Years Ago
by Labdabeta
Thank you, still working on the extra implementation so haven't tested yet, but I am hopeful. P.S.: IMO line 19 is useless but as a quote from my model makers "Model.Draw().Move().Draw().Move().Draw() will make drawing recurring shapes easier and faster!"
Re: More VBO issues
Programming
Software Development
13 Years Ago
by Labdabeta
I got a problem, it seems we are using different headers as my headers define glTexCoord as: [CODE]GLAPI void APIENTRY glTexCoordPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *ptr );[/CODE] This means that your code uses invalid arguments. How do I modify your code to fix this?
Re: More VBO issues
Programming
Software Development
13 Years Ago
by mike_2000_17
I was just illustrating the idea. When I throw together a piece of code in 5 min. to illustrate "how to" fix it, don't expect the code to compile directly, you have to use your own wits too. I guess you would have to define the last parameters to the gl**Pointer() functions as so for example: [CODE] glTexCoordPointer(2, GL_FLOAT, …
Re: More VBO issues
Programming
Software Development
13 Years Ago
by Labdabeta
I understand that, the issue is that my glTexCoordPointer does not seem to take info from the GL_ARRAY_BUFFER as it requires I specify an array. Also it does not allow me to give it an offset. I cannot think of how to do this without using multiple temporary arrays.
Re: More VBO issues
Programming
Software Development
13 Years Ago
by mike_2000_17
Read the documentation carefully. For instance, under [URL="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoordPointer.xml"]glTexCoordPointer[/URL], you will find: [QUOTE]If a non-zero named buffer object is bound to the GL_ARRAY_BUFFER target (see glBindBuffer) while a texture coordinate array is specified, pointer is treated as a byte …
Re: More VBO issues
Programming
Software Development
13 Years Ago
by Labdabeta
Ok, I understand (I think and hope) I got rid of all compiling errors, but I am still plagued by the error report. What is wrong now? [CODE]class glModel { private: int numv; unsigned int model; struct glVertexStructure { float vert[3]; float text[2]; float norm[3]; }; …
Re: where am i going wrong..pls help
Programming
Web Development
14 Years Ago
by puvi
…['esales']; $vsales=$_POST['vsales']; $ebo = $_POST['ebo']; $
vbo
=$_POST['
vbo
']; $eadmin=$_POST['eadmin']; $vadmin=$_POST['vadmin']; //$subject = &…sql); $sql = "INSERT INTO business_overview values('','$userid','$ebo','$
vbo
')"; $sqlres = mysql_query($sql); $sql = "INSERT…
Re: I might have a memory leak, OpenGL SDL
Programming
Software Development
14 Years Ago
by DaSpirit
… and SDL helping me. I'll most likely try the
VBO
method. Isn't glBegin depracted? I mean, if it is…
Re: I might have a memory leak, OpenGL SDL
Programming
Software Development
14 Years Ago
by mike_2000_17
… been "ugly" and slow, and rarely useful because
VBO
(or just "vertex buffers" as they used to…
Re: I might have a memory leak, OpenGL SDL
Programming
Software Development
14 Years Ago
by DaSpirit
… read that I need it in order to have the
VBO
functions. Right now, I get an error using the first…
Re: GL list logic?
Programming
Software Development
13 Years Ago
by Labdabeta
I tried using the non-arb versions, it said that they were all not declared in the scope. Are VBOs really worth the trouble? and if so could you give me some simple sample code to make a short
VBO
display, say, a triangle?
Re: GL list logic?
Programming
Software Development
13 Years Ago
by Labdabeta
That is a problem though since it wont link and my libopengl32.a file is working fine. I guess my headers are out of date with my libraries? How do I fix this? P.S.: This
VBO
stuff had better be worth all this effort :P
Re: Still Having Library Issues
Programming
Software Development
13 Years Ago
by Ancient Dragon
what compiler are you using? what operating system? what is
VBO
?
Re: Maya Modeling Software
Programming
Game Development
13 Years Ago
by Labdabeta
… all triangles, or if it would be a mix (making
VBO
's harder to use) basically if somebody could help me…
1
2
Next
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC