Simple NIF Rendering

Started by
0 comments, last by Dunge 16 years ago
Hi guys, some of you may know of the NIF file format which stores information about models for games for certain engines. For example, Elder Scrolls. I've found a library which is specialized in loading NIF files etc, which you can find here: http://niftools.sourceforge.net/wiki/NifTools My question is though, does anyone have any idea how to implement basic rendering for that format? For a casual project i want to create a basic rendering utility for viewing NIF models. Any help is greatly appreciated, thanks :)
Advertisement
I never worked with NIF files before, but following links from what you gave I came upon the niflib doc:
http://niftools.sourceforge.net/doc/niflib/
In there you might want to take a look at the "related pages" section for starting out. The library seem to allow a complete scene in the file... or at least multiple object/light/particle system/etc. You will probably load a file then have something like a NiAVObject from there you can access the NiGeometry and use GetData() to obtain a NiGeometryData object with the vertex/normal/uv/color and everything you need to render. Note that I never tried it and might be pointing you in a wrong direction.. but it' the first place I would look.

This topic is closed to new replies.

Advertisement