11 個の投稿 / 0 new
最終投稿
#1 2021-04-08 03:03

Effect that hides/shows things behind it?

I was wondering if there was an effect that allows me to create, say, a plane, and when the camera views through that plane, I can change what is seen.
For example, making a character's clothes disappear?

I tend to see effects like this a lot where there's like a floating "window" but I don't know what they're called... Any help?

EDIT: thanks to HoAy for getting me halfway there!

New question on the same subject; Does anyone know how to do the opposite of this?
That is, to have a model *hidden* until a transparent plane or effect or something reveals it?

My end goal here is to have two separate models overlapping and doing the same motion, with one visible and the other invisible (to the camera).
When a transparent plane covers half of both models, the first model disappears and the second model appears within the area of the plane.

Currently, I have figured out how to do the "first model disappears and second model appears" part but the problem is that I cannot hide the second model during the parts where it isn't needed, resulting in z-fighting all over the place...

2021-04-08 03:50

I can't give exact specifics because I'm still a beginner myself, but I know that's done with Render Targets. Look into how those work.

2021-04-08 04:37

Yeah, but there's an effect needed somewhere for this to work. I don't know what it's called...

2021-04-08 05:39

This is not an effect, but rather the good use of the "Model Draw Order" in MMD and the "alpha" transparencies.

suppose you have these objects in this order ...
nude model -> screen-> clothes
In the PMX-Editor you set the nude model to alpha 1.
you put the alpha at 0.99 for the clothing model.
to the screen frame you set alpha to 0.1 (whatever you prefer)

For this example, you must have a nude model and another model of clothing and you load the same motion on both of them.

here is a video of how it is done this way ...
iwara.tv/videos/86wb1fq1lnil3pxol
ecchi.iwara.tv/videos/86wb1fq1lnil3pxol
I hope it helps you.


eso no es un effecto es mas bien el buen uso del "Model Draw Order" en MMD y las transparencias "alpha".

supongamos que tienes estos objetos en este orden...
nude model -> screen-> clothes
en el PMX-Editor al nude model le pones alpha a 1.
al modelo de la ropa le pones alpha a 0.99.
a la frame de pantalla le pones alpha a 0.1 (lo que prefieras)

para este ejemplo deves tener un modelo desnudo y otro modelo de la ropa y a ambos les cargas la misma motion

aqui hay un video de como se hace de esta manera...
iwara.tv/videos/86wb1fq1lnil3pxol
ecchi.iwara.tv/videos/86wb1fq1lnil3pxol
espero te sirva.

2021-04-08 05:38

Oh, I see. So the only requirement then is a transparent Screen model? Is it just a plane with no texture or something?

2021-04-08 05:46

Did you download the file for you to review?

That's one way to do it, there should be more ways, but that's how I would do it.
The screen is only a 4-vertices plane without textures. You can change the colors and transparency to your liking, you can also put the "Glass" material in the Ray.
I used that technique on this ...
ecchi.iwara.tv/videos/empmofbx29ikajz9p
... video so that the Dildo does not pass through the intestines (✿◠‿◠)

2021-04-08 05:58

Okay. I think I get it. Thanks!

2021-04-10 08:05

Okay, on the same subject as this (I'll update the main post too); Does anyone know how to do the opposite of this?

That is, to have a model *hidden* until a transparent plane or effect or something reveals it?

My end goal here is to have two separate models overlapping and doing the same motion, with one visible and the other invisible (to the camera).
When a transparent plane covers half of both models, the first model disappears and the second model appears within the area of the plane.

Currently, I have figured out how to do the "first model disappears and second model appears" part but the problem is that I cannot hide the second model during the parts where it isn't needed, resulting in z-fighting all over the place...

2021-04-10 08:46

So I figured out one way to do it - Using an XRay effect to render the entire model invisible.
Viewing the xrayed model through the transparent screen reveals the model while it remains invisible to the camera outside of the plane, ignoring the xray effect.
No z-fighting, works exactly as intended.

I'd still like to know if anyone has any other ideas that might be better than mine, though!

2021-04-10 11:22

In the "model manipulation" section of the MMD under the "load" tab (where you load the models) there is a box to show or not the model, check it and click the register button ...

to partially disappear the model you could try with two x-ray screens

something like that occurs to me ...
model_1 -> x-rayScreen_1 -> model_2 -> rayScreen_2
or make an inverted rayScreen that is, instead of a 5x10 rectangle, make a rayScreen of a 10000x10000 rectangle with a 5x10 hole in the center.
it would be a matter of trying it

2021-04-11 04:48

Yeah, the problem with using the disp box is that when the model is hidden, I can't reveal only, say, the top half. It's great for other situations though...

And the problem with using multiple xray screens is that the topmost xray screen hides both models! Doesn't seem to work at all...

The inverted rayscreen idea is neat though, and that might work? I dunno, would have to try it out...