p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

Ability to pass a W variable to WebGL texture mapping

Open minystreem56 opened this issue 1 year ago • 4 comments
trafficstars

Increasing access

Make it so people are able to make there own 3D engines with textures.

Most appropriate sub-area of p5.js?

  • [ ] Accessibility
  • [ ] Color
  • [ ] Core/Environment/Rendering
  • [ ] Data
  • [ ] DOM
  • [ ] Events
  • [X] Image
  • [ ] IO
  • [ ] Math
  • [ ] Typography
  • [ ] Utilities
  • [X] WebGL
  • [ ] Build process
  • [ ] Unit testing
  • [ ] Internationalization
  • [ ] Friendly errors
  • [ ] Other (specify if possible)

Feature enhancement details

I am making my own 3D engine, but I am using WebGL for texture mapping, but becuse I pass 2d cords to WebGL it cannot do the proper prespective projection making the texture look werid, here is my project so you can see this. For more information check out this webpage that describes this issue in more detail.

minystreem56 avatar Feb 01 '24 01:02 minystreem56

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!

welcome[bot] avatar Feb 01 '24 01:02 welcome[bot]

I'd love to get a general solution to custom attributes (https://github.com/processing/p5.js/issues/5120) as a way to enable this!

davepagurek avatar Feb 01 '24 17:02 davepagurek

Sorry for disabling textures on my project, been working on it and forgot. if anybody wants to see it again I can fix it up.

minystreem56 avatar Feb 02 '24 14:02 minystreem56

@minystreem56 it would be nice to see the textures on your project . I am interested.

Forchapeatl avatar Aug 15 '24 12:08 Forchapeatl