Ebooks File Developing Graphics Frameworks With Java and OpenGL 1st Edition Lee Stemkoski All Chapters
Ebooks File Developing Graphics Frameworks With Java and OpenGL 1st Edition Lee Stemkoski All Chapters
com
OR CLICK BUTTON
DOWLOAD NOW
More products digital (pdf, epub, mobi) instant
download maybe you interests ...
https://ebookmeta.com/product/computer-graphics-programming-in-
opengl-with-java-3rd-edition-v-scott-gordon/
https://ebookmeta.com/product/introduction-to-computer-graphics-
using-opengl-and-java-3rd-edition-karsten-lehn/
https://ebookmeta.com/product/beginning-java-game-development-
with-libgdx-create-a-great-variety-of-games-quickly-and-
efficiently-with-libgdx-1st-edition-lee-stemkoski/
https://ebookmeta.com/product/computer-graphics-programming-in-
opengl-with-c-2nd-edition-v-scott-gordon/
OpenGL to OpenGL ES ■Navigating Graphics Transitions
Kameron Hussain■ Frahaan Hussain
https://ebookmeta.com/product/opengl-to-opengl-
es-%ef%bc%9anavigating-graphics-transitions-kameron-
hussain%ef%bc%8c-frahaan-hussain/
https://ebookmeta.com/product/opengl-build-high-performance-
graphics-learning-path-1st-edition-muhammad-mobeen-movania/
https://ebookmeta.com/product/opengl-foundations-taking-your-
first-steps-in-graphics-programming-kameron-hussain/
https://ebookmeta.com/product/logging-frameworks-in-java-1st-
edition-neha-kaul/
https://ebookmeta.com/product/encyclopedia-of-computer-graphics-
and-games-1st-edition-newton-lee/
Developing Graphics Frameworks
with Java and OpenGL
Developing Graphics Frameworks
with Java and OpenGL
Lee Stemkoski
James Cona
First edition published 2022
by CRC Press
6000 Broken Sound Parkway NW, Suite 300, Boca Raton, FL 33487-2742
and by CRC Press
4 Park Square, Milton Park, Abingdon, Oxon, OX14 4RN
CRC Press is an imprint of Taylor & Francis Group, LLC
© 2022 Lee Stemkoski, James Cona
Reasonable efforts have been made to publish reliable data and information, but the author and publisher cannot assume
responsibility for the validity of all materials or the consequences of their use. The authors and publishers have attempted to
trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to
publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know
so we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or utilized
in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopying,
microfilming, and recording, or in any information storage or retrieval system, without written permission from the
publishers.
For permission to photocopy or use material electronically from this work, access www.copyright.com or contact the
Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. For works that are not
available on CCC please contact [email protected]
Trademark Notice: Product or corporate names may be trademarks or registered trademarks and are used only for
identification and explanation without intent to infringe.
DOI: 10.1201/9781003153375
Typeset in Minion
by KnowledgeWorks Global Ltd.
Contents
v
vi ◾ Contents
INDEX, 295
About the Authors
Lee Stemkoski is a professor of mathematics and computer science. He earned his Ph.D.
in mathematics from Dartmouth College in 2006 and has been teaching at the college level
since. His specialties are computer graphics, video game development, and virtual and
augmented reality programming.
James Cona is an up and coming software engineer who studied computer science at
Adelphi University. Some of his specific interests include music, video game programming,
3D graphics, artificial intelligence, and clear and efficient software development in general.
ix
Chapter 1
Introduction to
Computer Graphics
The importance of computer graphics in modern society is illustrated by the great quan-
tity and a variety of applications and their impact on our daily lives. Computer graphics
can be two-dimensional (2D) or three-dimensional (3D), animated, and interactive. They
are used in data visualization to identify patterns and relationships, and also in scientific
visualization, enabling researchers to model, explore, and understand natural phenomena.
Computer graphics are used for medical applications such as magnetic resonance imag-
ing (MRI) and computed tomography (CT) scans, and architectural applications, such as
creating blueprints or virtual models. They enable the creation of tools such as training
simulators and software for computer-aided engineering and design. Many aspects of the
entertainment industry make use of computer graphics to some extent: movies may use
them for special effects, generating photorealistic characters, or rendering entire films,
while video games are primarily interactive graphics-based experiences. Recent advances
in computer graphics hardware and software have even helped virtual reality and aug-
mented reality technology enter the consumer market.
The field of computer graphics is continuously advancing, finding new applications,
and increasing in importance. For all these reasons, combined with the inherent appeal
of working in a highly visual medium, the field of computer graphics is an exciting area to
learn about, experiment with, and work in. In this book, you’ll learn how to create a robust
framework capable of rendering and animating interactive 3D scenes using modern graph-
ics programming techniques.
Before diving into programming and code, you’ll first need to learn about the core
concepts and vocabulary in computer graphics. These ideas will be revisited repeatedly
throughout this book, and so it may help to periodically review parts of this chapter to
keep the overall process in mind. In the second half of this chapter, you’ll learn how to
install the necessary software and set up your development environment.
DOI: 10.1201/9781003153375-1 1
2 ◾ Developing Graphics Frameworks with Java and OpenGL
FIGURE 1.1 Three-dimensional scene with geometric objects, viewing region (white outline), and
virtual camera (lower right).
may contain multiple buffers that store different types of data for each pixel. At a mini-
mum, the frame buffer must contain a color buffer, which stores RGB values. When render-
ing a 3D scene, the frame buffer must also contain a depth buffer, which stores distances
from points on scene objects to the virtual camera. Depth values are used to determine
whether the various points on each object are in front of or behind other objects (from the
camera’s perspective), and thus whether they will be visible when the scene is rendered. If
one scene object obscures another and a transparency effect is desired, the renderer makes
use of alpha values: floating-point numbers between 0 and 1 that specify how overlapping
colors should be blended together; the value 0 indicates a fully transparent color, while the
value 1 indicates a fully opaque color. Alpha values are also stored in the color buffer along
with RGB color values; the combined data is often referred to as RGBA color values. Finally,
frame buffers may contain a buffer called a stencil buffer, which may be used to store values
used in generating advanced effects, such as shadows, reflections, or portal rendering.
In addition to rendering 3D scenes, another goal in computer graphics is to create
animated scenes. Animations consist of a sequence of images displayed in quick enough
succession that the viewer interprets the objects in the images to be continuously moving or
changing in appearance. Each image that is displayed is called a frame. The speed at which
Another random document with
no related content on Scribd:
the different colours. The diagram will tell us. Suffice it to say, that
one colour will only differ from another and from white in brightness.
It is a very remarkable fact how many people who are defective
in colour vision pass through a good part of their lives without being
definitely aware of it. It is very doubtful whether, in the majority of
cases, they themselves discover it. They may quite possibly attribute
the descriptions of colour which they hear, and which appear to
them absolutely false or meaningless, as due to mental or moral
defects in their friends. I have had two cases of this recently. One
was a gentleman of seventy-four, who had no conception that he
had anything but normal colour vision; his daughters, however, had
a suspicion that something was not quite right in it, and after a good
deal of persuasion brought him to me to examine. The first mistake
that he made was to state that he was sitting on a black velvet chair,
whereas the seat was a deep crimson plush. He laughed at his
daughter’s description of the mistake he made, and declared he was
only colour ignorant, and that she was the one who was colour
blind. The examination showed that colour ignorant he was, but that
the ignorance was due to complete red-blindness. For the seventy-
four years he had lived he was unaware of his deficiency, suspecting
it in others, and it was only an accidental circumstance which made
him acquainted with the true state of his colour perception. Another
elderly gentleman, in a high position in life, was also accidentally
tested, and he proved to be completely green-blind. He, too, was
quite unaware of his defect, and protested that, yachtsman as he
was, he would never mistake a ship’s lights; but a very brief test
showed his friends who were with him that his declaration had to be
received with a certain amount of reservation. Others there are who
certainly do know that some peculiarity exists in their sense of
colour, and, foolish as it may appear to be—though, after all, it is
quite consistent with a sensitive nature—they have tried to hide their
defect from their fellow-creatures. Such examples, no doubt, some
of my audience have met with, and experience tells me that they
have just as much reluctance to pass an hour in my darkened room
as they would have to occupy a police cell. In those few cases that
have come voluntarily to me for examination, the peculiarity in
colour sense was first brought to notice by the patient—if patient I
may call him—failing to distinguish between cherries and the cherry
leaves, or strawberries and the strawberry leaves. Such mistakes
committed publicly are usually the source of unbounded merriment
and curiosity to schoolboys when made by their schoolfellows, and I
am bound to say that even persons of graver years are not unapt to
be amused at what they consider to be a shortcoming in their fellow-
creatures. To the student of colour vision the discovery of curious
cases of colour deficiency is looked upon in a very different light—a
good case of colour blindness, or still better one of monochromatic
vision, is eagerly sought after, with the hope of submitting it to a
rigid examination. When we look at the diagram (Fig. 16) we shall
find why it is that the colour blind describe the spectrum as they do.
Literally for those whose vision is dichromic, it is made up of two
sensations alone, and the colours to which these sensations give rise
are mixed throughout a large part of the spectrum, the pure
unmixed sensations being at each end of the spectrum as they are in
normal colour vision. The annexed diagram (Fig. 18) gives the
curves for a red-blind person as made by observations under Clerk
Maxwell’s directions. The standard colours here have been badly
selected, for one of them stimulates the two sensations possessed.
Fig. 18.
An easy and instructive experiment can be made to give an idea
of the kind of colour that these colour blind imagine as white,
whether they be red-, green-, or violet-blind. (For those who have
only monochromatic vision, as before stated, white is coloured with
the one colour they possess.) Three slits are now in the spectrum,
one near the extreme end of the red, another well in the violet, and
the third in that part of the spectrum in which the green-blind see
their neutral colour (see page 66). With the three colours issuing
from these apertures a match is made with the white patch, and in
this case the match is made as seen from a distant point, so that the
resulting deductions may be true to the audience. If a colour-blind
person be in this theatre, he will agree with me that the match is as
correct to him as it is to myself and the rest of you. So far we could
not distinguish his colour perception from the normal, but if he be
red-blind, and the red slit be covered, he will still say that the match
holds good, for, as a matter of fact, the red with which we helped to
build up the white is non-existent to him. The white that he now
sees is to us the greenish-blue patch which the mixed violet and
green make. If he be a green-blind person he will tell us the colour
is a very pale blue, but when the green slit is covered up and the red
uncovered, the match will once more be correct, though the purple,
formed by the mixture of red and blue, will appear to him to be a
little darker than the white. This is what one would expect, for you
must recollect this green in the spectrum he would call white or
grey. If then, from what to him is also white, though formed by the
rays coming through the three slits, we take away a certain amount
of degraded white (green to us), he must still see white, but darker.
We have, however, met with what is an apparent paradox. The
green, coming through the now covered slit, he calls white, as he
also does the purple. To impress this point more strongly upon you, I
will place in front of the green slit a small prism which has an angle
of about one and a-half degrees. This is just sufficient to throw the
green colour on the neighbouring white surface. Here we have both
the colours which the green-blind calls white side by side. If the
brightness of each be the same, he would see no difference in them.
Is it possible that on any theory this can be correct? To explain this
apparent paradox, and without reference to the mathematical proof
that white subtracted from white leaves white, we have only to look
at our diagram (Fig. 16), and it is immediately apparent how it
arises. The red and the blue curves cut at this point; and if we take
away the green sensation entirely, the residue will be a mixture of
the red and blue, which is the identical purple colour forming the
patch.
If we are wishful to ascertain the colour that the violet-blind calls
white, we have only to cover up the violet slit and a yellow is left
behind as the result. I would have you remark that these colours
which are seen as white would only be of the hues shown you,
supposing the colour sensations were identical with those in normal
vision. Whether this is the case we cannot absolutely say, and the
only way in which this can be authoritatively settled is by examining
some person who has normal colour vision in one eye and defective
colour sense, not due to disease, in the other. One such person has
been examined abroad, but in what way I am unable to say. It is
recorded that he sees the red end of the spectrum as yellow with
the eye that is defective. Another person I have heard of in England,
but so far have not had the good fortune to get hold of him for
examination. When I can lay my hands on him, he will be able to
help to confirm or disprove what should be a general rather than a
particular case.
So far I have only met with what appears to be one genuine
case of violet blindness. It is very remarkable, on account of the
eccentricity of the colour nomenclature. The only two colours which
the subject saw were red and black. He named all greens and blues
as black, the distinction between the two being that the former was
“bright black” and the latter “dark black.” Yellow he called white, and
a glance at Fig. 16 will show that at this place in the spectrum the
neutral point of a violet-blind should occur. By shifting the slit
gradually into the green, he called it grey, instead of “bright black,”
though it did not match the white patch when darkened. He called a
green light a “bright black” light. We shall have to refer to this case
when we are describing other investigations.
CHAPTER VI.
Another mode of exhibiting colour blindness, and one of the first
adopted, is by making mixtures of colours with rapidly rotating
colour discs. In my own experiments I have chosen a red, which is
scarlet, over which a wash of carmine has been brushed. It has a
dominant wave-length of 6300. The green is an emerald-green, and
has a dominant wave-length of 5150. The blue is French ultra-
marine, with a dominant wave-length of 4700. The card discs, of
some 4 inches diameter, are coated with these colours as pastes,
and by making an incision in them radially to the centre, as before
described, and inter-locking them, the compound disc can be caused
to show sectors of any angle that may be required. Outside these
are the discs of black and white, the proportions of which can be
altered at will.
The light thrown on the rotating sectors being that from an
electric arc light, normal vision requires 118° of red, 146° of green,
and 96° of blue to match a grey made up of 75 parts of white and
285 parts of black. For the last two numbers a correction has been
made to allow for the small amount of white light reflected from the
black surface. This correction has also been made in the subsequent
matches which will be described. Colour mixtures such as these are
conveniently put in the form of equations, and that given will then
be shown as follows—
118 R + 146 G + 96 U = 75 W + 285 B.
(Here R, G, U, W, and B are used to indicate Red, Green, Blue,
White, and Black.)
This match was exact also for all the colour blind, for the
deficiency in one grey is also a deficiency in the other. With a red-
blind, however, very different matches can be made, as the red
pigment is a complex colour. There is in it, besides red, a certain
amount of yellow, whilst in the green there is, besides green, a small
amount of a red and a larger amount of yellow. The yellow will not
only stimulate the green sensation, but also the red where it is
present. Although in complete red-blindness the red sensation is
totally absent, we may expect that a mixture of red and blue, as well
as of green and blue, will enable a match to be made of the grey
produced by the mixture of white and black.
This was the case. We have the following proportions—
295 R + 65 U = 45 W + 315 B.
When the green disc is substituted for the red, the red-blind made
the following mixture—
229 G + 131 U = 120 W + 240 B.
It is worth noticing that the amount of blue in the first mixture is
about half that required for the second. This tells us that the amount
of green sensation stimulated in the first case is much less than in
the second. As red can be substituted for green, it should follow that
green, when rendered darker, should match the red. To try this a red
disc replaced the black disc, and a black disc replaced the blue. The
following match was then made—
131 G + 229 B = 340 R + 20 W.
It seems impossible to believe that these mixtures, so dissimilar in
colour, could ever form a satisfactory match. This last equation might
have been derived from the two first, in which case it would have
stood—
137 G + 223 B = 342 R + 18 W.
By a completely green-blind the following mixtures were made—
251 R + 109 U = 62 W + 298 B,
and
277 G + 83 U = 107 W + 253 B.
In this case 363 Green are equivalent to 251 parts of Red mixed with
78 of White and 34 Black. The difference in the matches made by
the two types of colour blindness is very evident. In the one case the
amount of red required is much greater than the green, and in the
other vice versâ. Another instance may be given of colour matches
made, by means of discs, by a partially green-blind person, whose
case will be more fully described when we treat of the luminosity of
the spectrum to the different classes of colour vision.
His matches were as follows—1st, That of the normal vision.
2nd,—
160 R + 80 G + 120 U = 72 W + 288 B.
The green was then altered to 200, when the following made a
match—
65 R + 200 G + 95 U = 72 W + 288 B.
Using these two equations, we have the following curious result—
that 120 G was matched by 95 R + 25 U. As the green disc is nearly
twice as luminous as the red to normal colour vision, this equation
confirms the result otherwise obtained, that his blindness to colour is
a deficiency in the green sensation. No mixtures of blue and red, or
blue and green, would match a grey formed by the rotation of the
black and white sectors.
I must now introduce to your notice a different method of
experimenting with colour vision. If we throw the whole spectrum on
the screen, and ask a person with normal vision to point out the
brightest part, he will indicate the yellow, whilst a red-blind will say
the green, and so on. This tells us that the various types of colour
blind must see their spectrum colours with luminosity differing from
that of the normal eye. The difference can be measured by causing
both to express their sense of the brightness of the different parts of
the spectrum in terms of white light, or of one another. Brightness
and luminosity are here used synonymously. On the two small
screens are a red and a green patch of monochromatic light—a look
at the green shows that it is much brighter than the red. Rotating
sectors, the apertures of which can be opened or closed at pleasure
during rotation, are now placed in the path of the green ray. The
apertures are made fairly small, and the green is now evidently
dimmer than the red. When they are well open the green is once
more brighter. Evidently at some time during the closing of the
apertures there is one position in which the red and green must be
of the same brightness, since the green passes through the stage of
being too light to that of being too dark. By gradually diminishing
the range of the “too open” to “too closed” apertures we arrive at
the aperture where the two colours appear equally bright. The two
patches will cease to wink at the operator, if we may use such an
unscientific expression, when equality in brightness is established.
This operation of equalising luminosities must be carried out quickly
and without concentrated thought, for if an observer stops to think,
a fancied equality of brightness may exist, which other properly
carried out observations will show to be inexact. Now, instead of
using two colours, we can throw on a white surface a white patch
from the reflected beam, and a patch of the colour coming through
the slit alongside and touching it. The white is evidently the brighter,
and so the sectors are placed in this beam. The luminosity of (say) a
red ray is first measured, and the white is found to require a certain
sector aperture to secure a balance in brightness. We then place
another spectrum colour in the place of the first, and measure off in
degrees the brightness of this colour in terms of white light, and we
proceed similarly for the others. Now how are we to prove that the
measures for luminosity of the different colours are correct? Let us
place three slits in the spectrum, and by altering the aperture of the
slits make a mixture of the three rays so as to form white. The
intensity of this white we can match with the white of the reflected
beam. We can then measure the brightness (luminosity) of the three
colours separately, and if our measures are correct there is primâ
facie reason to suppose that they will together make up the
brightness of the white. Without going through this experiment it
may at once be stated that the reasoning is correct, for within the
limits of error of observation they do so. Having established this
proposition, we can next compare inter se, the brightness of any or
all of the rays of the spectrum by a preliminary comparison with the
reflected beam of white light. As in the colour patch apparatus all
colours and principal dark lines of the solar spectrum are known by
reference to a scale, in making a graphic representation of the
results, we first of all plot on paper a scale of equal parts, and at the
scale number where a reading is made, the aperture of the sectors
in degrees is set up. Thus, suppose with red light the scale number
which marked the position of the slit was 59, and the aperture 10°,
we should set up at that scale number on the paper a height of 10
on any empyric scale. If in the green at scale No. 38 the sectors had
to be closed to 7°, we should set up 7 at that number on the scale.
When observations have been made at numerous places in the
spectrum, the tops of these ordinates, as they are called, should be
joined, and we then get the observed curve of luminosity for the
whole spectrum. For convenience’ sake we make the highest point
100, and reduce the other ordinates in proportion. For some
purposes it may be advantageous to give the luminosity curve in
terms of a scale of wave-lengths. For our purpose, however, it is in
general sufficient to use the scale of the instrument.
Fig. 19.
Can we in any way find from these methods the colour sensation
curves? I think we can. Suppose we have a second instrument
exactly like the first placed side by side with it, we can then throw
two patches of colour on the two adjacent white surfaces, and we
can mix with either, or both of them, as much white light as we
choose. From the second instrument let us throw all the spectrum
colours in succession on to the one surface, and on to the other the
three primary colours mixed in such proportions as to match them
accurately. This plan is, I venture to think, a better way of obtaining
the value of colours in terms of standard colours than that adopted
by Maxwell. This method gives the values directly, and not by
calculation from matches with white. Let us place one slit near each
of the extreme ends of the spectrum; that in the red near the red
lithium line, and another a little beyond G in the violet of the
spectrum, whilst the third slit should be in the exact position in the
green, where the green-blind sees grey. Now it might be a matter of
dispute as to whether one was entitled to make this last one of the
positions for the slits, for we use it entirely on the assumption that
two of the colour sensations which we suppose we possess are
identical with those of the green-blind. This might be, or might not
be, the case; but I think it can be shown very easily that the
assumption we are making is more than probably exact. Having the
slits in these positions, we may endeavour to match the spectrum
orange. We mix the red and the green lights together, and find that
the best mixture is always paler than the orange, but by adding a
small quantity of white to the orange we at once form a match. In
the same way if we have a greenish-blue to match, we shall find
that we can only make the match when we add a little white to the
simple colour. Now let us shift the position of the slit in the green
just a little—a very little—towards the blue, and again try to match
orange. Do what we will we cannot find apertures to the slits which
will give us the colour, though it be diluted with white. It will be too
blue or too red, but never exactly orange. This tells us that there is
too much blue in the green we are using. Next, shift the slit a little
towards the red below our fixed position, and endeavour to match
the blue. We shall find that this, too, becomes impracticable. The
blue is either too green or too violet, telling us that our mixture
contains too much green. As the neutral point of the colour blind is
the only position for the green slit which enables us to make a good
match to both the orange and the blue, it follows that this must be
the point where these two colour sensations are so arranged as to
be in the proportions required to form white when green is added;
that is, that there is neither an excess of red nor an excess of violet.
To come back to our measures of colour. We can make up every
spectrum colour with these three colours, and finally divide the
luminosity curve into the colour luminosity. In all these matches the
violet luminosity is very small indeed compared with the red or
green. A match with white is now made by a mixture of all these
colours, and you will see, from the images of the slits on the screen,
that the luminosity of the violet is almost a negligible quantity
compared with the others. We may, therefore, as a first
approximation, divide up the luminosity curve into two parts, one
being the luminosity of the green in the different colours and the
other of the red. The green, however, is made up of red, of violet,
and of an excess of green sensation, which in this case comes
practically to a mixture of white with the green sensation. How can
we tell how much is green and how much is white? Suppose I, as a
normal-eyed person, compare the luminosity of the colour coming
through the red slit with that coming through the green slit, and
then get the green-blind to do the same, it is evident that any
excess in the luminosity as measured by myself over that measured
by the green-blind must be due to the green sensation, and we can
also see how much red and violet make up his white. We shall not
be far wrong, then, in apportioning the constituents of the white
thus found between the green and the red; the violet being, for the
time being, negligible. We must subtract the red sensation from the
green colour curve and add it to the red colour curve: the two
curves will then be very closely the curves of the red and green
sensations. By causing the green-blind to make mixtures of red and
violet for all the colours of their spectrum, we can arrive at what
must be finally taken away or given to these curves, though such
addition or subtraction of violet will be small when the luminosities
are considered. The accompanying figure (Fig. 22) gives an idea of
the shape and general features of these curves. It may be remarked
that we can check the general accuracy of the measures of the
colour mixtures by calculating or measuring the areas of the two
colour curves, the red and the green. If accurate, they should bear
the same ratio that the luminosities of the two colours bear to each
other (when mixed with a little violet, which is practically negligible)
to form white light. So far, then, we can utilize the luminosity
methods to calculate and to trace the sensation curves for the
normal eye. It will not escape your notice that the maximum heights
of these two component curves are nowhere near the parts of the
spectrum where the colour is the purest. Another check to these
curves may also be made by taking the difference in the ordinates of
the luminosity curves of the colour blind and the normal eyed. Too
much stress must not, however, for the moment, be laid on this, as
this method depends on the absolute correctness of the scale of the
ordinates in the curves. It must be recollected that to the former
white light is deprived of at least one constituent sensation which is
perceived by normal eyes. This, in all probability, renders the white
less luminous to them than those possessing normal vision, so that
the comparisons of luminosities are referred to different standards.
It may seem a very simple matter to ascertain the correct scale,
but it is not, except by the extinction method, which will be
described later. At one time General Festing and myself tried to
obtain a comparison by finding the limiting illumination at which a
book could be read. We got results, but for the purpose in question
the values are not conclusive. What we really were measuring was
the acuteness of vision in different coloured lights. As a good deal
depends upon the optical perfection of the eyes under examination,
besides the illumination, we must be on our guard, even if there
were nothing else against the method, against taking any such
measures as being conclusive.
CHAPTER VIII.
Before quitting the measurement of luminosity, it may be as well to
see whether the curves described are the same whatever the
brilliancy of the spectrum may be. We can easily experiment with a
very reduced brightness. Upon the screen we have an ordinarily
bright spectrum. As the slit, through which the white light forming
the spectrum comes, is narrowed, there is an evident change in the
relative brightness of the different parts, though the energy of every
ray must be proportionally reduced. The red is much more enfeebled
than the green, and in brightness the green part of the spectrum
looks much more intense than the yellow, which is ordinarily the
brightest part. This we have assured ourselves of not only by casual
observation, but also by direct measurement. Perhaps I can make
this even more decisive to you. Two slits are now in the ordinarily
bright spectrum, one in the red, and the other in a green which is
near the E line of the solar spectrum. Instead of using one lens to
form a single colour patch of mixed light, two parts of a lens,
appropriately cut and of the same focal length as the large
combining lens, are placed in front of the slits, one bit of lens before
each. This artifice enables us to throw the patch of red on one white
surface, and the patch of green light on another adjacent to it. By
opening or closing one or other of the slits the brightness of the two
patches of light are so arranged that there is no manner of doubt
but that the red is the brighter of the two. The absolute energies of
the rays forming each of the patches are proportionally reduced by
closing the slit of the collimator, as before. At one stage both
patches appear of about the same intensity. This might be taken for
an error in judgment, but to make the change that takes place
perfectly plain to you, the rotating sectors are introduced in front of
the two slits, and the rays now pass through them. The apertures of
the sectors are gradually closed, and we now come to such a
reduction that the red is absolutely invisible; but the green still
shines out. It is losing its colour somewhat, and appears of a bluish
tint. The reason of this change of hue in the latter we shall shortly
see. The sectors are withdrawn and the red re-appears, and is as
bright as the green. The slit of the collimator is next opened, and
there is no doubt that the red is much brighter than the green, as it
was purposely made at the beginning of the experiment. The same
class of experiment might have been repeated with the green and
violet or the red and violet, and the same kind of results would have
been obtained. The violet would have been the last to disappear
when the green was so reduced in luminosity that it appeared in the
ordinary brilliant spectrum to be equal to the violet ray selected.
When the green was of the luminosity given by a slit equal in width
to that of the violet, the violet would have disappeared first, owing
to its feeble brightness to begin with. Now, if we measure a feebly
illuminated spectrum we must adopt some special means to exclude
all light, except that of the comparison light and the ray to be
measured. This we can do by the box which is shown in the next
diagram (Fig. 24).
Fig. 24.
Fig. 26.