Validation of DrawableVertexPosition

[Last updated : 11/07/2019]

We will check how the values obtained by CubismModel::GetDrawableVertexPositions change as the model is written out.
Since the return value of the Cubsim Core for Native's cmGetDrawableVertexPositions function is used as it is, it is also a confirmation of the API here.
The environment is as follows.


Check Environment

The confirmation environment is performed by modifying the sample program of Cubism SDK for Native and using the log output function.
LAppModel::LoadAssets is modified to log the values of all ArtMesh points.





The model is just a simple 4-point quadrangle placed just inside the campus.
In this check, Cubism Editor 3.2.00 is used for output.


The settings at output are compared in 6 types: 2 types of PixelsPerUnit and 3 types of center position.

PixelsPerUnit: 1 or 900
Center position: Top left or Middle or Bottom right

index 1: PPU1 upper left index 2: PPU1 center index 3: PPU1 lower right
index 4: PPU900 upper left index 5: PPU900 center index 6: PPU900, lower right



It can be seen that the data obtained by CubismModel::GetDrawableVertexPositions is output under the influence of PixelsPerUnit while the XY ratio remains the same.



Although the range of the DrawableVertexPosition varies greatly with the value of PixelsPerUnit,
in initialization using CubismModelMatrix, only the center position appears to be specified because it is initialized to the extent that it fits on the screen.

© 2010 - 2022 Live2D Inc.