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

  • Home
  • SEARCH
  • 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 4086090
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:40:35+00:00 2026-05-20T18:40:35+00:00

and this time i have loaded a model successfully! yay!! but theres a slight

  • 0

and this time i have loaded a model successfully! yay!!

but theres a slight problem, one that i had with another obj loader…

heres what it looks like:

http://img132.imageshack.us/i/newglitch2.jpg/

heres another angle if u cant see it right away:

http://img42.imageshack.us/i/newglitch3.jpg/

now this is supposed to look like a cube, but as you can see, the edges of the faces on the cube are being very choppy

is anyone else having this problem, or if anyone knows how to solve this then let me know

also comment if theres any code that needs to be shown, ill be happy to post it.

hey i played around with the code(changed some stuff) and this is what i have come up with

ORIGINAL:

glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    gluPerspective(50.f,(double)800 / (double)600,0.f,200.f);
    glTranslatef(0.f, 0.f, -10.0f);

result: choopy image(look at images)

CURRENT:

glMatrixMode(GL_MODELVIEW);
    gluPerspective(50.f,(double)800 / (double)600,0.f,200.f);
    glTranslatef(0.f, 0.f, -50.0f);
    glLoadIdentity();

result: model is not choppy but cannot move camera(model is right in front of me)

  • 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-20T18:40:35+00:00Added an answer on May 20, 2026 at 6:40 pm
    gluPerspective(50.f,(double)800 / (double)600,0.f,200.f);
                                                  ^^^ 
                                                   | 
    That's your problem right there ---------------+
    

    The near clip distance must be greater than 0 for perspective projections. Actually you should choose near to be as far away as possible and the far clip plane to be as near as possible.

    Say your depth buffer is 16 bits wide, then you slice the scene into 32768 slices. The slice distribution follows a 1/x law. Technically you’re dividing by zero.

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

Sidebar

Related Questions

I'm re-asking this question but with a different framework this time. I have two
I need to learn RegEx but don't have time to figure this out right
I have an object model that looks like this (pseudo code): class Product {
I have loaded a model using the 3DS parser that is already linked to
This time I have an error which I have been trying again to figure
this time it's about Ruby On Rails. I have a form in the view
I have been building enterprise software for the last 10 years. In this time
It seems I tend to attract strange issues. This time, I have written a
This is the first time I have manipulated hashes and arrays in this way
I have tough time making this design decision. I could go with traditional new

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.