distort map for canvases

New releases and general discussions.

Post » Tue May 12, 2009 9:44 pm

distort map for canvases
distorted pasting doesn't have to be supported, distortion can be ignored during drawing to the canvas like rotation is, but just being able to distort what's already on the canvas would be awesome
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed May 13, 2009 5:22 am

Can't you put canvas stuff onto a sprite(which has distortion)?
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Wed May 13, 2009 11:56 am

it crashes when i try that, but from what understand copying to image manipulator is so slow even when it does work that it isnt useable for realtime effects
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed May 13, 2009 12:06 pm

Is there a bug for that crash on the tracker? The best thing to do would be to fix the crash and use that method to distort canvases (via a sprite) rather than go through the fairly lengthy work of reimplementing distort maps to canvases.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Wed May 13, 2009 12:15 pm

That bug's been fixed for the next build.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Wed May 13, 2009 7:39 pm

I knew about the new build, which is good,
but I thought I read somewhere that when the copy paste does work on canvases
it takes like a second (literally), and pretty much pauses your game?
I mean, I understand if it's too difficult and low priority to be plausible
but I am curious if that's true, do canvas copy/paste operations
slow down your whole game?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed May 13, 2009 7:52 pm

Canvases are fast, the image manipulator isn't.
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Wed May 13, 2009 10:05 pm

sorry, that's what I meant, image manipulator copy and paste during gameplay then, just takes a while, or does it freeze your game, too, while it's doing it?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed May 13, 2009 10:24 pm

On my computer, it reduces the fps to 5 if I try to do it every frame. It does 'freeze' the game, as the exe needs to wait for it to finish, but it's still a fraction of a second - though certainly not fast enough to be not noticeable.
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Wed May 13, 2009 10:43 pm

thank you so much
that's all I needed to know
I have some really cool ideas for the distortable canvas
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest