compute-toys / compute.toys Goto Github PK
View Code? Open in Web Editor NEWWebsite source code
Home Page: https://compute.toys/
License: MIT License
Website source code
Home Page: https://compute.toys/
License: MIT License
I found a bug in compute.toys (it seems);
The texture provided in compute.toys, blue-noise (the last one), is not stored in linear space but has been mapped to gamma space;
Because the distribution of blue-noise between 0.0 ~ 1.0 is unbiased, the number of pixels >0.5 should be roughly equal to the number of pixels <=0.5;
However, the blue-noise provided by compute.toys obviously does not conform, as shown in the picture:
The left side is <= 0.5, the right side is >=0.5;
Only by applying a gamma correction of pow(blue_noise, 1 / 2.2) can the correct image be obtained;
So I suspect that an incorrect gamma mapping, pow(color, 2.2), was added when generating the blue-noise.
__THE BUG SHOWCASE__: https://compute.toys/view/928
Attempted to use the compute.toy
as a standalone editor by following the steps described in the README file, which involved deleting the pages
directory before starting the server. Unfortunately, this approach did not work.
I then tried to resolve the issue by clearing the cache, which involved deleting the .next
directory. However, even after doing this, I consistently encountered the following error:
Server Error
Error: useAuth must be used within an AuthProvider
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Source
lib\db\serializeshader.ts (128:28) @ useShaderSerDe
126 | const atomGetter = useAtomGetter();
127 |
> 128 | const { user } = useAuth();
| ^
129 |
130 | /*
131 | We DO NOT want to use getters here, even though
Call Stack
MetadataEditor
components\editor\metadataeditor.tsx (53:43)
Could you please provide guidance on how to resolve this issue?
We should add open graph meta tags to the website
The following tags should be added to the <head>
of every page
<meta property="og:title" content="...">
<meta property="og:type" content="...">
<meta property="og:image" content="...">
<meta property="og:url" content="...">
<meta property="og:description" content="...">
<meta property="og:site_name" content="...">
This allows apps like Discord to generate previews for links to the website
I'll happily submit a PR for this
check dev console on page load.
.
All current limitation related to public/grammars/wgsl.ts file. For example #36 PR gives ability to use override
in shaders.
We need to update it to:
https://www.w3.org/TR/WGSL/#grammar-recursive-descent
https://www.w3.org/TR/WGSL/#statements-summary
https://www.w3.org/TR/WGSL/#expression-grammar
https://www.w3.org/TR/WGSL/#var-and-value-decl-grammar
https://www.w3.org/TR/WGSL/#type-specifiers
Can't test it locally, but I believe something like this would work - https://betterprogramming.pub/prevent-route-changes-and-unsaved-data-loss-in-next-js-f93622d73791
cached
depends on an old version of proc_macro2
, which suffers from rust-lang/rust#113152
I suppose updating all the dependencies would be in order.
As a side note, this message also appears.
warning: `D:\Coding\GitHub\Libraries\compute.toys\wgpu-compute-toy\.cargo\config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
I'll happily submit PRs to fix this.
Right now everything becomes small
The ctrl+click keybinding is equivalent to right-clicking on a Mac, so the keybinding can't be used. Suggest changing it to alt-click
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.