PixiJS Part 4: Texture Loading

  Рет қаралды 18,606

CJ Gammon

CJ Gammon

Күн бұрын

PixiJS is a 2D Graphics Rendering library for the web. In this episode I discuss how to load Textures into the Texture Cache and access them for use in Sprites.
Version 5 was used in this video, but may be compatible with some previous versions as well.
Download the demo files here:
github.com/div...

Пікірлер: 9
@Cazineer
@Cazineer 4 жыл бұрын
Method chaining on loader does not work for me. I just get "on is not a function". I checked the official docs and did not see any reference to an "on" method so I suspect this had been removed in the latest version. pixijs.download/dev/docs/PIXI.Loader.html
@stewheart
@stewheart Жыл бұрын
these are really useful, thanks
@eotikurac
@eotikurac 5 жыл бұрын
wanted to make an image that has a mask on top which allows a portion of the image to blur on hover. works okay with svg masking but it's heavy on the cpu and completely unusable when there's a list of images. i watched your pixijs videos and started thinking it might solve the performance issues i had but the docs are unfathomable, for me at least.
@mpbMKE
@mpbMKE 5 жыл бұрын
Same problem as earlier. Getting a TypeError "Cannot read property 'add' of undefined" on the line containing "loader.add".
@mpbMKE
@mpbMKE 5 жыл бұрын
Aha! I must have missed where you removed "render.renderer(stage);" in the animate function. 🤕
@HarpreetSingh-cz2zh
@HarpreetSingh-cz2zh 5 жыл бұрын
Great video. So we should be using the loader approach because it gives us more control over the normal.. texture.from approach? Thank you, kind of confused because last video you used texture.from and it was much simpler.
@CJGammon
@CJGammon 5 жыл бұрын
Yes use a loader, from is more of a convenience shortcut method.
@shanmugamm4209
@shanmugamm4209 4 жыл бұрын
Plz help unable install and run pixi
@kirillyerenkov3234
@kirillyerenkov3234 5 жыл бұрын
Yes!:)
PixiJS Part 5: Sprites
12:13
CJ Gammon
Рет қаралды 17 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 82 М.
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 57 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 1,9 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 7 МЛН
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
AI15: Create 3D Websites with Dora AI & GPT-4o
6:34
CJ Gammon
Рет қаралды 6 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 811 М.
What's The Longest Word You Can Write With Seven-Segment Displays?
8:56
Adobe Firefly 2 - New Tips and Tricks
8:02
CJ Gammon
Рет қаралды 10 М.
Pixi.js: Preloading Assets
13:10
Dower Chin
Рет қаралды 16 М.
The Weird History of JavaScript
12:09
Fireship
Рет қаралды 1,2 МЛН
My Initial Impresson Of Go
12:39
TheVimeagen
Рет қаралды 91 М.
FizzBuzz: One Simple Interview Question
7:18
Tom Scott
Рет қаралды 3,5 МЛН
WebXR Made Easy with AI
7:24
CJ Gammon
Рет қаралды 8 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 650 М.
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 57 МЛН