-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add support for textures #7
Comments
While it may not be the fastest, if you do a CanvasPattern and transform it via a skew matrix, you can probably simulate "projecting" a texture on a wall. Though between #7, #8, and #9, I'm surprised you don't have per-pixel lighting as an option. Though if you get to that point, you may be better looking into WebGL then Canvas. |
I don't think ordinary canvas operations are performant enough for per-pixel lighting, are they? |
Then we should ask the question of caring about mobile support? |
Hence why I said it probably isn't best unless you want to switch to WebGL |
In the end it has to be simple. I'm not aiming to compete with Three.js or other graphics engines. This is really meant for simple artwork. That being said, it's important to fix little bugs like #6, and add small features like textures. I guess performance doesn't need to be stellar. |
Perhaps change the color option when adding to "fill" |
I would absolutely love texture support. Is this something you've started work on, or should I take a look at doing this? |
@owenversteeg nope I haven't worked on this at all :) Feel free to take a stab at it. |
@jdan what's the status of this issue? I mean, I see it's closed, but wondering why. Implemented? |
@whoeverest This one's still open, #55 was closed as a dupe. Status is that we're looking for a suitable WebGL library upon which to build Isomer. The @cryptoquick Pointed out that stack.gl might be a suitable candidate. |
Ah, sorry, it looks like I don't know how to GitHub. :-)) Does this mean that textures won't be supported in the basic no-three.js-or-whatever branch? |
@whoeverest Ideally we'll be using the new webgl stuff in master - I thought about splitting the library into two but I don't think it's a great idea. |
@jdan I see. Personally that doesn't make me too happy, since I plan on using Isomer to build a game that's expected to work on older hardware (http://sugarlabs.org/) but I understand why you want to go in that direction. I guess I can always make a fork and add whatever features I need in the vanilla version. |
@whoeverest in an ideal world I'd spin this off into a github org and we'd have |
IMO, it doesn't fit terribly well for my use-case either. I actually prefer a 2D canvas solution, and it also opens itself up to a whole new area of open source graphics novel code; 3D has been done to death. Another advantage to keeping it on 2D canvas is that having the option to easily render on the backend is a huge bonus. |
@jdan One possible solution would be to have a backend object. Then you say "this object has a texture" and the backend figures out what to do with it. Then you can have your threejs backend and your Canvas backend. |
Any news on this? I know this request is already a coupe lof years old, but it would still be amazing to apply textures! |
This library looked awesome to build a small interactive game but I would have loved to be able to use my own sprite |
Instead of ordinary fill colors, it would be very useful to be able to place textures on faces.
The text was updated successfully, but these errors were encountered: