Comments (7)
Just getting back into the office... sorry for the delay.
THANK YOU for your time here.
I tested that the console.log calls are gone and that there's a nice "'debug': true," in the params. That should make it convenient for people to test speed for webgl texture generation (me included).
generator.texture.export('clamped') was tested and is working correctly. For me, it's used to simulate natural wind patterns across a grass field and looking great.
Thanks again for your effort here and in this entire project.
from tgen.
Also, I'm pulling color data directly sometimes and don't want to run it through a canvas. It wasn't obvious right away that you need to pull this like:
generator.render(params);
var unclamped = generator.texture.data;
and then clamp it to 0-255. Maybe a something like calling generator.render(params).rawData() would return a Uint8ClampedArray with rgba color data.
Thanks again.
from tgen.
Thanks for the feedback. :) Very useful.
I will do these features within a few days.
from tgen.
Done. :)
Please update your tgen version to v1.0.2
Log
- debug log disabled by default
- adjustable in params:
{ "debug": true, "width": 256, "height": 256, ...}
Get raw image data
var rawData = generator.texture.export('clamped');
from tgen.
Hi @travisapple,
What's up? :)
Does it work?
from tgen.
Can you show a screenshot or something?
It sounds really interesting. :)
from tgen.
It's not quite clean enough yet to show. I'll send something over when i'm a little further on.
from tgen.
Related Issues (12)
- Water preset? HOT 2
- Help / documentation for https://texture-generator.com/generator/demo/ HOT 8
- Question about checkerboard preset HOT 2
- use of textures HOT 1
- Quasi-reproducibility of textures HOT 1
- Mul not initialised in generator function HOT 7
- How do I get this to work offline? HOT 3
- PIXI HOT 4
- remove randomness HOT 1
- Seamless Texture From Image HOT 2
- How do I use this on my website? HOT 6
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 tgen.