Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 1 more developer from Canada and 12 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 25 May 2010
Offline Last Active Jul 12 2015 09:20 AM

Topics I've Started

Shared vertices or not for primitives

24 June 2014 - 08:56 AM



I was about to create a some classes to create primitives in order to help me with debugging. However, I don't know if each primitive should share its vertices. For example, a cube should not share its vertices because the normals would be inadequate for lighting and the uv coordinates wouldn't fit for a cubemap. However, for a sphere the normals would be better with shared vertices but what about the uv's? Would it work or should I not share the vertices for a sphere and instead calculate the normals as if they were shared?


Thank you! :)

Cannot allocate a decent amount of memory glBufferData()

03 February 2014 - 03:36 PM



I have an issue with glBufferData() and memory. I was testing how much memory I could allocate to a single vbo. I noticed it was smaller than 10 KB (10 000 bytes) and bigger than 1 KB (1000 bytes). The problem is that I have approximately 1700 MB of memory on my GPU and 8 GB of RAM on my computer which is way more than 10 KB...


Thank you,


How to: Culling

13 January 2014 - 06:27 PM



I don't understand how to apply culling in my opengl application. I understand what is the concept, but not the how to. First off, what is the difference betwenn GL_FRONT and GL_CW? To make culling properly, do I need to order my vertices' position clockwise or to order the indices? What is the reference of clockwise (i.e. is it when I face the -z axis or something else?


Thanks a lot,


[Answered] Real numbers (constants) in genetic programming

27 October 2013 - 10:22 AM



    I can't figure out how a genetically programmed A.I. can determine when there should be a constant in the final equation. If I take the formula F(m) = ma; F(m) = m9.8, how can the A.I. know what the real number 9.8 actually is? I understand that instead of putting the final number in the binary tree, you can actually put a symbol that describes a constant and then later calculate or guess what is its value in a certain way. How would you do it?

Thank you,

Header function not being recognized

15 May 2013 - 06:10 PM



I have a Matrix4x4 template class in a header file. I've read that templates need to be only in headers (source: http://stackoverflow.com/questions/495021/why-can-templates-only-be-implemented-in-the-header-file). Now, my problem is that when I change my header's code by adding a function and that I use this method somewhere (in main() in my case), then the compiler tells me my class Matrix4x4 doesn't contain the function. I thought that doing a rebuild would correct this error, but it doesn't work. Do you have any idea what I could do to fix this error?


Thank you,