{"action":"created","issue":{"url":"https://api.github.com/repos/LuxCoreRender/LuxCore/issues/118","repository_url":"https://api.github.com/repos/LuxCoreRender/LuxCore","labels_url":"https://api.github.com/repos/LuxCoreRender/LuxCore/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/LuxCoreRender/LuxCore/issues/118/comments","events_url":"https://api.github.com/repos/LuxCoreRender/LuxCore/issues/118/events","html_url":"https://github.com/LuxCoreRender/LuxCore/issues/118","id":328772717,"node_id":"MDU6SXNzdWUzMjg3NzI3MTc=","number":118,"title":"Additional Math Texture Operations?","user":{"login":"novacrazy","id":4708645,"node_id":"MDQ6VXNlcjQ3MDg2NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/4708645?v=4","gravatar_id":"","url":"https://api.github.com/users/novacrazy","html_url":"https://github.com/novacrazy","followers_url":"https://api.github.com/users/novacrazy/followers","following_url":"https://api.github.com/users/novacrazy/following{/other_user}","gists_url":"https://api.github.com/users/novacrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/novacrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novacrazy/subscriptions","organizations_url":"https://api.github.com/users/novacrazy/orgs","repos_url":"https://api.github.com/users/novacrazy/repos","events_url":"https://api.github.com/users/novacrazy/events{/privacy}","received_events_url":"https://api.github.com/users/novacrazy/received_events","type":"User","site_admin":false},"labels":[{"id":758167098,"node_id":"MDU6TGFiZWw3NTgxNjcwOTg=","url":"https://api.github.com/repos/LuxCoreRender/LuxCore/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-06-02T19:59:19Z","updated_at":"2018-10-17T17:42:30Z","closed_at":"2018-10-17T16:25:59Z","author_association":"NONE","body":"It would be great to have a full set of math operations comparable to Cycles `Math` and `Vector Math` nodes, so equivalent nodes can then be added to BlendLuxCore and more complex procedural textures can be ported over.\r\n\r\nMath operations in LuxCore:\r\n\r\n- [x] Add\r\n- [x] Subtract\r\n- [x] Multiply\r\n- [x] Clamp (Cycles nodes have this as a checkbox instead of a separate operation)\r\n- [x] Linear Interpolation \"Mix\" (which Cycles doesn't have built in)\r\n- [x] Absolute Value\r\n\r\nProposed new operations to add:\r\n\r\n- [x] Divide (OpenCL done)\r\n- [x] Remap (take a value and range, and map it to a new range) (OpenCL done)\r\n- [ ] Power\r\n- [ ] Logarithm\r\n- [ ] Rounding\r\n- [ ] Trig functions (Sine, Cosine, Tangent, and their inverses)\r\n- [ ] Comparison operators (Less Than, Greater Than)\r\n- [ ] Dot Product of Vectors\r\n- [ ] Cross Product of Vectors\r\n- [ ] Vector Normalization\r\n- [ ] Vector Length\r\n- [ ] Average of Vector elements\r\n\r\nAdditionally (these may be doable in BlendLuxCore only):\r\n\r\n- [ ] Creating a Vector/Color from multiple Scalar values\r\n- [ ] Breaking a Vector/Color into multiple Scalar values\r\n\r\nWhile we're at it (sugar for certain equations):\r\n\r\n- [ ] Luma Calculations (Dot product of RGB color with a constant like [These](https://stackoverflow.com/a/596243/2083075))\r\n- [ ] Built-in brightness/contrast operations for colors\r\n\r\nIf these suggestions are misguided, please let me know. I'd like to make LuxCore/BlendLuxCore my default renderer for work, and more procedural texture abilities would go a long way."},"comment":{"url":"https://api.github.com/repos/LuxCoreRender/LuxCore/issues/comments/430722027","html_url":"https://github.com/LuxCoreRender/LuxCore/issues/118#issuecomment-430722027","issue_url":"https://api.github.com/repos/LuxCoreRender/LuxCore/issues/118","id":430722027,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDcyMjAyNw==","user":{"login":"novacrazy","id":4708645,"node_id":"MDQ6VXNlcjQ3MDg2NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/4708645?v=4","gravatar_id":"","url":"https://api.github.com/users/novacrazy","html_url":"https://github.com/novacrazy","followers_url":"https://api.github.com/users/novacrazy/followers","following_url":"https://api.github.com/users/novacrazy/following{/other_user}","gists_url":"https://api.github.com/users/novacrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/novacrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novacrazy/subscriptions","organizations_url":"https://api.github.com/users/novacrazy/orgs","repos_url":"https://api.github.com/users/novacrazy/repos","events_url":"https://api.github.com/users/novacrazy/events{/privacy}","received_events_url":"https://api.github.com/users/novacrazy/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T17:42:30Z","updated_at":"2018-10-17T17:42:30Z","author_association":"NONE","body":"No power or trig functions are definitely still a dealbreaker for me. "}}
{"actor":{"display_login":"novacrazy"}}