steve3d Posted December 9, 2013 Share Posted December 9, 2013 now Unigine::Variable has support for all vec type except the ivec2 and vec2. and I can't figure out why it don't support ivec2 and vec2 type. Have this ivec2 and vec2 type supported in engine could also benefit to some ui functions, like getPositionX/getPositionY functions, if Variable support ivec2 then we can just use getPosition to get the widget position in one line. Link to comment
frustum Posted December 25, 2013 Share Posted December 25, 2013 Unigine script hasn't support vec2/ivec2/dvec2 types. Because of that Unigine::Variable hasn't have such support also. Link to comment
steve3d Posted December 26, 2013 Author Share Posted December 26, 2013 Unigine script hasn't support vec2/ivec2/dvec2 types. Because of that Unigine::Variable hasn't have such support also. why engine don't support these data types? vec2/ivec2/dvec2 is also useful. Link to comment
frustum Posted December 26, 2013 Share Posted December 26, 2013 The lack of vec2 types support reduces the combinatorial explosion inside the Unigine script source code. Link to comment
ulf.schroeter Posted December 26, 2013 Share Posted December 26, 2013 Just as a side note: as Unigine::Variable always allocates memory for biggest supported data type (in a way comparable to union in C++) there also would be no advantage memory-wise to introduce 2-component data types. Link to comment
helmut.bressler Posted November 5, 2015 Share Posted November 5, 2015 Hello, sorry for reviving a zombie thread :-) I want to use the Mesh::getTexCoord0() Unigine script function and got an error message ' unknown token "vec2" ' Is vec2 support still not implemented? Or did I forget to include a certain header file? Or is the documentation of the Mesh class incorrect? Cheers Helmut Link to comment
maxi Posted November 5, 2015 Share Posted November 5, 2015 Hi Helmut, vec2 is implemented for C++ only. it's a docs mistake, UnigineScript methods returns vec3, not vec2. Link to comment
Recommended Posts