• Content Count

  • Joined

  • Last visited

About jSwtch

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. jSwtch

    Pixi.js only on desktops?

    Hello, I want to make a static site that uses pixi to render some graphics. However, I don't want to load the library on mobile devices. I only want to graphics to appear when a screen size is some min width, and I don't want any overhead for the smaller devices. I use Hugo for static site generation. How would I implement this condition?
  2. jSwtch

    Animation between position change

    Maybe this could help: https://github.com/davidfig/pixi-viewport
  3. jSwtch

    Is pixi.js dying?

    I don't think it's dying - just the opposite! Nearly every forum/thread I have read says "workflow, flexibility, and performance will be greatly improved in V5"
  4. jSwtch

    Recreating a tilt effect

    Hello, I am interested in recreating this effect here: https://gijsroge.github.io/tilt.js/ in pixijs. Is this best modeled with a skew or a scale? I am not really sure where to start. I have been looking at https://pixijs.io/examples/?v=release#/projection. Is 'containerSprite.proj.mapBilinearSprite(containerSprite, quad)' more expensive to run than 'containerSprite.proj.mapSprite(containerSprite, quad)'? The only difference I see is the ability to wrap around backwards, which isn't a use case I need.
  5. jSwtch

    Creating sprite from texture

    Hello, I have seen different methods for creating a sprite from a texture. Is there a difference? I am mainly looking at PIXI.Texture.fromImage(... vs renderer.generateTexture(... sprite = new PIXI.Sprite( new PIXI.Texture.fromImage( "...img/path" ) ); app.stage.addChild(sprite); let texture: PIXI.Texture = renderer.generateTexture("...img/path"); let sprite: PIXI.Sprite = new PIXI.Sprite(texture); stage.addChild(sprite); Also for particle emitters is it better to use sprites or textures? I see that (https://github.com/pixijs/pixi.js/wiki/v4-Performance-Tips😞 "textures are automatically managed by a Texture Garbage Collector". However most examples of particle emitters I see seem to use sprites. Edit: I see that sprites are textures
  6. jSwtch

    Text is searchable?

    Thanks for the replies!
  7. jSwtch

    Text is searchable?

    Hello, When I use pixi to render text, is that text seen by the search engine? I am using vue.js with server side rendering - so I know my pages are prerendered. Does this work with pixi?