p5.js
p5.js copied to clipboard
Adding WebGL texture types
Increasing Access
p5.js's addition of shaders meant that a lot more was possible with the library, but the lack of precise texture control means that people either have to waste memory, speed, or themselves poke into the WebGL and p5.js code to get all the data needed for creating more specific textures. For example, if someone wanted 1d or 3d textures, or if they wanted to use UNSIGNED_BYTE textures.
Most appropriate sub-area of p5.js?
- [ ] Accessibility
- [ ] Color
- [X] Core/Environment/Rendering
- [ ] Data
- [ ] DOM
- [ ] Events
- [ ] Image
- [ ] IO
- [ ] Math
- [ ] Typography
- [ ] Utilities
- [X] WebGL
- [ ] Build Process
- [ ] Unit Testing
- [ ] Internalization
- [ ] Friendly Errors
- [ ] Other (specify if possible)
Feature request details
Give a function similar to the createImage function for WebGL only that gives control over the WebGL parameters of the texture while also working with the other parts of the p5 library.
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!
We might make some progress on this soon, as one of our Google Summer of Code project will involve using cubemaps, so we'll report back!
Nice! For now I think I might just make my own p5.js addon since it sounds like it's only gonna come during the summer.
awesome, feel free to ask on the p5 discord if you need any pointers on making that happen!
Here's the library I created for anyone coming across this: https://github.com/RandomGamingDev/WebGL2Tex
Can I also work on this issue ?
@Vishal2002 Sure, but you'll probably want to ask for someone to assign you to this issue. @davepagurek could you help with that?
Hi, thanks for your interest @Vishal2002! Before getting started, maybe we should iron out what specifically this request involves. @RandomGamingDev mentioned 3D textures and more texture formats. Either probably requires a bit of discussion of how to add them in, and maybe a motivating use of each that we would use as an example and would be used to guide the discussion of implementation.
@Vishal2002 Sure, but you'll probably want to ask for someone to assign you to this issue. @davepagurek could you help with that?
I want to work on this issue and learn more about the requirements, I know the basics of WEBGL like Camera, Texture and all.Should we discuss that on Discord or here.
I want to work on this issue and learn more about the requirements, I know the basics of WEBGL like Camera, Texture and all.Should we discuss that on Discord or here.
For each feature being added, probably we'll want a use in mind that motivates its inclusion, to guide the discussion and use as examples. Maybe Discord could be a good spot to brainstorm those before bringing them to Github to discuss?
For each feature being added, probably we'll want a use in mind that motivates its inclusion, to guide the discussion and use as examples. Maybe Discord could be a good spot to brainstorm those before bringing them to Github to discuss?
That sounds great. I'd also be happy to talk about it with others on Discord :D