codeandweb / cocos2d-x-dynamic-lighting-example Goto Github PK
View Code? Open in Web Editor NEWCocos2d-x tutorial: Sprite animation with dynamic light using normal maps - SpriteIlluminator
Cocos2d-x tutorial: Sprite animation with dynamic light using normal maps - SpriteIlluminator
Is there have any lighteffect active without using normal map?
It looks like this only supports one light source out of the box.
Not sure here but if LightEffect::prepareForRender() was rewritten to somehow work with several light positions instead of just one, that could work? Any other pitfalls? Does the shader itself need to be updated?
Hi there, I have revived a project that uses some of your effect sprite classes and I updated it to Cocos2d-x v3.10 but I get a pink screen as soon as the update occurs (I see the scene correctly for a split-second).
Do you know if this is an issue with changes made to Cocos2d-x? Would you be able to update the project to work with v3.10 in order to confirm?
If not, then I will make more effort :) It's just that you know more about this than I do...
EDIT: OK I've disabled the use of the dynamic lighting classes in my game and I still get the pink screen, so this issue is elsewhere, sorry for disturbing you.
Hi @CodeAndWeb:
I'd like to know if this example code works fine with iOS or MAC. I'm seeing on EffectSprite/Effect.h this:
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_WP8 || CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.