axmol/tests/cpp-tests/Classes
Paul Gardiner 6b27f014fc Correct the Skybox fov (#16655)
* Remove undrawn quads from the skybox mesh

CCSkybox had been implemented using a combination of two
inconsistent techniques. The rendering was being achieved via use of
the vertex shader's inherent support for cubemaps. That technique requires
only a single screen-covering quad, but the implemtation defined a cube.
Defining a cube mesh would be appropriate if one were simply mapping the
cubemap's 6 textures to faces, but is unnecessary if using the shader's
cubemap feature.

Not only was the use of a cube mesh unnecessary, but the particular way
the cube was defined and used meant that only one face would ever
contribute to the rendering. One of the other faces would always be culled
and the other four would be viewed edge on, mapping the the infinitesimally
thin lines defining the edges of the screen.

This commit simply removes the never-rendered faces, and adds comments
explaining the technique.

* Within test code, remove setScale calls applied to skyboxes.

A Skybox is defined in such a way that it's position, rotation and
scaling has no effect on it's rendering, so setScale has no effect.
The calls are removed from test code to avoid confusing anyone using
it as a template for their own programs.

* Make the Skybox correctly account for the camera's fov

The Skybox does not use the model/view and projection matricies. Instead
a single quad that maps exactly to the screen is rendered and the camera's
world matrix is passed into a shader that renders using cubemap lookups.
The way that works hardwires the fov to 90deg in both the horizontal and
vertical. That shows up particularly badly when the camera is pointed
directly downwards and rotated: the image deforms as it rotates.

This commit corrects the problem by using scaling factors from the
camera's projection matrix to prescale the matrix passed into the shader.
2016-10-17 13:46:26 +08:00
..
ActionManagerTest fix: add testcase for issue #14050 fix 2016-06-28 17:08:56 -07:00
ActionsEaseTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
ActionsProgressTest Fixes jsval_to_std_string could not convert number to string. (#16504) 2016-09-05 10:02:05 +08:00
ActionsTest new actions ResizeBy and ResizeTo (#16275) 2016-08-16 16:55:31 +08:00
AllocatorTest
BillBoardTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
Box2DTest
Box2DTestBed Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
BugsTest Adds more info regarding bug 15776 (#16315) 2016-08-05 14:04:39 +08:00
Camera3DTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
ChipmunkTest Squashed commit of the following: 2016-02-29 13:53:00 -08:00
ClickAndMoveTest
ClippingNodeTest Replace String::createWithFormat() with StringUtils::format() 2015-10-16 15:02:14 +09:00
CocosDenshionTest
ConfigurationTest
ConsoleTest use std::srand() instead 2016-07-11 11:17:28 +08:00
CurlTest Remove AssetsManager dependence with CRUL. 2015-09-17 16:52:31 +08:00
CurrentLanguageTest
DataVisitorTest fix tons of warnings 2015-07-15 12:04:48 +08:00
DownloaderTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
DrawPrimitivesTest test: add test case for Github issue #11942 2016-07-06 17:21:58 -07:00
EffectsAdvancedTest
EffectsTest Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
ExtensionsTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
FileUtilsTest fix bug that FileUitls::removeDirectory() can not work on all platforms except iOS and Mac 2016-07-07 17:43:19 +08:00
FontTest ignoreAnchorPointForPosition() -> set ~ from missing files 2016-04-25 20:43:42 +09:00
InputTest
IntervalTest
JNITest Add tizen support (#15518) 2016-04-28 09:49:55 +08:00
LabelTest Adds test case for showing border of TTF label, it will be easier to find out wrong offset of Label. 2016-10-14 17:14:15 +08:00
LayerTest ignoreAnchorPointForPosition() -> set ~ from missing files 2016-04-25 20:43:42 +09:00
LightTest
MaterialSystemTest Adds Spine binary-file format support (#16629) 2016-10-11 10:56:14 -07:00
MenuTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
MotionStreakTest test: add test case for Github issue #12226 2016-07-06 16:37:15 -07:00
MutiTouchTest
NavMeshTest fix tons of warnings 2015-07-15 12:04:48 +08:00
NewAudioEngineTest fixed #16490: [android, audio] AudioEngine::stop() triggers 'finished' callback (#16491) 2016-09-01 16:06:29 +08:00
NewEventDispatcherTest Features: add events for window resize, focus, and unfocus (#16578) 2016-09-20 20:32:33 -07:00
NewRendererTest fix: TriangleCommands with custom uniforms can be batched (#16329) 2016-08-07 14:51:02 -07:00
NodeTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
OpenURLTest
ParallaxTest
Particle3DTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
ParticleTest Added Particle Emitter Pause option, and tests (#15836) 2016-06-15 18:31:10 +08:00
Physics3DTest avoid to trigger touch event multiple times 2015-08-07 15:09:01 +08:00
PhysicsTest Fix spelling for `getPolygonCenter` function 2016-07-19 08:24:22 +09:00
ReleasePoolTest
RenderTextureTest Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
RotateWorldTest ignoreAnchorPointForPosition() -> set ~ from missing files 2016-04-25 20:43:42 +09:00
Scene3DTest Correct the Skybox fov (#16655) 2016-10-17 13:46:26 +08:00
SceneTest
SchedulerTest Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
ShaderTest Fix some minor typos in local variable names 2016-06-29 11:04:11 +09:00
SpineTest Adds Spine binary-file format support (#16629) 2016-10-11 10:56:14 -07:00
Sprite3DTest fix: improves test for issue #16155 (#16418) 2016-08-23 09:47:55 +08:00
SpriteFrameCacheTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
SpritePolygonTest fix: add test case for issue #14017 2016-06-28 17:32:13 -07:00
SpriteTest Refactoring ui related code and fix label atlas and BMFont rendering issue with ETC1 texture format (#16615) 2016-09-30 09:42:21 +08:00
TerrainTest add terrain test with light map 2015-08-03 14:02:46 +08:00
TextInputTest Fix password style text in UTF-16 (#15620) 2016-05-23 09:48:15 +08:00
Texture2dTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
TextureCacheTest
TexturePackerEncryptionTest fix tons of warnings 2015-07-15 12:04:48 +08:00
TileMapTest fix: staggered hex maps returns correct tile (#16552) 2016-09-13 21:47:36 -07:00
TouchesTest Roll back disable force GC change on windows platform, this cause lua binding can not respond mouse click 2015-12-22 18:41:44 +08:00
TransitionsTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
UITest Refactoring ui related code and fix label atlas and BMFont rendering issue with ETC1 texture format (#16615) 2016-09-30 09:42:21 +08:00
UnitTest fixes compile error for win32 (#16351) 2016-08-11 15:54:51 +08:00
UserDefaultTest add UserDefault api deleteValueForKey 2015-07-06 17:01:17 +08:00
VRTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
VibrateTest fix tons of warnings 2015-07-15 12:04:48 +08:00
ZwoptexTest
AppDelegate.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
AppDelegate.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
BaseTest.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
BaseTest.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
VisibleRect.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
VisibleRect.h
controller.cpp fix: collection of vr fixes (#15948) 2016-06-24 16:55:28 +08:00
controller.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
testBasic.cpp
testBasic.h
testResource.h
tests.h fix: collection of vr fixes (#15948) 2016-06-24 16:55:28 +08:00