[PLUGIN] Paster

Post your completed addons to share with the community

Post » Mon Jun 22, 2015 12:29 pm

R0J0hound wrote:@hmott
The fact it's flipped is due to some graphics card drivers. It can be detected and corrected, but thanks to chrome and firefox updates I can no longer use webgl on my machine, so I haven't touched that portion. I'm hesitant to do a fix that I can't test.

@Nibel
The download is the latest. All it does is leverage whatever rendering C2 already does.

Are you also having chrome webgl issues?
I had to disable the gpu in chrome :/
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

Post » Sun Jul 05, 2015 1:58 pm

@ROJOhound

Hi Rojo
Your Outline effect makes the Paster plugin crash in node webkit.
Simply removing the outline effect from my sprite makes the game run.
Adding it again and running the game = instant shutdown of node webkit.

Can u fix this?

Kind Regards Savvy001
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

Post » Sun Jul 05, 2015 6:12 pm

@ghost
@Savvy001
My graphics card is now blacklisted by all browsers currently. On firefox I can force enable webgl but it causes an immediate error when trying to run a C2 game. Chrome and NW.js no longer let me force enable webgl.

In short unless I get a new computer I'm unable to do anything with webgl right now.
B
92
S
32
G
107
Posts: 5,280
Reputation: 69,971

Post » Sun Jul 05, 2015 11:19 pm

Ah i see.

Then i hope one of these days the game fairies come to visit u bringing a beast of a new pc ;-)
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

Post » Fri Jul 17, 2015 5:47 pm

As an update to my 'paste the screen' quest: I ended up just making a function that, when called, individually pastes every relevant onscreen object in the proper Z order.

Thankfully, this has worked everywhere I've tried, including on Cocoon.io Canvas+ with WebGL enabled. Also gives me a more flexibility to omit certain objects conditionally.

tldr: Paster's normal functionality -- pasting objects -- seems to work fine in WebGL.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Sat Jul 18, 2015 3:51 pm

Hi ROJOHound

Im using spriter and im trying to paste the spriter character with the paster plugin.
Im getting a error.

Javascript error!
Uncaught type error: Cant read property "length" of undefined http://localhost:5000/glwrap.js , line 1821 (col 41)

Is this something i need to talk to the makers of spriter about?

Kind Regards
Savvy
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

Post » Fri Jul 31, 2015 2:19 pm

This is a great plugin!

I am using Paster.imageUrl with invoke download .... can the output be changed to a jpeg file instead of a png file?

Thanks
B
5
Posts: 13
Reputation: 253

Post » Mon Aug 03, 2015 8:09 am

Is there a documentation (or wikipedia) about what a quad is and what is the purpose of that? Is used for a some sort of distortion matrix? I am interesting if it can help creating a image skew for a perspective 3d environment.
Sorry for my ignorance.
B
79
S
21
G
23
Posts: 513
Reputation: 18,648

Post » Mon Aug 03, 2015 5:48 pm

@Savvy001
It's an issue with this plugin. Speciffically it has to do with pasting stuff that has effects. C2's runtime has had updates with it's webgl renderer and I haven't kept up since my pc doesn't use webgl currently.

@crugh
It only does png currently, but here's how to change it to do jpeg instead if you wish.
Open paster's runtime.js, then find
Code: Select all
canvas.toDataURL()

and replace it with:
Code: Select all
canvas.toDataURL("image/jpeg", 1.0)

Where the "1.0" is the quality from 0.0 to 1.0.

@Cipriux
"quad" is just short for quadrilateral. All the "draw quad" action does is let you specify the coordinates of the four corners of a quad to draw. It indeed lets you draw a image in a distorted way, but a perspective transformation isn't one of them. Look at previous pages in this topic for examples.
B
92
S
32
G
107
Posts: 5,280
Reputation: 69,971

Post » Mon Aug 03, 2015 7:09 pm

Ok thanks for the explanation :-)
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 11 guests