Skip to content
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

Adding WebGL texture types #6166

Open
2 of 17 tasks
RandomGamingDev opened this issue May 28, 2023 · 11 comments
Open
2 of 17 tasks

Adding WebGL texture types #6166

RandomGamingDev opened this issue May 28, 2023 · 11 comments

Comments

@RandomGamingDev
Copy link
Contributor

RandomGamingDev commented May 28, 2023

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
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • 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
Copy link

welcome bot commented May 28, 2023

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!

@davepagurek
Copy link
Contributor

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!

@RandomGamingDev
Copy link
Contributor Author

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.

@davepagurek
Copy link
Contributor

awesome, feel free to ask on the p5 discord if you need any pointers on making that happen!

@RandomGamingDev
Copy link
Contributor Author

RandomGamingDev commented Jun 9, 2023

Here's the library I created for anyone coming across this: https://github.com/RandomGamingDev/WebGL2Tex

@Vishal2002
Copy link
Contributor

Can I also work on this issue ?

@RandomGamingDev
Copy link
Contributor Author

@Vishal2002 Sure, but you'll probably want to ask for someone to assign you to this issue. @davepagurek could you help with that?

@davepagurek
Copy link
Contributor

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
Copy link
Contributor

@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.

@davepagurek
Copy link
Contributor

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?

@RandomGamingDev
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Feature Requests
Development

No branches or pull requests

3 participants