benikabocha / saba

OpenGL Viewer (OBJ PMD PMX)
MIT License
442 stars 60 forks source link

Can saba edit the model? #23

Open kuazhangxiaoai opened 3 years ago

kuazhangxiaoai commented 3 years ago

Is the model in saba editable? Thanks for your answers.

benikabocha commented 3 years ago

You cannot edit the model. However, it is possible to edit the file class (e.g. PMXFile).

kuazhangxiaoai commented 3 years ago

You cannot edit the model. However, it is possible to edit the file class (e.g. PMXFile).

your meaning is that I can edit OBJModel class defined in OBJModel.cpp for changing Model if I want to open .obj file. Can viewer be changed over OBJClass.

benikabocha commented 3 years ago

Yes, you can change the viewer's model that way. The viewer uses a GLOBJModel for drawing. GLOBJModel is created from OBJModel.

GLOBJModel::Create(const OBJModel& objModel)