Loading .raw File - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Loading .raw File

maedhros777maedhros777 Posts: 1Member
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.
Sign In or Register to comment.