•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 374,614 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,289 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:
Views: 224 | Replies: 2 | Solved
![]() |
•
•
Join Date: May 2008
Posts: 70
Reputation:
Rep Power: 1
Solved Threads: 3
Hai guys,
I have quite a large program here that I don't seem to understand. The program, Bow Vice Jet (an anagram for object view) is meant to display WaveFront .obj files. However, it quits when it loads a specific file while on my computer, while on another it does not. I can't find the bug, and it's very annoying. Maybe it has got something to do with memory allocation, maybe something else. If anyone sees any mistake in the code, please point it out and I will correct it. I know it's a vague question, "Find the bug", but I've been searching for quite some time now and can't figure it out.
The code is attached, together with the "quiting" file and a file that almost works. To see how these files should look in 3D space, download GLC Player or use your favorite 3D mesh viewing program.
Thanks in advance,
Nick
I have quite a large program here that I don't seem to understand. The program, Bow Vice Jet (an anagram for object view) is meant to display WaveFront .obj files. However, it quits when it loads a specific file while on my computer, while on another it does not. I can't find the bug, and it's very annoying. Maybe it has got something to do with memory allocation, maybe something else. If anyone sees any mistake in the code, please point it out and I will correct it. I know it's a vague question, "Find the bug", but I've been searching for quite some time now and can't figure it out.
The code is attached, together with the "quiting" file and a file that almost works. To see how these files should look in 3D space, download GLC Player or use your favorite 3D mesh viewing program.
Thanks in advance,
Nick
•
•
Join Date: May 2008
Posts: 70
Reputation:
Rep Power: 1
Solved Threads: 3
Solved:
-->
I'll read function descriptions more carefully next time, fo'sho.
c Syntax (Toggle Plain Text)
glDrawElements(GL_QUADS, quadcount, GL_UNSIGNED_INT, quadindex); glDrawElements(GL_TRIANGLES, trianglecount, GL_UNSIGNED_INT, triangleindex);
c Syntax (Toggle Plain Text)
glDrawElements(GL_QUADS, quadcount*4, GL_UNSIGNED_INT, quadindex); glDrawElements(GL_TRIANGLES, trianglecount*3, GL_UNSIGNED_INT, triangleindex);
I'll read function descriptions more carefully next time, fo'sho.
Last edited by Clockowl : May 10th, 2008 at 5:07 pm.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
Similar Threads
- Unstable CPU Usage (Viruses, Spyware and other Nasties)
- Overview of UNIX (Getting Started and Choosing a Distro)
- Error message when reading floppy in windows xp pro and dos boot (Storage)
- Upgrading to Win2000 from Win98 advice wanted! (Windows NT / 2000 / XP / 2003)
Other Threads in the C Forum
- Previous Thread: ftell() fclose() and FILE* f = NULL
- Next Thread: how do i print 12e-6 instead of .000012


Linear Mode