Clancy

Member
  • Content count

    69
  • Joined

  • Last visited

Community Reputation

124 Neutral

About Clancy

  • Rank
    Member
  1. glGenBuffers I use is correct, not really sure how anyone can screw that up. ;)   However, using your little example with glArrayElement  *does* work.   So, I guess I am chasing a driver issue of some kind... though, I need to get back to my main machine to test, instead of this crappy laptop that has intel HD3000 in it.
  2. This draws a box.        glBegin ( GL_LINE_STRIP );         glVertex2i ( x0, y0 );         glVertex2i ( x1, y0 );         glVertex2i ( x1, y1 );         glVertex2i ( x0, y1 );         glVertex2i ( x0, y0 );     glEnd ();   Now, to convert it to use VBO I have done         GLint vertices[] = {x0,y0,x1,y0,x1,y1,x0,y1,x0,y0 };     unsigned int indices[] = {0, 1, 2, 3,0};     glBindBuffer(GL_ARRAY_BUFFER, buffers[0]);     glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_DYNAMIC_DRAW);     glEnableClientState(GL_VERTEX_ARRAY);     glVertexPointer(2, GL_INT, 0, NULL);     glDrawElements(GL_LINE_STRIP, 5, GL_UNSIGNED_INT, indices);     glDisableClientState(GL_VERTEX_ARRAY);     I must be doing something stupid, since it isn't working.  Instead of a box, it isn't drawing anything visable. Not getting any GL errors either. I can toggle the code above to go back to old code, and it works as it should.       Where did I mess up ?
  3. calculating the "up" vector...

    Quote:Original post by smitty1276 I haven't really examined the details of your formulation, but I wanted to note that you may not actually need the precise up vector. If you are just passing to a lookat type function, it most likely only has to be "up" to the extent that UP dot TRUE_UP is positive (those lookat funcs will compute the true up vector for you based on what you pass in). In otherwords, <0,1,0> is fine for any orientation that isn't "upside down" and <0,-1,0> is fine for anything that IS "upside down". Of course, that may not be why you need it, in which case you can ignore me. :-) (fixed the UP dot TRUE_UP bit) Come to think of it, your correct. That will show me to not overthink the issue at hand.[embarrass] Thanks guys! [smile] Nanoha, yeah, for me, up is 0,0,1
  4. Greetings all, I am having some mental block, and I can't see what I am doing wrong with the way I am calculating the up vector. I calculate my up vector like so up.x = cos(roll) * sin(yaw) * sin(pitch) - sin(roll) * cos(roll); up.y = cos(roll) * cos(pitch) ; up.z = sin(roll) * sin(yaw) + cos(roll) * cos(yaw) * sin(pitch) ; I know I am doing something stupid, so if someone can shed some light on this, it will be most appreciated! TIA!
  5. More lesson 6 woes!

    You need to link with GLUT.
  6. New NeheSDK taster

    Quote:Original post by Anonymous Poster Really hope you keep the old lessons archived. The Windows startup code was a good way show newbies how to get started on Windows + OpenGL who refuse to use other peoples library. Sure you can talk until you're blue in the face that SDL is good (I've never used it nor ever will mind you) place to get started. Besides what Kazade said, tutorials should deal with the main subject at hand, and in this case it is openGL. It doesn't really make sense to do something in pure win32 code when only win32 people can use that code as is. Then someone must port it to their system for them to use it. SDL isn't evil, yeah, it will require a one time download of headers/libs, but other than that, it is the best solution to get the openGL code work on all platforms without the need of someone needing to port it.
  7. Announcement: Site Status

    Quote:Original post by lc_overlord um... hang in there. But at the mean time i like to hear your ideas and suggestions for new lessons. And please note that we have close to 80 different lessons in the planning stage ranging from super easy to ZOMGWTFPONIES hard (far from all definitely decided on), so don't expect your ideas to become a lesson, because they might all ready be (not that i will tell you right now). New lessons? A Rag Dolls tutorial would be nice. A tutorial dealing with multi-cores programming with openGL would be interesting.
  8. Announcement: Site Status

    I don't understand why nobody will just throw up a simple 'hang in there, we are doing some major work' type of statement on the front page? Last 'update' was from july!
  9. What's happening with the site?

    Is the issue a lack of man power? Or is it a issue of $$$? I am sure some regulars could take on the task of updating the page more frequently, and for free.
  10. Interested in an OGL menu tutorial?

    Menu code is always nice to look at... and maybe when Gamedev guys get some help(which is why I think it is taking them so long ) we will see your other tutorial.
  11. It also depends on what you want to do with the model, and how complex is it, and if it has animation or whatever. Most people just write a plugin to dump the data they need, and have your program use that.
  12. MFC-NeHe-Example

    I know this don't help much, and sorry for that, but MFC is dead. You shouldn't even bother with that example anymore. If you insist, then do a /verbose:lib since it should tell you more.
  13. Another forum contest?

    If you ask me, it is the wrong time for a contest. Holidays are approaching fast, and lots of people are just too busy. Best time is around Spring/summer for a contest IMO. Then again, you can announce it now, and have deadline @ spring/summer. :D I also think that people see the main page, and think the site has died, and most don't bother to check forums if there is a contest, most wouldn't know. The main page should be updated at least once a week. I don't have a clue why the new content is not being posted. Maybe someone can fill us all in?
  14. Final Dream - Source Released

    Great job!
  15. cant use oop basecode

    Why are you using OO base code if your not coding in a OO way? There are many ways to do this, I suggest you use google for a beginers tutorial on OO.