设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 24475|回复: 77
打印 上一主题 下一主题

[交流讨论] MV3D - 3D rendering for RMMV 0.52更新

[复制链接]

Lv5.捕梦者

梦石
0
星屑
21952
在线时间
8567 小时
注册时间
2011-12-31
帖子
3362
跳转到指定楼层
1
发表于 2019-11-12 21:30:08 | 显示全部楼层 |只看大图 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
本帖最后由 tseyik 于 2020-3-3 08:22 编辑

MV3D - 3D rendering for RMMV 0.39
連續斜路,動画氣泡測試
MV3D - 3D rendering for RMMV 0.35
追加2D/3D切換功能
MV3D - 3D rendering for RMMV 0.36
追加斜坡
MV3D - 3D rendering for RMMV 0.52




Todo:

    ✔Pan camera with plugin commands     ✔帶有插件命令的全景攝像機
    ✔Demo project (available but not finished)      ✔演示項目(可用但未完成)
    ✔Switch rendering to Babylon.js     ✔將渲染切換到Babylon.js
    ✔Improve performance     ✔提高性能
    ✔Dynamic shadows (patron only) ✔動態陰影(僅限贊助者)
    ✔Slopes✔斜坡
    ✔Animations     ✔動畫
    Bug squishing
    Support 3rd party plugins     支持第三方插件

Possible future features:未來可能的功能:

    Non-tile-based movement
    Control camera with mouse / touch
    load 3d models
    VR mode

如果您使用此插件製作遊戲,請考慮讚助支持作者。
讚助頁面
https://www.patreon.com/cutievirus


討論串
https://forums.rpgmakerweb.com/i ... th-three-js.114971/
範例
https://github.com/Dread-chan/MV3D
RPG Maker MV的3D渲染插件。

牆磚(A3和A4)被轉換為3D牆,使您可以輕鬆創建3D地圖。
區域和地形標籤也可以用於控製瓷磚的高度。

如果飛艇的飛行高度不夠高,它將與牆壁碰撞。 但是,您可以使用插件命令更改飛行的高度。

插件還支持3D照明以及用於控制照明和手電筒的插件命令。 插件不支持動態陰影,它們不能與three.js中的透明紋理配合使用。

您可以控制相機的距離,俯仰和偏航,以及在透視和正交模式之間進行切換。
您可以根據需要製作3D地牢爬蟲以及2.5D視點。 您甚至可以在同一個遊戲中混合使用多種樣式,例如,將游戲世界設為第三人稱或2.5D視點,並將地牢設為第一人稱地牢爬行者。
請參閱下面的屏幕截圖,以查看其外觀。
大3D城堡

一個簡單的樹籬示例。

地牢

2.5D視点

手電筒


為了提高照明質量,您可以在插件設置中更改“細分”參數。 此選項為每個圖塊提供更多的多邊形,這有助於使燈光看起來更平滑。

rpyT08q.png (185.51 KB, 下载次数: 38)

rpyT08q.png

评分

参与人数 12星屑 +300 +12 收起 理由
1071257831 + 1
frost_king_hw + 1 塞糖
Joker009 + 1 精品文章
悄悄ciao + 1 精品文章
微笑的迪妮莎 + 1 精品文章
白嫩白嫩的 + 1 t大佬每次都带来惊喜
Cansor + 1 精品文章
哇哇哇啊叭叭 + 1 触哭了给
wabcmcc + 1 精品文章
一笑奈何海 + 1 精品文章

查看全部评分

Lv5.捕梦者

梦石
0
星屑
21952
在线时间
8567 小时
注册时间
2011-12-31
帖子
3362
2
 楼主| 发表于 2019-11-13 09:50:40 | 显示全部楼层
本帖最后由 tseyik 于 2019-11-13 09:56 编辑
枫叶的北方 发表于 2019-11-13 09:05
测试过,和ALPHAABS会产生地图BUG,而且地图上不会显示动画。QABS的话好像直接就给卡死了。
所以可能只能用 ...


原討論也提過
Yeah, it won't work with a lot of graphical plugins. The 2D map isn't rendered at all, so anything that changes how the map and characters are rendered won't work with this.
Anything that changes the gui and menus should work fine though.
它不適用於許多圖形插件。 2D地圖根本不會渲染,因此任何更改地圖和角色渲染方式的操作都將無法使用。
不過,更改gui和菜單的所有內容都應該可以正常工作。
而未來的探討方向
Todo:

    ✔️Pan camera with plugin commands
      帶有插件命令的鏡頭
    Improve load times
   縮短加載時間
    Bug squishing
  除虫
    ✔️Demo project (available but not finished)
        範例
Possible future features:

    Non-tile-based movement
    線性移動
    Control camera with mouse / touch
    用鼠標/觸摸控制相機
    load 3d models
   載入3D模型
    VR mode
  VR模式
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21952
在线时间
8567 小时
注册时间
2011-12-31
帖子
3362
3
 楼主| 发表于 2019-11-13 19:36:40 | 显示全部楼层
本帖最后由 tseyik 于 2019-11-13 19:42 编辑

       

    @Waterguy
    Yeah I'm definitely going to have to fix the help text. Right now I'm working on some major rewriting though, so fixing that will have to wait.
    Letting regions decide the wall texture isn't a bad idea. I think I'll implement that eventually.
    And of course the performance issues are something I'm working on fixing.

    Right now I'm actually working on switching the code over to use babylon.js for rendering instead of three.js, that way I can implement dynamic shadows without them looking horrible. While I'm at it I'm also reworking a lot of the code to make it more organized and maintainable.
     


作者正重寫 code
解決性能問題
讓區域決定牆的紋理
用babylon.js取代three.js進行渲染,實現動態陰影
使其更具組織性和可維護性。
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21952
在线时间
8567 小时
注册时间
2011-12-31
帖子
3362
4
 楼主| 发表于 2019-11-18 18:19:06 | 显示全部楼层
MV3D - 3D rendering for RMMV with Babylon.js
Version 0.3
✔️

Pan camera with plugin commands
✔️

Demo project (available but not finished)
✔️

Switch rendering to Babylon.js3
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21952
在线时间
8567 小时
注册时间
2011-12-31
帖子
3362
5
 楼主| 发表于 2019-11-18 19:29:45 | 显示全部楼层
Make sure you have both the babylon.js plugin and mv3d-babylon.js plugin loaded, in that order.

Now when you run your game, the map should be rendered in 3D.

The A3 and A4 tiles will be rendered as walls. You can also change the height of tiles using regions and terrain tags.

By default, regions 1-7 are configured to affect the height.

Terrain tag 1 is configured to use a cross shape, so tiles with this tag will stand up like a tree.

Terrain tag 2 is configured to use a fence shape. Try putting this tag on the fence autotiles that come with MV.

The regions and terrain tags can be reconfigured however you want.

確保同時加載了babylon.js插件和mv3d-babylon.js插件。

現在,當您運行遊戲時,地圖應該以3D渲染。

A3和A4磁貼將渲染為牆。 您還可以使用區域和地形標籤更改圖塊的高度。

默認情況下,區域1-7配置為影響高度。

地形標籤1配置為使用十字形,因此帶有此標籤的圖塊將像樹一樣站立。

地形標籤2被配置為使用柵欄形狀。 嘗試將此標籤放在MV隨附的柵欄自動裝置上。

您可以根據需要重新配置區域和地形標籤。
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21952
在线时间
8567 小时
注册时间
2011-12-31
帖子
3362
6
 楼主| 发表于 2019-11-18 19:32:11 | 显示全部楼层
本帖最后由 tseyik 于 2019-11-18 19:36 编辑

Tileset Configuration

A more advanced feature, the tileset configuration should be placed in the tileset's note, and should be wrapped in an block.

Each line in the configuration should start by identifying the tile you want to configure, followed by a colon, and then a list of configuration functions.

Choosing a tile is done with the format img,x,y, where img is name of the tileset image (A1, A2, B, C, etc.), and x and y are the position of that tile on the tileset. For example, A2,0,0 would be the top left A2 tile. On the outdoor tileset, this would be the grass autotile.

Each tile can have 3 different textures. The top texture, side texture, and inside texture. The side texture is used on the side of the tile when it has a positive height, and the inside texture is used when it has a negative height.

If inside texture isn't specified, all sides will use the same texture.
If side texture isn't specified, then sides will use the top texture.

texture(img,x,y)
top(img,x,y)
side(img,x,y)
inSide(img,x,y)

These functions will use the specified tile for the current tile's textures.
texture() sets both the top and side textures.

Tileset配置

一個更高級的功能是,磁貼組配置應放在磁貼組的註釋中,並應包裝在一個塊中。

配置中的每一行都應首先標識要配置的磁貼,然後是冒號,然後是配置功能列表。

選擇圖塊的格式為img,x,y,其中img是圖塊圖像的名稱(A1,A2,B,C等),x和y是該圖塊在圖塊上的位置。例如,A2,0,0將是左上角的A2圖塊。在室外平鋪地板上,這將是草叢。

每個圖塊可以具有3種不同的紋理。頂部紋理,側面紋理和內部紋理。高度為正數時,將在瓷磚的側面使用側面紋理;高度為負數時,將使用內部紋理。

如果未指定內部紋理,則所有面將使用相同的紋理。
如果未指定側面紋理,則側面將使用頂部紋理。

texture(img,x,y)     /紋理
top(img,x,y)          /頂部
side(img,x,y)        /側面(外)
inSide(img,x,y)     /側面(内)

這些功能會將指定的圖塊用於當前圖塊的紋理。
texture()設置頂部和側面紋理。

這些功能會將指定的圖塊用於當前圖塊的紋理。
texture()設置頂部和側面紋理。
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21952
在线时间
8567 小时
注册时间
2011-12-31
帖子
3362
7
 楼主| 发表于 2019-11-18 19:40:51 | 显示全部楼层
舉一個簡單的例子,我們將室外圖塊中的水瓦片設置為負高度,以便其沉入地下。

<MV3D>
   A1,0,0:top(A1,0,0),rectSide(A1,31,54,31,14),高度(-0.3),浮點(0.1)
</ MV3D>

但是,當我們將其放置在懸崖的邊緣時,此示例看起來並不十分好,因此我們可以對其進行配置,以在外牆上使用瀑布紋理。

<mv3d>
   A1,0,0:top(A1,0,0),side(A1,1,1),rectInside(A1,31,54,31,14),高度(-0.3),浮點(0.1)
</ mv3d>
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21952
在线时间
8567 小时
注册时间
2011-12-31
帖子
3362
8
 楼主| 发表于 2019-11-22 12:59:47 | 显示全部楼层
Todo:

    ✔️Pan camera with plugin commands
    ✔️Demo project (available but not finished)
    ✔️Switch rendering to Babylon.js
    ✔️Improve performance
    Dynamic shadows
    Slopes
    Animations
    Bug squishing
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21952
在线时间
8567 小时
注册时间
2011-12-31
帖子
3362
9
 楼主| 发表于 2019-11-30 13:46:31 | 显示全部楼层
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21952
在线时间
8567 小时
注册时间
2011-12-31
帖子
3362
10
 楼主| 发表于 2019-12-4 08:31:16 | 显示全部楼层
本帖最后由 tseyik 于 2019-12-4 09:29 编辑

MV3D - 3D rendering for RMMV 0.35
追加2D/3D切換

另外動態陰影部分,作者可能只開放給贊助者
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-2 10:35

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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