luke.errington Posted July 25, 2011 Share Posted July 25, 2011 We link the Unigine lib into our own C++ application. The new release (21/07/2011, with UNIGINE_DOUBLE defined) fails to compile because it refers to Mat4. In fact, it uses both Mat4 and mat4 but only mat4 is defined. Since there are only a couple of cases where Mat4 is used, and there does not seem to be a pattern, would it seem that this is an error? If not, what should we do to get this to compile? Link to comment
manguste Posted July 25, 2011 Share Posted July 25, 2011 Take a look at Double Precision Coordinates article; it may be of help to you. Link to comment
luke.errington Posted July 26, 2011 Author Share Posted July 26, 2011 Hmmm. Thanks. I had already read through this, and I see that Mat4 can be used to mean either mat4 or dmat4 in script, but my problem is in C++. In my situation I simply cannot compile, because Mat4 is not a type. Link to comment
manguste Posted July 27, 2011 Share Posted July 27, 2011 Have you tried to use UNIGINE_MAT4 define for Mat4? Link to comment
luke.errington Posted July 28, 2011 Author Share Posted July 28, 2011 But the problem is not in our code. The problem is in UnigineObject.h. (Specifically, it is in ObjectMeshSkinned. You can even see the use of Mat4 in the documentation for this class.) Does this compile for you? Link to comment
frustum Posted July 28, 2011 Share Posted July 28, 2011 My fault. Just replace Mat4 by UNIGINE_MAT4 in the UnigineObject.h file. Link to comment
Recommended Posts