upf-gti / hdre.js Goto Github PK
View Code? Open in Web Editor NEWJS parser/creator for HDR environment images packed with filtered levels used in PBR
JS parser/creator for HDR environment images packed with filtered levels used in PBR
Some requirements:
Instead of a strange object with fields like header (??) and _envs (????), what about an object with all the info, descriptive names, etc, like size, num_channels, and skip useless fields like signatura (???).
Data object have to be easy to use to others, not easy to code for you, remember that the file format should never impose an object representation of the data. The data object is the important element, the file format is just a medium.
Also, instead of returning a generic JS object, what about returning a class like HDREImage object? with some methods like toTexture(), flipY() etc.
All cubemaps must be stored in a way that are direct to upload to the GPU without requiring to flipY (as firefox do not supports it and it is very slow to do it manually).
Force that all files must have ALWAYS spherical harmonics, and be sure no HDRE in the database doesnt have them.
Currently you need to use HDR4EU Studio to create them. But I may have a regular HDR cubemap, or a EXT image, and I want to create my HDRE file from my application (for instance to create reflection probes of realtime rendered scenes).
I need an easy way to call HDRE.createHDRE( texture ) passing the texture and get the HDRETexture object. If it require to include an EXR library it is ok.
Add some shader examples in the library to make it easy for people to include, like:
HDRE.shader_read_cubemap = " vec3 readCubemap( samplerCube texture, float roughness ) .... ";
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.