• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0

CIE Color Space Conundrum

1 post in this topic

I have some questions regarding some confusion about color spaces, and since it is fairly graphics related, I was hopping somebody here could help me understand.

The first thing that I'm confused with is how ambiguous some of the terms for various color spaces are. It's hard to get an idea of how they relate to each other when it seems like they are the same but different. E.g. what is the difference between UV (as in YUV), U'V' (as in YU'V'), u*v* (as in L*u*v*) and U*V* (as in U*V*W*)? It seems like the CIE has defined U and V enough times to drive me bonkers.

Another thing that bothers me is that I've [url="http://wiki.patapom.com/index.php/Colorimetry#Color_Spaces"]seen[/url] YUV referred to as being device dependent, while XYZ and xyY are device independent. That makes no sense to me because [url="http://www5.informatik.tu-muenchen.de/lehre/vorlesungen/graphik/info/csc/COL_14.htm#topic13"]here[/url] it states that YUV is just a linear transformation of xyY which in turn is just a linear transformation of XYZ.

Lastly (I think), I have seen the Y in XYZ referred to as both luminance and lightness. This is extremely confusing because the Y in YUV stands for luminance while the L in LUV stands for lightness. YUV != LUV see my confusion?

This is probably just the start of my confusion. Any help in making heads or tales of this would be appreciated.

Share this post

Link to post
Share on other sites

I can’t answer all your questions, since I simply don’t know how the U’V’, u*v* and so on are defined in particular. But, I can probably tell you what Y has to do with luminance.

Let’s start at the very beginning.
As you know, each color is a combination of red, green and blue. For each, there are special receptors in the eye. Decades ago some guys conducted experiments to figure out the three corresponding basis functions for the receptors. Those three are functions of the wavelength: [formula]r(\lambda), g(\lambda), b(\lambda)[/formula]. They basically allow you tell you how much you need of R, G and B to assemble a certain color. Problem was, they needed negative red in order to produce cyan, which is why a normalization of the curves was necessary, eventually yielding the norm spectral curves [formula]\bar{x}(\lambda), \bar{y} (\lambda), \bar{z} (\lambda)[/formula] (aka. color-matching functions).

The receptors are not equally sensitive. Green for instance is much better perceived than the others (since it is in the middle of the visible spectrum). Generally speaking there is also a curve describing how responsive the human eye is to certain wavelengths or let’s say how bright something is perceived. This curve is called V-Lambda curve (or in general spectral power distribution). This curve was also experimentally conducted and is averaged over many people. The curve changes a little depending on whether you look in daylight, the dawn or at night (photopic, mesopic and scotopic vision).

Anyway, when you start calculating with light you have to decide on one thing beforehand: Consider everything radiometric (luminance is the integral over the complete spectrum, more used in physics) or photometric (luminance is the integral over the visible spectrum weighted by the V-Lambda curve, more what we need). Though, you can convert between both if you wish.

To get rid of the wave length, we simply sum up over the whole visible spectrum.
In the CIE XYZ, we have:
[formula]X = \int_{380nm}^{780nm}L(\lambda)\bar{x}(\lambda) \partial \lambda[/formula]
[formula]Y = \int_{380nm}^{780nm}L(\lambda)\bar{y}(\lambda) \partial \lambda[/formula]
[formula]Z = \int_{380nm}^{780nm}L(\lambda)\bar{z}(\lambda) \partial \lambda[/formula]
Whereas [formula] L(\lambda)[/formula] is the luminance of a light source for a given wavelength. Each light source has some sort of own luminance profile (the mix of wavelengths it emits).

Now, let’s close the circle.
The norm spectral curve [formula] \bar{y} (\lambda)[/formula] is surprisingly, roughly equal to the V-Lambda curve. Y is the integral over the visible spectrum of the norm spectral curve [formula] \bar{y} (\lambda)[/formula]. The V-Lambda curve is the weight in the photometric luminance. Thus, since [formula] \bar{y} (\lambda)[/formula] and V-Lambda look equal, their integrals (Y and the photometric luminance) are quite similar as well. Which is why Y is sometimes called luminance (though, more precisely it’s photometric luminance…).

Over the years, the light spaces were rescaled to fit better particular needs: allow distance measurements between colors, be coherent with the human perception and so on. This is the point, where I got lost, too since there are simply too much. [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]

I hope that answered at least one of your questions. [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
Best regards!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0