设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 79|回复: 0

[转载发布] PlayerSelfiesFaceset.js (camera plugin)

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    8279

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    30565
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    39738

    灌水之王

    发表于 6 天前 | 显示全部楼层 |阅读模式
    I just made a plugin that will turn camera selfies into a face set for the game.
    (yes, you read it right)

    Forgive me, that this plugin is a little bizarre.


    The angle here is: a game that stars the game player, as the game player's actual self.
    Think Neverending story or something, where the reader becomes the read-ed.


    It's fun; it's got novelty value.

    Spoiler: screenshots


    To use this plugin, you're gonna need three things.

    Thing number one: Call this function by event script call. (not plugin command)
                    PHP:       
    1. SelfieFace.getSelfies({
    2.     filename:"CustomSelfPhoto"
    3. });
    复制代码

    You don't need to specify the filename parameter, but then it will just make a random filename and you won't be able to use it later on in the game. For instance you can use...

    thing number two: This default faceset; (save this one or make your own)

    Spoiler






    You can make your player's role talking messages with this dummy faceset and when the player takes selfies, it will overwrite this dummy file in their game play. (so it will use all their selfies in their premade dialogue)

    Thing number three: You can make more than one faceset, and you can define your own facial expressions (selfie directions) with this other event script call parameter.
                    PHP:       
    1. SelfieFace.getSelfies({
    2.     filename:"CustomSelfPhoto",
    3.     expressions:[
    4.         "a normal face",
    5.         "a happy face",
    6.         "a laughing face",
    7.         "a sad face",
    8.         "a angry face",
    9.         "a shocked face",
    10.         "dramatic look-away",
    11.         "dramatic eye contact"]
    12. });
    复制代码

    I recommend only doing groups of 8. More than 8 will break it, and less than 8 is a waste of negative space and I didn't test it much.

    And that's all that's to it.

    This plugin is vicariously the idea of @shinichi999 because I discovered how to use camera and microphone in HTML5, while I was researching how to take on his request for a similar plugin in this thread. I'm just a little more certain that I can make it now. I just did this extra plugin for practice and for fun.

    And all functional credit goes to this HTML5 tutorial I found. I really wouldn't know how to do it, if it weren't for this.https://davidwalsh.name/browser-camera

    You're free to use this in commercial games or dissect it to make other kinds of camera apps or whatever too. I don't mind.

    Version 0.1
    EDIT: I had a flaw where the file path couldn't handle Unicode characters, but luckily shinichi caught it and I fixed it before the plugin had any downloads (because the thread wasn't even live yet). I also had a flaw where I didn't shut the stream off, but it's now fixed thanks to Microsnitch discovering it.

    EDIT: Version 0.2: I've never been so dumb...
    @shinichi999 caught another big flaw. I didn't position my video and canvas elements for different resolutions so everything was out of whack in fullscreen, but it's now fixed!



    本贴来自国际rpgmaker官方论坛作者:mogwai处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/playerselfiesfaceset-js-camera-plugin.77695/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-1 19:42 , Processed in 0.098935 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表