Jump to content
  • Advertisement
Sign in to follow this  
DeadlyDan

Simple NIF Rendering

This topic is 3767 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
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!