steve3d Posted December 9, 2013 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.
frustum Posted December 25, 2013 Posted December 25, 2013 Unigine script hasn't support vec2/ivec2/dvec2 types. Because of that Unigine::Variable hasn't have such support also.
steve3d Posted December 26, 2013 Author 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.
frustum Posted December 26, 2013 Posted December 26, 2013 The lack of vec2 types support reduces the combinatorial explosion inside the Unigine script source code.
ulf.schroeter Posted December 26, 2013 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.
helmut.bressler Posted November 5, 2015 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
maxi Posted November 5, 2015 Posted November 5, 2015 Hi Helmut, vec2 is implemented for C++ only. it's a docs mistake, UnigineScript methods returns vec3, not vec2.
Recommended Posts