OpenGL

Moderators: Sephiroth
Number of threads: 103
Number of posts: 200

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Loading .raw File Posted by maedhros777 on 27 Feb 2010 at 3:19 PM
Hello, I'm fairly new to OpenGL, and I've been writing a .raw loader to import models from Blender. Here's my header file: http://docs.google.com/View?id=dd7xssbg_6d52d3qhb, and my source file: http://docs.google.com/View?id=dd7xssbg_7g28pqtd2. When I run this, I get an error saying "Unhandled exception at 0x00000000 in RawModel.exe: 0xC0000005: Access violation reading location 0x00000000." I use Visual C++ and I know that there isn't anything wrong with the .raw file (cube.raw), it's fairly simple. Does anyone know why I'm getting an error, and how I can fix it? Also, if anyone could give me any recommendations of how to write a 3d loader (of basically any format) for OpenGL, that would be great, because I just figured that .raw would be easiest and I don't really understand it very well. Thanks.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.