dennyguotf / oglsuperbible5

Automatically exported from code.google.com/p/oglsuperbible5
0 stars 0 forks source link

Case sensitivity on Linux #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build the chapter 7 PointSprites example on Linux
2. Run the example

What is the expected output? What do you see instead?
You get a black screen instead of a field of stars

What version of the product are you using? On what operating system?
Ubuntu 10.10

Please provide any additional information below.
The problem is the source code references 'Star.tga', while the actual filename 
is 'star.tga', causing the loading of the file to fail.

Original issue reported on code.google.com by rafge...@gmail.com on 1 Dec 2010 at 9:49

GoogleCodeExporter commented 8 years ago
The same for the Ch7 TextureArrays example with 'include <Stopwatch.h>' and 
'StopWatch.h'.

Original comment by rafge...@gmail.com on 1 Dec 2010 at 9:56

GoogleCodeExporter commented 8 years ago
The 'Star.tga' issue is in TextureArrays as well.

Original comment by rafge...@gmail.com on 1 Dec 2010 at 10:04

GoogleCodeExporter commented 8 years ago
Ch5 Sphereworld has Marble.tga, Marslike.tga and MoonLike.tga on the filesystem 
and all lowercase names in the code.

Original comment by rafge...@gmail.com on 6 Dec 2010 at 2:35

GoogleCodeExporter commented 8 years ago
Not a rant but I'm (highly) surprised that the author of such a respected 
OpenGL book in its 5th incarnation (still) commits such basic/childish 
mistakes, which is somewhat understandable if he only coded for windows or for 
those macs installed on a fs with case sensitivity disabled.

Original comment by r45...@gmail.com on 23 Jun 2011 at 5:43

GoogleCodeExporter commented 8 years ago
I noticed that the vertex shader for the linux program does not actually change 
the size of the sprite as it gets closer. Its looks pretty much even. The vp 
located in the Src folder correctly increases the size of the sprites as they 
get closer.

I took the vp in the Src, speeded it up and also included a better algo for 
feeding stars back into the view frustum as they leave...

Try it out...

Original comment by nag.ra...@gmail.com on 18 Sep 2012 at 9:40

Attachments: