0

Corona Graphics 2.0: Composite.reflect

Posted by Dr. Burton on June 30, 2014 in Corona, Mobile |

While I have made an effort to document all of the composite, effects, and generators for Graphics 2.0 in my Corona books (see the Books tab above), there were a few that do not have a direct translation to a similar effect in Photoshop or other graphic editing tool.  Thus, I thought I would take this opportunity to provide a little bit of guidance for these effects.

In this post we will look at the composite.reflect effect.  To clearly see what was happening, I created a simple graphic to show the impact of light, dark, and grayed areas when the texture is applied to an image.
My base image is the book cover for Learning Mobile Application & Game Development with Corona.  The texture image is a simple png file that goes from red, to green, to blue, to grey.

LMGADCtexture2

 

 

 

 

The output of reflect is similar to using a colored light on an object.  The end product will show the color saturated with the texture color.

output

 

 

 

 

 

The Code Example

local object = display.newRect( 100, 100,600, 600)
object.x = display.contentCenterX
object.y = display.contentCenterY
-- Set up the composite paint (distinct images)
local compositePaint = {
    type="composite",
    paint1={ type="image", filename="LMGADC.png" },  -- bottom image
    paint2={ type="image", filename="texture2.png" }     -- top image
    }

-- Apply the composite paint as the object's fill
object.fill = compositePaint

-- Set a composite blend as the fill effect
object.fill.effect = "composite.reflect"
									

For more details about various composites, effects, and generators, check out Learning Mobile Application & Game Development with Corona!

 

 

 

 

0

Corona Graphics 2.0: Composite.phoenix effect

Posted by Dr. Burton on June 30, 2014 in Corona, Mobile |

While I have made an effort to document all of the composite, effects, and generators for Graphics 2.0 in my Corona books (see the Books tab above), there were a few that do not have a direct translation to a similar effect in Photoshop or other graphic editing tool.  Thus, I thought I would take this opportunity to provide a little bit of guidance for these effects.

In this post we will look at the composite.phoenix effect.  To clearly see what was happening, I created a simple graphic to show the impact of light, dark, and grayed areas when the texture is applied to an image.
My base image is the book cover for Learning Mobile Application & Game Development with Corona.  The texture image is a simple png file that goes from black, to dark grey, to light grey to white.

LMGADCtexture

 

 

 

 

The resulting image for the phoenix effect shows that the composite reverses the image for the black portion, less so for the grey portions, while the white portion is not changed.

output

 

 

 

 

 

The code example

-- Create the object
local object = display.newRect( 100, 100,600, 600)
object.x = display.contentCenterX
object.y = display.contentCenterY
-- Set up the composite paint (distinct images)
local compositePaint = {
    type="composite",
    paint1={ type="image", filename="LMGADC.png" },  -- bottom image
    paint2={ type="image", filename="texture.png" }     -- top image
    }

-- Apply the composite paint as the object's fill
object.fill = compositePaint

-- Set a composite blend as the fill effect
object.fill.effect = "composite.phoenix"
									

For more details about various composites, effects, and generators, check out Learning Mobile Application & Game Development with Corona!

0

Podcasting Microphones and Accessories for under $100

Posted by Dr. Burton on December 16, 2013 in Education, Technology |

Over the past couple of years my family and I have gradually been producing more and more podcast. Of course the primary element of any successful podcast is quality audio.

To achieve quality audio, a quality microphone is the most important piece of equipment. In this area you can spend a lot of money, but we have found a great deal of success with the very reasonably priced Blue Microphones Snowball USB Microphone

A second key piece of equipment is a 6-Inch Clamp On Pop Filter. For less than $15 (or less if you use a pair of pantyhose, a coat hanger and duck-tape) you can take the sound quality to an even higher level of quality. The filter greatly reduces pops and cracks that can happen as we speak.

If you are regularly interviewing others through your computer or just so that you can do effective editing, a good set of headphones is essential to avoid feedback.

If your interested in getting started with all of these items, you can get a nice set through Amazon:

We are getting ready to setup a second recording station at Burtons Media Group due to our increase in pod and vod casting.  We have been so happy the Blue Microphone Snowball, we plan to continue using them for our new station.

I have friends in the recording industry that have spent hundreds of thousands of dollars on equipment.  But they are recording for the music or movie industries.  Fortunately for the podcast/vodcast industries, we can get started for a lot less!

So, what do you use?  How happy are you with the equipment and cost?

Tags: , , ,

0

Corona SDK Graphics 2.0: Going 2.5D

Posted by Dr. Burton on November 24, 2013 in Corona, Education, Game Development, Mobile |

I can’t tell you how excited I was when I learned that Corona would support 2.5D or Isometric game development.  Now that the new graphics engine is available, I figured I would jump into it and start making games!

Of course there is a learning curve to making games.  The first thing I wanted to know was how to make a circle appear as if it were 2.5D.  Easier said than done.  For my first attempt I wanted to simulate an attack radius.  Sounds simple, right? Well after a night of coding, I had learned a great deal, which I have summarized in this 11 minutes tutorial!

Please note that all of the changes to the object are done to the objects path parameter, not the object itself. We are just changing it’s appearance, not the actual object.

 

Corona SDK Graphics 2.0: Making 2.5D or Isometric with Vector and Bitmap Graphics.
Runtime
10:50
View count
1,510

 

display.setStatusBar(display.HiddenStatusBar)
--Initially I tried vector based graphics.  Circles don't work since they do not have a path parameter (or corners).  Rectangles work fine.
--local circle = display.newCircle(display.contentCenterX, display.contentCenterY, 100)
--local square = display.newRect(display.contentCenterX, display.contentCenterY, 200, 200)
--So we moved on to bitmap, which work great!
local circle = display.newImage("circle.png")
circle.x = display.contentCenterX
circle.y = display.contentCenterY
circle.alpha = .8
circle:scale(2,2)
w= circle.width*.33
h=circle.height*.33
transition.to( circle.path, { time=2000, x1=w, y1=h,  x2 =-w, y2 = -h, x3=w, y3=-h, x4=-w, y4=h } )
									


 

Tags: , , ,

0

Learning QuickBooks 2013

Posted by Dr. Burton on November 17, 2013 in QuickBooks, Tutorials |

Last year was a pretty good year for Burtons Media Group.  Our main area of growth was in the number of authors working with us.  As dealing with royalty payments is a rather complex issue (nearly as bad as having employees), we decided to begin the migration from a spreadsheet to track all of our finances to QuickBooks (you can purchase an online version from Amazon here).  It was our hope that by making the switch, taxes (we use and have used TurboTax for years)
would be simplified.

We should point out that Dr. Burton has an undergraduate degree in business, so there is a basic understanding of accounting principles and double entry book keeping as we begin this process.

With four new textbooks in production, the switch over project was placed at a low priority.  We have decided to start the new year off with QuickBooks.  To be ready for the change-over, we have started setting up our accounts.  The following tutorial is the first step in that conversion process.

Introduction to QuickBooks 2013
Runtime
7:12
View count
81

Copyright © 2010-2014 Burtons Media Group All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.2.4.1, from BuyNowShop.com.

Privacy Policy