Mac Node-Webkit can't display text of +6000px

Bugs will be moved here once resolved.

Post » Fri May 16, 2014 3:16 pm

Problem Description
When I export to mac a project that has a text with height larger than +8000, it just shows a black box. This doesn't happen on Windows or during testing in Chrome.

Attach a Capx
https://www.dropbox.com/s/umqbshsx7mc0j ... RKING.capx

Description of Capx
Just shows a project with a textbox bigger than around 8000. When exported to Node-Webkit for Mac, it shows only a black box where the text should be.

Note: I had the same problem with 8000+ height in mac, but then I used minimise, and it managed to overcome that limit, and 8000 + started to be the new limit.

Steps to Reproduce Bug
  • Open capx
  • Export to node webkit
  • Open with OSX

Observed Result
Black box instead of text

Expected Result
.app exported project to show the text, not a black box

Affected Browsers
  • Chrome: (NO)
  • OSX: (YES)
  • Windows: (NO)

Operating System and Service Pack
Windows 7 SP3

Construct 2 Version ID
Latest

EDIT: Found that it doesn't work for +6000 too
B
39
S
6
G
1
Posts: 306
Reputation: 2,948

Post » Tue May 20, 2014 12:35 pm

Closing: you're probably exceeding the hardware maximum texture size (commonly 2048, 4096, 8192 or 16384, depending on the machine). Why on earth do you need such an extraordinarily huge text object? It's easy to work around anyway, just break it up in to several objects.
Scirra Founder
B
403
S
238
G
89
Posts: 24,653
Reputation: 196,143

Post » Tue May 20, 2014 2:48 pm

This is present in Mac only, not in Chrome, not in webkit for PC, iPad, CocoonJS.

It's a very minimal and elegant solution to the problem, that's why it's the best way to go. I'm quite aware of the alternatives :)

Thank you
B
39
S
6
G
1
Posts: 306
Reputation: 2,948

Post » Sat Jul 26, 2014 10:09 am

It's on cocoonJS and Ejecta too. The same problem there.
B
39
S
6
G
1
Posts: 306
Reputation: 2,948

Post » Sun Jul 27, 2014 4:01 pm

I haven't tried it out on Android. I'm trying to find a workaround to this, but nothing seems to work.
I tried scaling the spritefont or text layer, just that layer, and making the original text smaller, so when scaled, it reaches 4096, but it's zoomed in.. still didn't work unfortunately.

It doesn't work on Ejecta and CocoonJS... ipad mini is not affected, but ipad air is, so is iphone 5s.. it's strange.
B
39
S
6
G
1
Posts: 306
Reputation: 2,948

Post » Sun Jul 27, 2014 4:14 pm

This can't be fixed, you try text with size more than 6000, every device has it's own max texture size (like iphone 5s no more than 4096). And, as i know, cocoonjs and ejecta can work only with no more than 4096 texture size.
Last edited by Sisyphus on Sun Jul 27, 2014 5:15 pm, edited 1 time in total.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Sun Jul 27, 2014 5:14 pm

Here's the screenshot from cocoonjs debug to prove my words.
You do not have the required permissions to view the files attached to this post.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Sun Jul 27, 2014 7:24 pm

My hands are utterly tied here. I can't use text object since the limit on 4096 height, and I can't use sprite font which works perfectly on Mac PC, but framerate is instantly terrible on mobile for bigger texts.
B
39
S
6
G
1
Posts: 306
Reputation: 2,948

Post » Sun Jul 27, 2014 7:26 pm

Thanks anyway @Sisyphus... I feel like I can understand your struggle with the rock here :)
B
39
S
6
G
1
Posts: 306
Reputation: 2,948

Post » Sun Jul 27, 2014 8:27 pm

damjancd wrote:Thanks anyway @Sisyphus... I feel like I can understand your struggle with the rock here :)

As Ashley said, cut your text into peaces, or create a text(maybe spritefont) 500-600 size, and set it via events, this is the best and the only solution for ya :)
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests