Firefox fix / hack #1

Open
xem opened this Issue Nov 16, 2016 · 2 comments

Projects

None yet

2 participants

@xem
xem commented Nov 16, 2016 edited

I spent the last 4 days to come up with a solution for Firefox (keeping 25 cubes below 100 polygons), the idea is to show only 3 faces to each cube, and give 3 more faces to the one(s) that rotate at a given moment.
It's hacky and dirty and adds a ton of code, but it kinda works. :)
FYI:
http://codepen.io/xem/pen/vyXejE
http://codepen.io/xem/pen/JbbGPR
(it's a WIP)

@crnacura crnacura self-assigned this Nov 19, 2016
@crnacura
Member
crnacura commented Nov 19, 2016 edited

That's a really interesting solution and although it does add lots of code, I believe that it will be very useful for many devs who are facing that problem. I'm going to link to your pens from the article if that's alright with you :) Let's leave this issue open, so that the ones seeking for a solution will find it easily.

@xem
xem commented Nov 19, 2016

@crnacura Sure, thanks I think I also found a way to keep all faces and still look less broken on Fx:
You need to add the cubes of each line from left to center, then from right to center (like: 1 2 3 4 7 6 5)
By doing so, you'll force a little the Z-ordering on Fx even if you have more than 100 polygons (like in your demo).
Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment