article thumbnail

Accessing texture data efficiently

Unity Blog

Learn about the benefits and trade-offs of different ways to access the underlying pixel data of textures in your Unity project.

Texture 119
article thumbnail

How to create a texture?

Cocos

As from the view data amplitudes:number[] = []; create a texture for uniform sampler2D soundTex; ? I want to send the texture to the shader mat.setProperty("soundTex", soundTex);```

Texture 40
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

How to create a texture?

Cocos

Like this, this create a red picture.

Texture 40
article thumbnail

Weird Texture issue

Cocos

There is one obvious difference about Android, which is this (in CCPlatformMacros.h ): /** @def CC_ENABLE_CACHE_TEXTURE_DATA * Enable it if you want to cache the texture data. *

Texture 52
article thumbnail

Comparing BCn texture decoders

The Astronauts

PC GPUs use “BCn” texture compression formats (see “Understanding BCn Texture Compression Formats” by Nathan Reed or “Texture Block Compression in Direct3D 11” by Microsoft). After all, isn’t that done by the GPU, magically and efficiently? Normally, yes.

Texture 52
article thumbnail

How to create a texture?

Cocos

this is how I get the data audioSource.getPCMData(0).then(dataView then(dataView => { if (!dataView)

Texture 40
article thumbnail

Getting performance data in a log file

Cocos

I see statistics e.g. Framerate, Draw Call, GFX Texture Mem shown in the screen when I run benchmarks. I am looking at improving performance of libcocos engine and I am using the cocos-benchmark as measuring performance. Is there a way to capture these stats in a log file or something? What file I need to modify to capture this?

Data 40