Comments (8)
fee157a adds support for reading tangents from disk. After tangent triangle segment will be added, this feature will be complete.
from tmf.
Which API representations for tangents would be easier to work with? One where w is represented as a bool denoting handedness or as a float with value of either -1 or 1? The representation on disk will be the same, and any performance difference negligible. I don't know the use cases for tangents look like exactly, so it is hard for me to envision which would be more ergonomic to use.
from tmf.
170bf31 adds support for setting/getting tangent arrays on a mesh and saving them to disk (reading is partially implemented). Current API representation of Tangent is tuple ((float, float, float), float). I am still looking for feedback on this API representation of tangents.
from tmf.
ac53b94 adds support for saving and loading tangent triangle index arrays. This feature is complete, and I am just waiting for more input on the current API.
from tmf.
I noticed there is no way to read the value of HandenesType
(also, I think it should be spelled Handedness
). Maybe make the field pub
?
from tmf.
I've done the following on the fork I use
impl From<FloatType> for HandenesType {
fn from(value: FloatType) -> Self {
HandenesType(value)
}
}
impl From<HandenesType> for FloatType {
fn from(value: HandenesType) -> Self {
value.0
}
}
from tmf.
HanenessType
being a struct was an oversight on my part (something temporary that I forgot to remove). HanenessType
was supposed to be entirely internal (just a normal float to the consumer of the API), as a way to make functions signatures more clear. Now it is just an alias for FloatType
, which is an alias for either f32
or f64
, depending on feature flags set.
from tmf.
Since there are no more comments, I assume the current API is OK.
from tmf.
Related Issues (12)
- [BUG] Triangle segment spilling has some weird issues. HOT 2
- Octahedron normals HOT 3
- Delta encoding [FEATURE] HOT 1
- Shared Index Segment Type[FEATURE] HOT 4
- [META] Preparations for 0.2: What is missing.
- How does this compare to draco? HOT 6
- [FEATURE] Support for quads HOT 1
- Add size comparisons with GLTF HOT 2
- [FEATURE] Support arbitrary vertex attributes HOT 6
- Question: Why have distinct index buffers per attribute? HOT 2
- [BUG] tmf Doesn't compile with the `fast_trig` feature enabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmf.