Comments (5)
void EffectFactory::OnLoadingResource(Effect* effect, const void* data, int32_t size, const char16_t* materialPath)
{
auto resourceMgr = effect->GetSetting()->GetResourceManager();
for (auto i = 0; i < effect->GetColorImageCount(); i++)
{
char16_t fullPath[512];
PathCombine(fullPath, materialPath, effect->GetColorImagePath(i));
effect->AddRef();
char path_[300];
::Effekseer::ConvertUtf16ToUtf8(path_, 300, fullPath);
std::string fullPathimg = cocos2d::FileUtils::getInstance()->fullPathForFilename(path_);
cocos2d::Director::getInstance()->getTextureCache()->addImageAsync(fullPathimg, [=](cocos2d::Texture2D* texN) {
if (texN != nullptr)
{
auto resource = resourceMgr->LoadTexture(fullPath, TextureType::Color);
SetTexture(effect, i, TextureType::Color, resource);
}
effect->Release();
}, fullPathimg,false);
}
new thread do resource(texture) load (base on cocos)
from effekseerforcocos2d-x.
.efkmodel have a very amazing size ...
from effekseerforcocos2d-x.
Android(Virtualbox)
Is it no problem on Android in a smart phone?
from effekseerforcocos2d-x.
no problem,only few low-end phone same as vittualbox.
from effekseerforcocos2d-x.
It should add an option to change the number of instance.
from effekseerforcocos2d-x.
Related Issues (20)
- Default handle value set in ::efk::EffectEmmiter is a valid value HOT 4
- [Important notice] Please submit issues to Effekseer main repository
- EffectEmitter::setSpeed not working HOT 3
- iOS crash on call to VertexBuffer::Unlock HOT 4
- Frambuffer copy for background distorting effects failing on iOS HOT 2
- Crash when run effect HOT 4
- Issue with color multiplication in cocos version HOT 4
- NANs while rendering trail HOT 3
- Texture scroll issue HOT 3
- Distortion not run on Android. Particle not run on IOS. HOT 7
- cocos2d-x v3 support HOT 2
- Difficult to update to the version 1.6x (v3) HOT 4
- Scheduler Update method order HOT 2
- Texture Ref error HOT 4
- Base Render Setting->Emissive Scaling not working in cocos HOT 2
- effect cannt display correct on scrollview HOT 2
- [Metal] Cannot compile with commit ab18305 HOT 1
- Port to Axmol engine HOT 2
- Infinite recursion if effect is played with an offset HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from effekseerforcocos2d-x.