Results 1 to 5 of 5

Thread: Model Rendering problem...

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    9

    Model Rendering problem...

    hey i have been having a problem with loading some models in my opengl program..

    Im using Code Blocks and MinGW32 on windows 32 bit.

    heres the problem: nothing is rendered correctly: http://img403.imageshack.us/content_roun...amp;via=mupload

    heres some code if you wanna look at it:
    main: http://pastebin.com/ZKMW28Dy
    the model.h: http://www.mediafire.com/?uu40kuophpsczda

    if anything else is needed let me know

    some background info: i have tried asking this on 2 other forums, and nobody has been able to help since i posted them(about 3 days)...i also use SFML for the window and 2D graphics.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Mar 2009
    Location
    Karachi, Pakistan
    Posts
    810

    Re: Model Rendering problem...

    Do the following and then tell us what u get.
    1) Disable polygon stipple.
    2) Enable back face culling.
    3) Disable blending.
    One more thing, in your render function you are resetting the texture filtering to linear while this has nothing to do with the output but it is better to do it once at the initialization.
    Regards,
    Mobeen

  3. #3
    Member Contributor
    Join Date
    Feb 2011
    Posts
    72

    Re: Model Rendering problem...

    what kind of model are you laoding?

  4. #4
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    9

    Re: Model Rendering problem...

    to mobeen: same problem still...

    to enjoycrf: im loading a .obj file exported from blender


    is there anything else that can solve this??

  5. #5
    Senior Member Frequent Contributor
    Join Date
    Mar 2009
    Location
    Karachi, Pakistan
    Posts
    810

    Re: Model Rendering problem...

    Quote Originally Posted by MolmasEpic
    to mobeen: same problem still...

    to enjoycrf: im loading a .obj file exported from blender


    is there anything else that can solve this??
    Could u just load the .obj model in a simple glut project to see it comes out fine.
    Regards,
    Mobeen

Similar Threads

  1. Load a .vtk model and rendering it with OpenGL
    By anto.gallarello in forum OpenGL: Linux
    Replies: 1
    Last Post: 12-15-2016, 06:12 AM
  2. Problem with model rendering (JAVA, OPENGL 2.1)
    By kaboom in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-16-2015, 06:46 PM
  3. Some advice for model animation/rendering
    By Xarragon in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 11-10-2004, 07:06 AM
  4. why is the rendering 3D model so slow
    By Spaceboy in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 01-28-2002, 02:25 AM
  5. rendering md2 model
    By eckiller in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-07-2000, 06:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean