Giter VIP home page Giter VIP logo

Comments (7)

travisapple avatar travisapple commented on June 6, 2024 1

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.

travisapple avatar travisapple commented on June 6, 2024

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.

schalkt avatar schalkt commented on June 6, 2024

Thanks for the feedback. :) Very useful.
I will do these features within a few days.

from tgen.

schalkt avatar schalkt commented on June 6, 2024

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.

schalkt avatar schalkt commented on June 6, 2024

Hi @travisapple,

What's up? :)
Does it work?

from tgen.

schalkt avatar schalkt commented on June 6, 2024

Can you show a screenshot or something?
It sounds really interesting. :)

from tgen.

travisapple avatar travisapple commented on June 6, 2024

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)

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.