Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Pixi v4 and webgl code effect


mircodj
 Share

Recommended Posts

There are at least few options on how to do that:

- Create a similar effect using particleContainer.
- Create a renderer plugin.
- Render the effect to offscreen texture using renderer.gl context. Then use a sprite with that texture.

Most likely there are other ways how to achieve that effect also.

Link to comment
Share on other sites

1 hour ago, ivan.popelyshev said:

That demo uses gl.LINES mode, and the only renderer in pixi that can do that is Graphics, however graphics uses static buffer, and there is no dynamic option. You need custom renderer plugin for that thing.

Ok, thanks a lot for your help but please you can give me a link where I can found an example? I dont know from where I can start...

Thanks in andavanced

 

 

1 hour ago, Exca said:

There are at least few options on how to do that:

- Create a similar effect using particleContainer.
- Create a renderer plugin.
- Render the effect to offscreen texture using renderer.gl context. Then use a sprite with that texture.

Most likely there are other ways how to achieve that effect also.

Render the effect to offscreen texture using renderer.gl context. Then use a sprite with that texture.

I tried yesterday this approach based on this sample three.js & pixi but the effect render was not showed

 

Link to comment
Share on other sites

This thread might help you: https://github.com/pixijs/pixi.js/issues/4625

Start from https://github.com/pixijs/pixi-plugin-example/ , then make your way into pixi v4 internals https://github.com/pixijs/pixi.js/blob/dev/src/core/renderers/webgl/WebGLRenderer.js, and that one dependency: https://github.com/pixijs/pixi-gl-core

Yes, it is difficult. Custom renderers are welcome in pixi only if creator knows both how low-level webgl works and the pixi architecture.

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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