Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8444835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:29:58+00:00 2026-06-10T09:29:58+00:00

Im having a strange problem where all my models but one are rendering properly.

  • 0

Im having a strange problem where all my models but one are rendering properly. When i changed my models from using shared vertices (set of vertices + indexing array) to using duplicated vertices (needed to do this to be able to texture my models), all my models worked fine when using shared vertices. When i made the swap to duplicated vertices, all of them work except one of my models and i cant figure out why. coincidently it is the model with the highest number of vertices (20 when shared, 108 when duplicated) so maybe it has something to do with that.

what i have done so far to try rectify this issue:

  • recreated the model from scratch (which is an easy task since its a very simple model)
  • new model doesnt render properly, changed the model back to shared vertices, works again (cant texture it like this though so doesnt help)
  • changed my indexing array from GLubyte to GLushort incase there was some datatype issue
  • played around with the draw order of the indexing array to see if it was some kind of triangle winding issue, which doesnt seem to be the case (took off back face culling to check as well)

All my models are basic shapes, pyramid, cube… up to an icosahedron. The dodecahedron is the shape that is giving the problems (looks like a 12 sided dice). When it is rendered only about 8 of the 36 triangles that are needed to draw the shape show up, the rest are transparent or not there at all. I’ve made all my models the same way using SoftImage, so i dont really think its something to do with the model itself. On the triangles that are visible the texture shows up correct. All the models are present on the screen at the same time, so that can rule out anything that could be not specific to rendering the models. They also use the same functions to render, just have different arrays.

any suggestions for what steps i can take to find out what could be causing this?

here is what the model looks like using duplicated vertices http://pastebin.com/2hg7D0Ga
here is with shared http://pastebin.com/tUqTUM91

maybe if you have something that can render models like these you can test them quickly in your application and see if it works for you

here is my relevant rendering code http://pastebin.com/fRiKM89M

this is what the model looks like when its not rendering properly https://i.stack.imgur.com/grbw6.jpg

I hope someone can spot something that i have overlooked. Thanks for taking the time to read through all this if you have made it this far

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:29:59+00:00Added an answer on June 10, 2026 at 9:29 am

    Ok I feel kind of stupid now, but it was an honest mistake. If you look in my code, where I have NumVertices etc, those are all GLubytes, which I completely forgot, I was assuming I had defined them as int’s. So on the one model which had the most vertices, the number was exceeding the GLubyte max of 255, but none of the other models were.

    Really simple fix for such a complicated error wow! When OpenGL breaks it always makes you think something really technical has gone wrong and you overlook the simple problems

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a strange problem with SSIS. I'm exporting some data from a database
I'm having a strange problem with the HTML5 manifest file under Chrome 5.0.375.99 but
iphone http://sharingdream.com/phone.jpg Dear all, I'm having a strange problem with an application I'm building
I am having strange problem after installing multi-site drupal environment on shared host. When
I seem to be having a strange problem with one of my database views
I'm having a strange problem with a linq query. I'm using LINQPad 4 to
I'm having a strange problem with the PDF I've generated using FOP v0.94. The
I'm having a strange problem while using @font-face on IE9. I converted a TTF
I am having a very strange problem with an ASP.Net project using an Entity
I'm having a very strange problem. I'm getting a collection of Rails ActiveRecord models

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.