美文网首页全景VR播放器ANTVRSDK- ios 使用详解
6、无模型,不3D,玩转obj加载 - ANTObjModel

6、无模型,不3D,玩转obj加载 - ANTObjModel

作者: ARVRSchool | 来源:发表于2016-11-01 14:44 被阅读30次

obj模型的使用方法:

    NSString *path = [[NSBundle mainBundle] pathForResource:@"shitou_01" ofType:@"obj"];
    ANTObjModel * obj = [[ANTObjModel alloc] initWithPath:path];
    [obj setupTextureWithImage:[UIImage imageNamed:@"shitou_D.jpg"]];
    [obj setObjectRect:0.5 Height:0.5];
    [self.antLibrary addSubObject:obj];
    [obj setPosition:0.0 Y:0.0 Z:-5.0];

效果图:

Paste_Image.png

详细使用请看提供的demo。

相关文章

网友评论

    本文标题:6、无模型,不3D,玩转obj加载 - ANTObjModel

    本文链接:https://www.haomeiwen.com/subject/npymuttx.html