Giter Site home page Giter Site logo

niflib's People

Contributors

aaron1178 avatar alphax avatar amorilia avatar blipvert avatar ethatron avatar logicdragon avatar neomonkeus avatar skyfox69 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

niflib's Issues

NifDoc v0.9 support

The following library does not support Nif.xml 0.9, making it impossible to use with newer nif programs.

Is there any plan for updating this repository and/or the docsys? (I was forced to use a fork of it since the normal one does not generate the files with the v0.9)

NiBoneLODController

Opens up access to the shape-collection.

https://www.dropbox.com/s/538k841388hopt9/NiBoneLODController.cpp.diff?dl=0
https://www.dropbox.com/s/f9uk6zpyzpjoi3j/NiBoneLODController.h.diff?dl=0

This is a good pattern - and probably can be used at various places. Would it make sense to factor this out into utility functions say:
template T bool GroupAddElement( vector<Ref > group, Ref elem)
template T bool GroupRemoveElement( vector<Ref > group, Ref elem)
template T bool GroupReplaceElement( vector<Ref > group, Ref old, Ref new)

Yes, I pushed a few diffs with these group-related interfaces. I probably have even some more just here in the code. I use it extensively to substitute nodes by new ones in NIFopt.
You still need to add it to each class though, as the group is private.

Of course. We also need to pass the count so it can be updated.

NiSkinData complement

Files require review

Allows access to the Bone-weights.

https://www.dropbox.com/s/s1xk3cq0y281o9w/NiSkinData.cpp.diff?dl=0
https://www.dropbox.com/s/od2qjuiesbz9707/NiSkinData.h.diff?dl=0

My feeling is that this patch goes against niflib's current design - it feels out of place. We have Get and Set functions for everything else elsewhere.
Could you rewrite it to fit that design?

(The other options is of course simply to make all data public... I'm actually not at all against that, but it would be a completely different library, and a lot of things would need to be readdressed.)

I can't really follow. It is a getter and a setter, and one that is in exactly the same way everywhere, just take GetVertices()/SetVertices(), it's almost a copy'n'paste job here only it's for bone-data. :^)

I don't actually care all that much, but:

  1. Your getter and setter are not symmetric (getter = bone data, setter = vector of weights).
  2. Your getter returns a raw pointer to the data; in other parts of the lib, a copy of the data is returned (IIRC).

hkPackedNiTriStripsData complement

Verify patch was added and if iterator is needed.

Provides access to the MOPP-info and corrects a few API texts.

https://www.dropbox.com/s/xpniuvaynwlwau2/hkPackedNiTriStripsData.h.diff?dl=0
https://www.dropbox.com/s/a90451eozrkelj0/hkPackedNiTriStripsData.cpp.diff?dl=0

How about this?
amorilia/niflib@50a17d6

The problem was that I needed access to , which you removed (the *Full() variant). That acess should be provided as well.

All parts of the hkTriangles are accessible - instead, I take it that you mean that the access isn't convenient for iteration, right? If you write the patch it will be even faster. :-)
Again, make sure setter and getter are symmetric, as in the remainder of the lib (it wasn't the case in your original patch).
Regarding the name, GetHkTriangles SetHkTriangles seems clearer?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.