Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualVincent_M

Posted 08 May 2012 - 10:49 PM

Attached below, you'll see screenshots of two scenes: one from a Mac game and one from an iOS game I'm working on.  I'm using the same code to load and render the same OBJ file in both programs, but for some odd reason, the indices seem to be VERY different on the Mac build of the app. Could it be my graphics card that could be processing the data differently?

I'm currently storing my indices as an array of unsigned long's. A VBO and IBO for both builds, but I'm getting the same results when I don't use the VBO/IBO.

I'm not sure where the problem lies, so I didn't post any code. If you need to look at something, I'll post it.

EDIT: I output the index list for both the Mac and iOS builds, and the data is loaded the same. I also use GL_UNSIGNED_INT for 'type' in glDrawElements(). Would that cause any issues? From some googling, it appears to be fine.

EDIT2: False alarm, I switch my indices back to unsigned short, and used GL_UNSIGNED_SHORT to as my type to pass index data into glDrawElements(), and this seems to work. It appears that my laptop's graphics card capabilities do not support GL_UNSIGNED_INT.

#4Vincent_M

Posted 08 May 2012 - 10:49 PM

Attached below, you'll see screenshots of two scenes: one from a Mac game and one from an iOS game I'm working on.  I'm using the same code to load and render the same OBJ file in both programs, but for some odd reason, the indices seem to be VERY different on the Mac build of the app. Could it be my graphics card that could be processing the data differently?

I'm currently storing my indices as an array of unsigned long's. A VBO and IBO for both builds, but I'm getting the same results when I don't use the VBO/IBO.

I'm not sure where the problem lies, so I didn't post any code. If you need to look at something, I'll post it.

EDIT: I output the index list for both the Mac and iOS builds, and the data is loaded the same. I also use GL_UNSIGNED_INT for 'type' in glDrawElements(). Would that cause any issues? From some googling, it appears to be fine.

EDIT2: False alarm, I switch my indices back to unsigned short, and used GL_UNSIGNED_SHORT to as my type to pass index data into glDrawElements(), and this seems to work. It appears that my laptop's graphics card capabilities do not support GL_UNSIGNED_INT.

#3Vincent_M

Posted 08 May 2012 - 10:41 PM

Attached below, you'll see screenshots of two scenes: one from a Mac game and one from an iOS game I'm working on.  I'm using the same code to load and render the same OBJ file in both programs, but for some odd reason, the indices seem to be VERY different on the Mac build of the app. Could it be my graphics card that could be processing the data differently?

I'm currently storing my indices as an array of unsigned long's. A VBO and IBO for both builds, but I'm getting the same results when I don't use the VBO/IBO.

I'm not sure where the problem lies, so I didn't post any code. If you need to look at something, I'll post it.

EDIT: I output the index list for both the Mac and iOS builds, and the data is loaded the same. I also use GL_UNSIGNED_INT for 'type' in glDrawElements(). Would that cause any issues? From some googling, it appears to be fine.

#2Vincent_M

Posted 08 May 2012 - 10:33 PM

Attached below, you'll see screenshots of two scenes: one from a Mac game and one from an iOS game I'm working on.  I'm using the same code to load and render the same OBJ file in both programs, but for some odd reason, the indices seem to be VERY different on the Mac build of the app. Could it be my graphics card that could be processing the data differently?

I'm currently storing my indices as an array of unsigned long's. A VBO and IBO for both builds, but I'm getting the same results when I don't use the VBO/IBO.

I'm not sure where the problem lies, so I didn't post any code. If you need to look at something, I'll post it.

#1Vincent_M

Posted 08 May 2012 - 10:30 PM

Attached below, you'll see screenshots of two scenes: one from a Mac game and one from an iOS game I'm working on.  I'm using the same code to load and render the same OBJ file in both programs, but for some odd reason, the indices seem to be VERY different on the Mac build of the app. Could it be my graphics card that could be processing the data differently?

I'm currently storing my indices as an array of unsigned long's. A VBO and IBO for both builds, but I'm getting the same results when I don't use the VBO/IBO.

I'm not sure where the problem lies, so I didn't post any code. If you need to look at something, I'll post it.

PARTNERS