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 4071024
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:42:14+00:00 2026-05-20T16:42:14+00:00

I have downloaded the GLGravity project from apple site. I tried loading a new

  • 0

I have downloaded the GLGravity project from apple site. I tried loading a new model to display instead of teapot. the model is loading but without using the defined textures.

I am trying to display the model using the following code but unable to display the texture.

// in setupView method

glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_NORMAL_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);

glVertexPointer(3, GL_FLOAT, 0, camaro_objVerts);
glNormalPointer(GL_FLOAT, 0, camaro_objNormals);
glTexCoordPointer(2, GL_FLOAT, 0, camaro_objTexCoords);

in drawView method

// draw data
glDrawArrays(GL_TRIANGLES, 0, camaro_objNumVerts);

I have also tried disabling lightning, but the model loads with white color and without texture.

  • 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-05-20T16:42:14+00:00Added an answer on May 20, 2026 at 4:42 pm

    Have you enabled GL_TEXTURE_2D? It should look like this (+ texture binding):

    glBindTexture(GL_TEXTURE_2D, textureHandle);
    glEnable(GL_TEXTURE_2D); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded a project from a website. But I don‘t want to import
I have Downloaded demo project from here I tried to run Silverlight project SkiResult.ThinClient
I have downloaded a web project from CodePlex and am getting the following error
I have downloaded CorePlot_0.9 from google and imported in my iPhone project. I want
I have downloaded CVtypes and tried the example scripts with it but cannot get
I have downloaded a provisioning profile from my id, but when I drag into
I have downloaded the silver light from this http://www.microsoft.com/silverlight// I need to use this
I have downloaded Skype4COM from Skype so my question is, can i integrate it
I have downloaded cscope 15.6 on MacOSX. But when i try launching it in
I have downloaded some Office files(doc, xls, pdf etc) on SDcard from FTP server

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.