Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Easy lighting use blendMode and blendEquation
Started by GamingStudio17 Nov 13 2014 12:08 AM

3 replies to this topic
lighting blendequation blendmode
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

GamingStudio17

[GLOBAL: userInfoPane.html]
GamingStudio17
  • Contributor

  • 160 posts
  • Corona SDK

How to do the same in Corona SDK?
http://habrahabr.ru/post/241760/

 

Attached File  700d9f3878684fbdafe3798e1f87e1bd.png   815.43KB   3 downloads



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 22,046 posts
  • Corona Staff

Well my Russian isn't very good and I really can't tell what effect you're looking for.  But Corona SDK has supported blend modes for a long time.  See:  http://docs.coronalabs.com/api/type/ShapeObject/blendMode.html

 

Graphics 2.0 added some composite features that do more:  http://docs.coronalabs.com/guide/graphics/effects.html

 

Rob



[TOPIC: post.html]
#3

GamingStudio17

[GLOBAL: userInfoPane.html]
GamingStudio17
  • Contributor

  • 160 posts
  • Corona SDK

The problem lies in the fact that it is not clear. How to light only objects without a sky



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 22,046 posts
  • Corona Staff

It really sounds like you want an "add" blend mode, but you would have to experiment.   You have your background image normal and then draw your light images by changing their .blendMode = "add".

 

Rob




[topic_controls]
[/topic_controls]