GamePlay3D - common error messages
Some common error messages you might encounter when developing a game with GamePlay3D, and how to solve the issues:
Attempting to set a material on node ... which has no model
Symptom
After creating a new project, copying the source code from the character sample and running it, you get:
applyNodeProperty -- Attempting to set a material on node 'boymesh', which has no model.Assertion failed: (0), function applyNodeProperty, file /Users/frank/src/GamePlay/gameplay/src/SceneLoader.cpp, line 246.Cause
Resource file is missingSolution
Copy the missing resource file to your project directory (I ended up copying the whole res/ folder from the example project)
Texture sampler ... is missing required image file path
Symptom
After creating a new project and copying the source code from the longboard sample and running it, you get:
loadRenderState -- Texture sampler 'u_diffuseTexture' is missing required image file path.Assertion failed: (0), function loadRenderState, file /Users/frank/src/GamePlay/gameplay/src/Material.cpp, line 418.
Cause
game*.config files missing
Solution
copy the game*.config files to the app directory