ands / seamoptimizer Goto Github PK
View Code? Open in Web Editor NEWA C/C++ single-file library that minimizes the hard transition errors of disjoint edges in lightmaps.
A C/C++ single-file library that minimizes the hard transition errors of disjoint edges in lightmaps.
https://github.com/ands/seamoptimizer/blob/master/seamoptimizer.h#L480
I think it should be floor
rather than round
here, or ax
may be negative leading to strange weights.
BTW, what's the license for seamoptimizer? I'm porting this to Unity as a side project on github, so just wanna have a check
Thanks for your great work ๐
Just testing the library :)
Found it crashing with Y coordinate being 1024 for a 1024 map (shouldn't be > 1023). Maybe my fault, but also maybe there needs to be something like min(ax+1, w-1) and so on here:
https://github.com/ands/seamoptimizer/blob/master/seamoptimizer.h#L484
Using complex geometry/lightmaps and alloca() calls gives me stack overflow:
https://github.com/ands/seamoptimizer/blob/master/seamoptimizer.h#L876
Any reason not to use normal malloc/_aligned_malloc/something not using stack? malloc seems to fix the crash for me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.