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

Project1

 找回密码
 注册会员
搜索
楼主: tseyik
打印 上一主题 下一主题

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

[复制链接]

Lv5.捕梦者

梦石
0
星屑
21911
在线时间
8561 小时
注册时间
2011-12-31
帖子
3361
11
 楼主| 发表于 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
星屑
33163
在线时间
10488 小时
注册时间
2009-3-15
帖子
4756
12
发表于 2019-11-13 20:46:25 | 只看该作者
这3D插件要高版本MV才能用?

点评

我用l161行到  发表于 2019-11-13 22:13
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
3453
在线时间
1159 小时
注册时间
2016-8-9
帖子
2390

开拓者

13
发表于 2019-11-15 01:55:43 | 只看该作者
这个要是成熟了,官方收编一下,还买什么微笑屋,哈哈哈哈哈

点评

对对对 t大佬说的对  发表于 2019-11-16 19:59
SMILE GAME BUILDER?  发表于 2019-11-16 18:00
忘记英文名怎么拼了,大概翻译过来就是微笑屋,不需要编程的rpg制作工具,但那个是3d的  发表于 2019-11-15 19:44
微笑屋 ? 这是什么?  发表于 2019-11-15 06:58
酸酸甜甜就④哇噢
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21911
在线时间
8561 小时
注册时间
2011-12-31
帖子
3361
14
 楼主| 发表于 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
星屑
21911
在线时间
8561 小时
注册时间
2011-12-31
帖子
3361
15
 楼主| 发表于 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
星屑
21911
在线时间
8561 小时
注册时间
2011-12-31
帖子
3361
16
 楼主| 发表于 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
星屑
21911
在线时间
8561 小时
注册时间
2011-12-31
帖子
3361
17
 楼主| 发表于 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>
回复 支持 反对

使用道具 举报

Lv4.逐梦者

梦石
0
星屑
7028
在线时间
1359 小时
注册时间
2018-12-16
帖子
1939
18
发表于 2019-11-19 11:06:37 | 只看该作者
本帖最后由 play337 于 2019-11-23 19:32 编辑

nice.....................job!
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2577
在线时间
362 小时
注册时间
2015-8-15
帖子
80
19
发表于 2019-11-19 12:40:44 | 只看该作者
只是感觉MV做成3D意义不大,真想做好的话还是得用unity
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21911
在线时间
8561 小时
注册时间
2011-12-31
帖子
3361
20
 楼主| 发表于 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
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-4-24 02:57

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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