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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:24:48+00:00 2026-05-13T16:24:48+00:00

I am using code from this site: http://www.spacesimulator.net/tut4_3dsloader.html It works in their example project

  • 0

I am using code from this site:
http://www.spacesimulator.net/tut4_3dsloader.html

It works in their example project but when I placed the code into a class for easier and more modular use, the texture fails to appear on the object.

I’ve double checked to make sure the texture ID is correct by debugging them side by side.
On my project I get a blank white object while the example works fine.

Are there ANY ways to tell what is going on under the hood? Any error functions I can call that can give me some hint to what’s going on? Right now I am just guessing. (Yes I have enabled 2D textures.

Thanks SO!

  • 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-13T16:24:49+00:00Added an answer on May 13, 2026 at 4:24 pm

    glGetLastError()

    or glGetError()

    what ever it is…

    make sure glEnable(GL_TEXTURE_2D);

    and make sure your texture is bound using glBindTexture

    make sure there are texture coords being rendered and that they are right (if they are all the same, or all the same uninitialized value you will get one colour across the whole thing)

    ummm….
    make sure your texture matrix isn’t screwed…
    glMatrixMode(GL_TEXTURE);
    glLoadIdentity();
    if your not using it…

    then ummm….

    make sure the data getting loaded in when you load the texture is right.

    make sure if you have mipmapping on that you are loading in the mip maps, otherwise if you have the object at a different zoom you might not get any texture…

    umm…
    thats all I can think of off the top of my head.

    EDIT:

    ooo, I just remembered one that caught me up once:

    by changing the structure, you may have changed the initialization order of the app.

    MAKE SURE you aren’t trying to load textures BEFORE you initialize opengl (with the device contexts or whatever, I was under windows)

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

Sidebar

Related Questions

using code from this site: http://www.saltycrane.com/blog/2008/09/simplistic-python-thread-example/ The code is import time from threading import
I got this code from this site: http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/using-php-to-backup-mysql-databases.aspx But I'm just a beginner so
Hi i am using simply scroll plugin from this site http://logicbox.net/jquery/simplyscroll/ but i am
I've been using the sample code from this d3 project to learn how to
I'm trying to parse a html doc using some code I found from this
Say I have a blogging site http://www.example.com using custom cms, and I want each
Using code from this site this.screenshotPreview = function(){ /* CONFIG */ xOffset = 10;
I'm using code I found for a jquery style sheet switcher. From here: http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/
I'm notable to connect this site http://www.youm7.com/newtkarirrss.asp using curl on the server But i
I'm trying to create a website in IIS using this code (from another site

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.