Sign in to follow this  

Simple NIF Rendering

This topic is 3554 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 :)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 3554 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this