MV3D - 3D rendering for RMMV with Babylon.js

@glaphen
There does seem to be a problem where you can't climb on top of objects with collision height equal to the stair thresh. I'll fix that.

event 40 has a collision height of 1, so the difference between the top of event 40 and event 39 is just 0.6 not 1.6.

The problem with events with negative height happens because negative height is handled a little bit differently so it doesn't interfere with movement. I'll have to add another special case there.

Edit: should be fixed now.
Found another bug, if an event walks over another platform event, the one below gets launched up abit and back down, but if you set it to high amounts of stair threshold and high height bottom event both get launched to space and take 10+ seconds to land.
Here is map if you want to see it launch into space, seems to interact differently with different settings, but mostly just raises slightly. Also need to change stair threshold to 1.01. Oh and I used the frog. Don't need 1.01 with new version. Also it doesn't do anything on event 39/40 with the fairy/thief walking but still does it just copying those ground events to higher heights, but not if I move it into their path on cliff edge. Testing further it's because of through, but putting them on spot next to it still doesn't launch so it's fine with drops. Uploaded better map, maybe not fine with all drops.

Actually you don't even need high stair threshold, even at .1 it still goes on the events and does it, it also will walk under you if you are in their path lifting you up by 1 tile, it also doesn't seem to do this if they unless the event is the same size. So 48x96 only launch 48x96 and ignore collision for that size and flat at height of 2. But it still does it if it is within stair threshold, better map again.

The same height thing only happens since newest update, didn't do it with .1 with that, still does it within stair threshold.
@Dread_Nyanak
"Did you mean A1,4,0? A1,0,4 doesn't exist.
And yeah, float is only used for boats."


Thanks, I had my values wrong (again). Also deleted the unnecessary float value and I'd like to think that I'm somewhat done with setting up my water tiles.

So now I'm moving on to trying to place stuff on walls and making a treasure chest I can live with. I'm sure I'll send my crying back to this thread before soon. Hehe
In what ways can I reduce the height of the star-shaped ceiling?

I want the floor to be lowered.

RzpNm0.png


D,1,3:top(D,1,3),side(D,1,2),height(-0.5),bottom(D,1,0)

I tried it. It does not adjust the side level.

The side shape disappeared when I tried to reduce

RzpAj9.png
@palatkorn do you mean depth? to make it have a hole inside, like the water?
but maybe that only works if there is something around...

Oh wait, only now I noticed the green bricks above.Do you mean the height above the ground? it is fringe.
Okay, new questions.

It seems to me that events seems to hoover above the ground (just a bit), even though the graphic fills the 48x48 frame exactly (there are no empty space at the bottom of the sprite).

My settings for my treasure chest is this: <mv3d:shape(fence)> Very simple, nothing special. They obviously look weird if you approach them from any other direction than straight ahead so I decided I'll just have to map around that and put them at the end of narrow dead ends or block of the sides in other ways. It's a minor thing, I can live with it.

But I did notice that my chests seems to hoover a little bit above ground? why is that and is there anything I can do to fix it?
IAYiB1T.png


Another thing I was trying to figure out is the lighting.The plugin has lightning settings but is there a way to darken the entire map so that light sources stand out more? Like for example. If you wanted to make a dark cave or something?
@Parallax Panda
I didn't notice that... is your spritesheet with an ! in the start of the name? spritesheets without it are put a few pixels above ground indefault mv too...
@Dread_Nyanak but in a 3d view that doesn't make as much sense...at least in a z way like it seems to be here...

and to darken a map set its light to something other than white in the map notetags. event notetags are a source of light over that though.
Yes, I want the lost edge back but I don't know how to.
Can I set the star base height?
RzG1LE.png


D, 1,3: top (D, 1,3), side (D, 1,2), height (0.5), bottom (D, 1,0)
And the second type, height
D, 1,3: top (D, 1,3), side (D, 1,2), height (-0.5), bottom (D, 1,0)
Then the edge is gone

@palatkorn do you mean depth? to make it have a hole inside, like the water?
but maybe that only works if there is something around...

Oh wait, only now I noticed the green bricks above.Do you mean the height above the ground? it is fringe.
Yes, I want the lost edge back but I don't know how to.
Can I set the star base height?
RzG1LE.png


D, 1,3: top (D, 1,3), side (D, 1,2), height (0.5), bottom (D, 1,0)
And the second type, height
D, 1,3: top (D, 1,3), side (D, 1,2), height (-0.5), bottom (D, 1,0)
Then the edge is gone
Use height for the thickness and depth for the depression inside.
Even so not sure if it will work as is, so you can also try putting a transparent block also floating beside those, either transparent tiles or with alpha 0?
I think it's OK for the stables.

RzICUy.png

RzIbcQ.png
@palatkorn so... did one of my ideas work then? which one?
@Waterguy & @Dread_Nyanak

Yes my treasure chest sprite (as seen a few posts above this one) has an "!" before it. Yet it appears what looks like ~1 pixel (or a few) above the ground level when placed with this tag:

<mv3d:shape(fence)>
Yes, I stick it like a gate and use a fence to prevent it from passing through
R4342q.png

@palatkorn so... did one of my ideas work then? which one?
I still have problem with the "floating" treasure chest sprite as mentioned above. But I'm going to jam in another question for the room before I go to bed.

I have some events with the sprite shape that I want the player to be able to walk through. This butterfly here is a good example. As it is right now, it blocks the way for the player and it's quite annoying. It's just there for visuals and I'd like for the player to be able to just walk through it:
7tSRhp0.png


I'm aware that I could turn "ON" the event's "through" setting but as someone said earlier in this thread. That'd make it go though walls and stuff which I might not want it to.

So is there any way to make this event passable both for the player and for other events?

( Just so there's no confusion. It has this notetag: <mv3d:shape(sprite)> )
@Parallax Panda hmm... that does soud important...
maybe it doesn't work, but did you try adding pass(*) to the notetag, as if it was atile?
@Parallax Panda that (!) before the file name causes events to use that spritesheet to shift 6 pixels upward (or downward? I can't remember at the moment) You could try just removing the ! from the filename and see what happens.

Alternatively you can open up the file in an image editing program and shift the spriteset down manually (just make sure you use a 48x48 grid to avoid shifting the graphic outside its boundaries, though I'm sure you know that already)

Anyway, I haven't got around to using this plugin yet but I'm sure I'll be messing with it in the future. It's a huge upgrade from the older 3D FPLE plugin.
@jkweath actually, it is the opposite.
usually events with graphics without the ! in the name are shifted 4 pixels upwards in the map to look more like they are in it instead of just flat on the tile.So to make something actually position itself in the grid you need to add an ! to the name.
The image edit idea is valid, though. Although based on his words I'd expect the sprites to already be on the bottom of the space allowed, it wouldn't hurt to check.
@Parallax Panda
The floating chest is probably caused by the Layering Distance. without it flat shape events and sprite shape events with camera facing down will cause z-fighting issues with the floor, and also get covered up by upper layer tiles. However, flat and sprite events are probably the only ones that need it. And the sprite events could probably interpolate the value depending on camera angle. I think I'll make that change next update.

For the butterfly, the way to make events passable is to make them "below characters" or give them collide(0). I assume this isn't working in your case though, because it's flying in the air. These methods just make the collider flat, but they still have a collider. And if it's in the air then it will get in the player's way.
Maybe I could make it so collide(false) will make it ignore collision with other characters altogether. I could do the same thing with collide(0),platform(false).

These should be easy to fix so I'll work on it right now.
@Waterguy
Thanks for the suggestion but that didn't work unfortunately

@jkweath
I've already tried it. 😢 The picture has been edited so there is no empty space at the bottom of the sprite sheet. You should really try out this plugin when you get the chance later though. It's awesome~!

@Dread_Nyanak
Thanks. That would help a lot. Another thing I noticed which might not me such an easy fix is the that when you shake the screen the visual field does not actually shake. What happens is that you expand the view into the black borders on the side. It would look much better if screen shake did not have any black borders on the side but that might be difficult to fix?

[EDIT; Also, another thing that's been bugging me. When there's a battle transition in 1st person the "transition effect" is acting real weird. It kinda looks like the snapshot of the map is flying off into the upper left corner? I'm guessing this is something you might not have touched yet but is there something you can do about it maybe?]
@Parallax Panda that seems to unfortunately be the default rpg maker transition effect... which sucks if you are trying to make a game with no background so the 1st person view is the default battle background, as the snapshot is moved a bit with black borders in the sides...

So... I made this small plugin, that basically just remove this zoom effect and makes the snapshot be taken at the start of the battle transition instead of during it... I tested it with a few battle transitions plugins I know bellow it, mog's seemed to work fine and kms' spiral too,kms' splash made the background snapshot be slightly affected though, as if crumpled...
but anyway, if your problem was just the transition's zoom this should be enough for you.

Original thread: https://forums.rpgmakerweb.com/threads/mv3d-3d-rendering-for-rmmv-with-babylon-js.114971/