#Mirror Reflection not working

1 messages · Page 1 of 1 (latest)

ember oak
#

There are actually two problems
First one is the fact that the reflection on the mirrors appear as the missing texture icon.
The second is that Only some of the mirrors I have placed/place appear in celeste, but work fine in lönn.

#

(images showcase the second problem)

#

video showcases the first

upbeat aspen
#

Where are your mirror masks and where are the actual decal pngs?

ember oak
#

the decals are here

#

and..

#

the mirrormasks here

upbeat aspen
#

Yeah, your mirrormask folder structure needs to mirror (pun noticed but unavoidable) the folder structure for your decals

ember oak
#

pun

#

detected

upbeat aspen
#

So they need to be in the subfolder AquesAquir/Deserted_Wastelands

ember oak
#

oke

#

gonna try again

#

First problem fixed at least!

#

wait, nvm

#

maybe

#

maybe both have been fixed

upbeat aspen
#

What was the second issue, I couldn't tell from your screenshots

ember oak
#

umm, in lonn you can see that the middle of the tubes (and hovering above the ground) there is a slight darkened tone. but then in game, I can only see the ones hovering in the air

#

its actually a layering issue

upbeat aspen
#

I see 3 tubes in loenn and 3 tubes in Celeste?

ember oak
#

ye

#

imma show a vid

#

basically in lonn the mirror assets appear above the behind wall

#

but in game they are actually behind it for some reason

upbeat aspen
#

I'll take your word for it

ember oak
#

umm, I send a better one

upbeat aspen
#

It sounded like you fixed it though?

#

Or is this still an issue

ember oak
#

its still an issue I guess yeah

#

at the start I show that you can see the glass in lonn (hovered over them with my mouse)

#

then I went to celeste showing that they didn't appear in game

#

after that I went back to loenn adnd removed the back wall (at the same time somehow removing the mirrors in loenn too?)

#

but then in game everything looks fine

#

so for some reason the layers look different in lonn then in celeste (unless I am stupid)

upbeat aspen
#

So you think the issue is just that the back wall is in front of the mirror?

ember oak
#

they souldn't be

#

I copy and pasted them several times

#

and them why do tehy look like they are at the top in lonn?

upbeat aspen
ember oak
ember oak
#

I cant see any depth in here?

upbeat aspen
#

Add a thing before or after the <mirror /> tag in your xml saying <depth value="some value, idk try 100" />

ember oak
#

ok

#

gonna try this

upbeat aspen
#

It should put your glass decals in front of all the others

ember oak
#

mhm

upbeat aspen
#

Is everything fixed then?

ember oak
#

Yeah :D

#

Thanks for helpingmaddyhug

mint drift
ember oak
#

do be like thatcluelesseline

ember oak
#

wait nvm

#

its not fixed

ember oak
#

@upbeat aspen you should probably un tag this

#

I'll try a few possible fixes now

#

(I removed the line of depth line of code)

Nope, although the mirror were placed after the background thing, they appear in the background
(atleast the mirrors work now though)

#

imma try with FG mirrors

#

Even FG mirrors are behind a previously placed BG backgrounddestareline!

#

is this because they are semi transparent?

lean jay
#

just found this

// when making a decal mirrory:
private void MakeMirror(string path, bool keepOffsetsClose) {
  // make it further away? for some reason?
  Depth = 9500;
  // some other stuff also
  ...

why it do that?

ember oak
#

Umm, can try later... (Australia moment)

lean jay
#

anyway you can make it closer by setting a lower depth value, and 9000 is what most bgdecals use

slow gust
#

is this some wacky vanilla compat thing lmao

ember oak
lean jay
ember oak
#

thats it?

#

well, imma try it now

lean jay
#

try 8990

ember oak
#

oke

lean jay
#

maybe the reflection is rendering behind the other decals?

ember oak
#

maybe?

#

how do we fix that

#

it works without the background still atleast...

lean jay
#

yea i think the reflection is rendering behind the decals. not sure if that's fixable

ember oak
#

so... I can't have a background behind the mirrors?

#

that sucks

lean jay
#

you could move the other decals back so their depth is greater than 9490, which is where the reflections are fixed at
or you could use a change depth trigger to move the MirrorSurfaces entity forwards to have a depth of around 8990

ember oak
#

umm, so do I need to add the background assets to the .xml file?

#

and then in game use a trigger to move the depth of the mirrors to be higher?

lean jay
#

you can do either, you don't have to do both

ember oak
#

oh

#

oke

lean jay
#

i'd recommend the change depth trigger

ember oak
#

yeah, thats what I thought

lean jay
#

Crystalline Helper has an edit depth trigger, hopefully it supports this

#

the potential problem is that the MirrorSurfaces is special, there's only one per map and i think it's always at 0, 0

ember oak
#

what do I put in this box?

lean jay
#

just 8990

ember oak
#

oh, oke

#

I feel like the 'effect on entities' box has the wrong thing in it (as in it need to be structured differently). Did I get it correct?

#

(also its not working)

lean jay
ember oak
#

wait

#

nvm

#

I am yet to enter the triggerfacepalmeline

lean jay
#

it's not one of the triggers you have to enter
i guess it doesn't work on MirrorSurfaces catplant

ember oak
#

it just disappears (the trigger)

#

so then what?

#

or do we just say its impossible (not counting absurd methods that would take far too much time compared to the result)

lean jay
ember oak
#

k

#

nope

lean jay
#

it might not be possible without further shenanigans

ember oak
#

do we just mark this as resolved?

#

its not really tho

lean jay
#

it's not resolved so i'm not going to mark it resolved yet

#

i'll have a look

ember oak
#

mhm

slow gust
#

decal registry attrs are processed in xml order right?

ember oak
#

?

#

oh yeah, ill just share the xml real fast

slow gust
#

that's more of a question for microlith

ember oak
ember oak
lean jay
slow gust
#

oh right I keep confusing myself whoops

#

looks like change depth trigger only hits collidable things despaireline