-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RGBFormat removed from r137 #64
Comments
Not sure if this is relevant: Also, this error is not reproducible in any tests or examples. One has to import the mathbox esm module in a different downstream project to reproduce it. |
@divisuals Yeah, I looked into this a bit over the weekend. Ideally, we'd (1) understand the intent of the original RGBFormat for 3-channel, and (2) preserve that with the current version of THREEJS. But... I tried downgrading to r136 and couldn't get 3-channel colors to work (even after restoring the line from 3987ae6). I'm sort of inclined to just replace the current instance of RGBFormat with an explicit @sritchie Does ☝️ sound reasonable to you? |
Haven't seen any movement on this, so sharing my short-term workaround:
Changing @ChristopherChudzicki can you please share which 3-channel color example didn't work for you? Thanks |
RGBFormat was removed in ThreeJS r137. Replacing with explicit undefined silences some build warnings and preserves existing behavior (including any bugs) See #64
RGBFormat was removed in ThreeJS r137. Replacing with explicit undefined silences some build warnings and preserves existing behavior (including any bugs) See #64
@divisuals I believe I was just trying a surface with Re my comment above:
I just opened a PR that does this #69; that branch is published on npm as Thanks for poking us about this. |
Tried using recent THREE release (r149), and got the following error:
WARNING in ./node_modules/mathbox/build/esm/render/buffer/texture/datatexture.js 57:12-27 export 'RGBFormat' (imported as 'CONST') was not found in 'three' (possible exports: ACESFilmicToneMapping, ...
Per THREE r137, RGBFormat is removed:
As this is only used in 1 class, a simple fix could be to just replace it with
RGBAFormat
, per this recommendation.The text was updated successfully, but these errors were encountered: