Jump to content

Is it possible to draw a Mesh or SimplePlane from 8 corner points?


Recommended Posts

Hey there,

I`m currently working on a perspective transform with pixi. I found the example here: https://pixijs.io/examples/#/plugin-projection/quad-bi.js

Problem: The image is not drawn cleanly on the edge, even when setting antialias: true 

So now i thought about using a mesh or SimplePlane to make the edges smooth (example: https://codepen.io/osublake/pen/gLGYxx)

I only have 8 points to draw the mesh. Is that possible?

What would be the best approach to this?




Link to comment
Share on other sites

@ivan.popelyshev Thanks for your reply.

Tbh I don`t know if I need it. 

I just want to make the edges cleaner.
The 2D quad bilinear gives me 8 observable points, so I thought it might be possible to create a SimplePlane from these (I thiought the verticles would help), but I couldn't do it.

I`m a beginner so I don`t know if that even makes sense.

How would you solve the problem? The grid gutter in the picture should be interchangeable with any picture.






Link to comment
Share on other sites

Just in case, there's a difference between bilinear (Sprite2s) and usual homogeneous projection (Sprite2d), and in your case it should be homogeneous. "antialias:true" webgl context flag will work with this.

Where are those 8 points here, i see only 4

Edited by ivan.popelyshev
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...