Map textures for custom levels
As the title says, how would one generate map textures for a custom level, in the style of base game's textures? (see screenshot) In addition, how would one use said textures without having to reimplement map fog?
Material_UI_MapFog
has non-parameter references to the four sliced map textures, but we do not have the actual implementation of the material in the starter project.285 Replies
That texture I think is shot from the editor through a very long and painful process, and then post processed in Photoshop by hand
Hmmmmm, fair enough. I've been trying to figure out how to give a map texture some sense of depth; I can get a heightmap, but I don't know how to use it to achieve what I'd like (lower parts are darker, thin lines to show the height gradient, thick lines to show abrupt height changes)
I might need to adjust the settings of these and reconnect the base colour, but this is starting to get somewhere. Yes, there's some pixel artifacts, but I don't want to make the resolution too high yet
automatic-azureā¢3w ago
this was one of my plans once i'm done with my actual map framework
i have some ideas about how to generate the same kind of pictures directly in the editor
at least i exactly know how i would do it on Unity, i'll just need to see if i can process the idea with Unreal
it definitely wasn't made with an image editor soft, it surely used the world heightmap
tho i think i could make a C# tool to generate it from an heightmap now i think about
I asked Pontus how we made this, but okay
automatic-azureā¢3w ago
ah ?
my bad then ^^
It uses height map image as a base, with photoshop post processing
automatic-azureā¢3w ago
what kind of post pro was done on PS ?
no idea, have not asked the specifics. I could poke him I guess if the intention is to try to get a similar looking map
automatic-azureā¢3w ago
an interesting info we could need was the color palette used for it
the image is compressed so trying to find with a color picker it may result a small lack of fidelity
or is that really a palette ?
I think it's using a few base colours with shades on top
automatic-azureā¢3w ago
a gradient ?
base color, top color
More like land colour, water colour, edge detection on heightmap for thick lines, something about remainder of heightmap for the height gradient (contour lines), AO or height data to darken lower areas
automatic-azureā¢3w ago
for the edge detections i though something like
if a neighbor pixel don't have the same height, so consider it's an edge
and color it depending of the height difference
There's algorithms for this, e.g. Sobel
automatic-azureā¢3w ago
sobel is to detect edges, but i never worked with it, does it consider the height difference ?
and will show darker an edge if the height difference is bigger ?
Since I'm doing this at runtime, I used some "Height to Normal" MF and used the Z component of the normalised normal to darken the colours
You detect edges on the heightmap š
automatic-azureā¢3w ago
automatic-azureā¢3w ago
i already get an interesting gradient
automatic-azureā¢3w ago
automatic-azureā¢3w ago
hey, look at that :P
*forgot how to do normalization with numbers :grumpy: *
i learned that at college years ago, crap xD
I normalise a vector
automatic-azureā¢3w ago
just found
number/stepsize*stepsize
magic
automatic-azureā¢3w ago
automatic-azureā¢3w ago
ops, notmalized at wrong place
automatic-azureā¢3w ago
automatic-azureā¢3w ago
better :D
That's quantization
automatic-azureā¢3w ago
names are boring xD
i'd call everything a normalization
Which is outright confusing
I'd suggest looking at a big ramp in the map to see if it's quantised or if it is handled differently
automatic-azureā¢3w ago
not sure to understand what you mean
if they used the heightmap of the world's terrain it should be quantized to make the steps more easily
It's not quantized
automatic-azureā¢3w ago
there gradient inside of the steps ?
I can't tell
I know there's contour lines, that's something like
heigh % 100
where 100 is the height between contour linesautomatic-azureā¢3w ago
automatic-azureā¢3w ago
it's really hard to see
but i think, despite of the compression
there no gradiant in the steps
if you see the middle step, it's same color west to east
Do you find any steps anywhere?
Also for analysis you should grab the textures from the game files, don't base yourself on the screenshots I send for quick reference
automatic-azureā¢3w ago
by stem i mean the space between the lines
i have them don't worry, they are also compressed
automatic-azureā¢3w ago
automatic-azureā¢3w ago
compressed as hell
Are those 4x4 blocks of pixels?
automatic-azureā¢3w ago
jpeg artefacts yes
If you got the textures as jpeg you're doing something wrong (e.g. not telling FModel to use PNG)
IMHO that's probably DXT1 compression artifacts (DXT1 works on 4x4 blocks of pixels)
automatic-azureā¢3w ago
it's a PNG, i get a .PNG file
Then it's not jpeg artifacts
automatic-azureā¢3w ago
but it may have saved as jpeg someday
let me double check on Fmodel
By whom?
automatic-azureā¢3w ago
devs i guess
but fmodel maybe messed up
I highly doubt the devs would've used .jpg as interchange format
Also this
automatic-azureā¢3w ago
Thats's FModel's export format
automatic-azureā¢3w ago
ye
not wrong tbh x)
fresh from Fmodel
i still see artefacts
i'll remove it soon, it's an asset, not supposed to send it like that
I've implemented a DXT1 / DXT5 decompressor, the scars won't go away anytime soon
automatic-azureā¢3w ago
nice
that's even possible tho ?
?
automatic-azureā¢3w ago
once it's compressed, how can you reverse it ?
It's actually easier to decompress the data, but it's not relevant atm
Looks like there's quantisation: areas between contour lines seem to have just one colour
But it's a lot more subtle than this
Would be good to know the height difference between contour lines
automatic-azureā¢3w ago
ye, the best idea i had to do it is to use the speedomeeter and try to get at the lines in game directly
with a quick hook you can increase the max zoom of the map, that may help if you want to do it
but otherwise i'll do it anyway when done with the code on my side
i just understand now why the postpro was for
at least in my process method, i need post pro to draw the edges
automatic-azureā¢3w ago
automatic-azureā¢3w ago
well, i got an interesting result xD but not the one i wanted
How did you make this?
automatic-azureā¢3w ago
automatic-azureā¢3w ago
messing up
for each pixel i compare it's height with the 4 neighbors pixels
if there a height diff i draw a dark pixel
This is what I do right now,
CaptureData
has scene colours in RGB and height in Aautomatic-azureā¢3w ago
automatic-azureā¢3w ago
i'm getting close to it
Yeah, though the contour lines aren't as dark
automatic-azureā¢3w ago
yep
hmmm
the lines color are not only based on the height diff
but also on the background color
It's likely an overlay
automatic-azureā¢3w ago
yes
but i can't add layers like that with C#
Notice my "Multiply" node in this thing
automatic-azureā¢3w ago
I challenge you to use Unreal materials for this :wonke:
automatic-azureā¢3w ago
š
I like the material editor, you get pretty much instant feedback
automatic-azureā¢3w ago
it's also an easy way to use GPU to compute things
automatic-azureā¢3w ago
automatic-azureā¢3w ago
found
this is supposed to be a sudden big plane reaching the sky
and, the line is dark
automatic-azureā¢3w ago
automatic-azureā¢3w ago
vanilla map ā
automatic-azureā¢3w ago
automatic-azureā¢3w ago
generated ā
I wonder if there's some sort of smoothing going on
But colour wise it looks good
automatic-azureā¢3w ago
i'd need a better heightmap to see the result
because the heightmap i have is too smooth
i need a heightmap with plates and clifs
Er, I said it wrong
I wonder if there's smoothing in the vanilla heightmap, since the contour lines on yours are more "stressed out"
Or maybe it's just the algo, https://en.wikipedia.org/wiki/Sobel_operator exists
automatic-azureā¢3w ago
in both cases i'll have to implement it in C++ inside of unreal :c
Why so? This is a material
I actually use that material in-game: https://discord.com/channels/555424930502541343/623891487683510323/1301172872760262759
automatic-azureā¢3w ago
you sure i could do everything with a mat ?
I mean... https://discord.com/channels/555424930502541343/623891487683510323/1217952280888873041
You can use HLSL if you want to, but you could also use a bunch of nodes
automatic-azureā¢3w ago
i never learned shaders
HLSL will kill me
xD
automatic-azureā¢3w ago
automatic-azureā¢3w ago
also added the water edge
automatic-azureā¢3w ago
automatic-azureā¢3w ago
automatic-azureā¢3w ago
but compression doesn't help to get the color
anyway, i will go to sleep soon
i drop what i done if ever that help someone
https://github.com/HolographicWings/Satisfactory-Simple-Heightmap2Worldmap
it's as much optimized as my brain, don't blame me
hmmm
wait a second
automatic-azureā¢3w ago
automatic-azureā¢3w ago
they didn't used only the heightmap
also for water, which can be on clifs and plates, i mean they didn't used a static water level
surely some raycasts
Heightmap without collision with water volumes?
automatic-azureā¢3w ago
there some rocky arcs, which are meshes, not from the terrain
Yeah, most of the cliff faces are meshes too
automatic-azureā¢3w ago
and water are also not a part of the terrain, as they have different heights it's not a "waterlevel" as i did on my tool
so i think it's a raycast, the watervolumes maybe have a specific tag
if the raycast hit water, it draw the pixel as blue
It's probably an orthographic scene capture
automatic-azureā¢3w ago
you think ?
You can get a height out of it
I get a height out of it
automatic-azureā¢3w ago
hmm, maybe indeed
This is based on runtime height data
automatic-azureā¢3w ago
damn, i did everything for nothing xD
Why?
Getting runtime height data is expensive as it requires the level to be loaded
I tried loading the entirety of the level once, it didn't end well (not enough RAM)
automatic-azureā¢3w ago
because i didn't though about meshes and elevated water
What kind of input files are you working with?
automatic-azureā¢3w ago
only heightmap
and waterlevel
Okay, then just capture a heightmap of the level when you're done making it nice
automatic-azureā¢3w ago
for me heightmap is only for terrains, doesn't considering meshes exists
it's possible to capture an heightmap the entire level (even meshes) ?
Yes, I just said it's possible
I do it at runtime using a scene capture component 2D, but it's expensive (so I can't just capture every tick). But it's fine to do in the editor and save the results to a texture
automatic-azureā¢3w ago
the idea would be to take it once anyway
can be done in editor ?
or only runtime ?
Yes, if you have the meshes you use
automatic-azureā¢3w ago
ah you said yes for editor just above
sorry i'm getting tired x)
Go to sleep then š
automatic-azureā¢3w ago
a friend want to show me a game and kidnapped me ;-;
Can't you use the world partition editor that ue5 has to export one?
Not that I remember how you do it, but I remember seeing about it not that long ago
I don't have the persistent level, though š What I do at runtime is for another mod (OrthoMap)
I would still like to know how to make map textures for custom levels, e.g. ExampleLevel
ExampleLevel does not use World Partition, and World Partition does not work out of the box
Ah well then I think you'd want to for example place a single capture per chunk that only cares about persistent meshes and captures a simple depth texture, and then add in the contours at fixed frequencies with biasing so that areas with a high steepness don't get completely useless.
So basically say that for example you make sure there's at least say 15 pixels between every contour line, and you can for example smoothly interpolate the contour line transparency based on the steepness, such that for example if each contour represents a 5 meter elevation, you'd want it to be such that whatever the distance covered by 15 pixels over that height variation was met. You could even pass that function through a square root so it starts making the contour transparent much later, or with a power so it starts rapidly.
And then for the gradient texture you'd probably want to use color lerp-ing between a slightly dark brown color at the lowest elevation to an almost completely desaturated white at the highest elevation, and then you basically make it so that the color is also constant inside a single contour, I.e. quantized, however I think you'd also want to use the same biasing as with the contour to also start interpolating to a linear gradient again when the steepness is very high.
And then the thickness of the contour should be based on the steepness being practically 1, I.e. the height difference is basically an instant jump in elevation.
Second to last for the bathymetry it seems they almost skip contours entirely, they kinda look like they start out with a quantized color lerp between a bright blue at the shallowest depth to a teal color at a specific depth, and then it seems there's a sharpness filter which might be biased by steepness? Might be very wrong there tho. Anyways and then it seems there's an additional repeating noise pattern over the bathymetry.
And for the well void it seems they just outline the edges where a valid height meets a well infinity I suppose with a pure white line of roughly the same thickness as the thickest contour line (Probably done with outlining based on alpha transparency, since the white outline is outside the thick contour lines), and then at the end there's just a distance field with a roughly estimated distance of 88.13 meters, so probably 90 meters, lerp-ing from a gray color to black.
What a wall of text amirit :lmao:
Hmmm, I sort of follow
automatic-azureā¢3w ago
@Rex
automatic-azureā¢3w ago
got the palette on material
and i read there an integrated feature for outlines
i will give up with material
i just hate that
automatic-azureā¢3w ago
automatic-azureā¢3w ago
what the hell is that ? XD
An if statement
Or in the case of shaders is just a conditional selection
You can't really have branches in shaders, as both paths need to be evaluated anyway. Roughly speaking, GPUs are SIMD (Single Instruction, Multiple Data): they apply the same operation to a lot of different values at the same time.
What would you like to do here? I'm curious
Did you know there are cpus that do single instruction multiple instructions?
As in it encodes multiple actual instructions in a single instruction.
Oh and there are also cpus that do multiple instructions simultaneously (without multiple cores or pipelining).
automatic-azureā¢3w ago
Display a surface in blue if there a transparent surface over it
In short
Apply a second color palette
if there a transparent surface over itWhat is that transparent surface?
automatic-azureā¢3w ago
water, but in short anything that use a transluscent shader
i noticed they are not shown by the post processing material when i get the SceneDepth
Maybe try and get a heightmap of only the water stuff, and then if the water height is above the terrain height it's under water so you choose the water palette?
automatic-azureā¢3w ago
problem is the water isn't recognized in the SceneDepth
it only see opaque things
maybe i could mess up with the pencil settings, but i don't understand them
Perhaps see if there's a way to disable the transparency on the water material?
automatic-azureā¢3w ago
i don't understand
the point is to draw the second palette on the water surfaces, if they are not longer water, i'd don't need to draw them in blue
that would mean the make them opaque for the screenshot, THEN make them transluscent again before to pack the mod
Other than that, you might be able to export the direct heightmap of the water/lake objects, depending on what plugin/system is used I guess
automatic-azureā¢3w ago
i could merge two images yes
but how can i get the deepness of the water ?
waterHeight - terrainHeight
š
automatic-azureā¢3w ago
the blue palette depends of the deepness of the water, so it must hit both, the water and the bottom
If they both start at the same Z value that is
automatic-azureā¢3w ago
i seen the pencil config may be the only way to hit the water
and it will apply for the whole shader
so i can't hit both opaque and transparent, into two distinct results, inside of the same shader
at least i don't see how
You can do a prepass first to get the water height into a texture, and then attach that to the second pass where you go over the terrain height
automatic-azureā¢3w ago
hmm
i vaguely see
when merging two maps, i could get the difference between them
automatic-azureā¢3w ago
automatic-azureā¢3w ago
me when watching a pixel shader guide
i still don't understand how work an if statement in a shader
i wasn't aware that was even possible to have one xD
is that the multiverse ?
are we in the matrix ?
is that how hell looks ?
am i dead ?
shit, i didn't emptied my history
Say you have the following, what it does is first computes
temp1 = texCoord - 0.5;
then computes temp2 = texCoord + 0.5;
, and finally it does a selection based on the conditions texCoord < 0.5
and texCoord > 0.5
(in this case only one).
In code it would be similar to:
Or with componentwise code:
TLDR: The gpu will execute all paths
automatic-azureā¢3w ago
that only exist in pixel shaders ? or conditions are similar in compute shaders ?
someone adviced me to learn compute shaders instead, i was like "never! prefer to die xD"
is there even a difference between pixel and compute shaders ?
Which technically from nvidia guidelines to do with multi pathed shaders, where both paths are inherently separated, you should disable the cuda cores that don't do work towards the final image. I.e. do an actual "branch"... Reason being if you're gonna waste performance, you might as well save on power consumption
We call this form a conditional move or cmov on x86
Basically it only does an instruction level "branch"
So yes it exists in compute shaders too
And vertex shaders, and geometry shaders and pretty much every other shader
automatic-azureā¢3w ago
oh, i see it clearer, thanks you
i miss my C# ;-;
To a degree yes.
They all work the same, I.e. have the same general set of instructions.
However fragment/pixel shaders are executed for every fragment produced by the rasterizer stage (And yes fragment is the correct term here, because a pixel refers to the output image, fragment refers to a theoretical point within a pixel defined entirely by the rasterizer, reason being MSAA or Multi Sampled Anti Aliasing would run the fragment shader n times within the same pixel and then average the color to produce the final color for the pixel, giving you an anti aliased image, some implementations end up creating an image that's larger rendering to that first and then doing a resolve to downscale which is kinda stupid imo, but hey that's now just super sampled anti aliasing or some shit)
Anyways, the fragment/pixel shaders are given data outputted from the vertex shader, and then they explicitly write to a specific pixel in multiple attachments, I.e. you don't control the write locations, in a compute shader you can have that control entirely.
Might be a little complex but shaders are kinda like that xD
automatic-azureā¢3w ago
aaaaaaaa
are you playing "trying to confuse holo even more" ? xD
:lmao:
Perhaps :>
automatic-azureā¢3w ago
automatic-azureā¢3w ago
i guess i can use this to draw outlines then ?
if any neighbor pixels aren't in the same color, so i consider is a outline ?
Naah, but regardless, gpus use SIMD processors which means each actual core will run the same instruction on a lot of data at the same time, so because of that there's no way to branch different executions on a single core to different parts of the code, therefor you either overwork the gpu with just bogus data and select the correct data or you disable the executions you don't need and reenable them once you need them again. NVidia refers to this as SIMT (Single Instruction Multiple Threads).
Oh there's actually a handy little instruction on gpus called ddx and ddy, they give you the change in values across multiple executions, generally with a neighboring pixel. So you might be able to use that somehow.
And also they're only available in fragment/pixel shaders
For obvious reasons xD
automatic-azureā¢3w ago
rex mentioned Sobel but i have no idea if this algo can return the height difference between two neighbor pixels
A sobel filter will work and that's essentially what the ddx and ddy functions do.
But also not, because they don't use a sobel filter internally
Notice how it becomes gray here
Mind you the ddx function doesn't know how texcoord actually changes before hand
And here notice how ddy is black whilst ddx is gray. That is because texcoord.x only changes along the x axis, so the rate of change along the y axis is 0
automatic-azureā¢3w ago
automatic-azureā¢3w ago
i'll never be able to make complex shaders xD
Ok you see this,
fmod(texCoord.x * 16, 1)
When the camera is not directly lined up you get this with ddx of that
So basically ddx and ddy depend on whether the pixels you care about are going through the same execution so that it works, otherwise it wont work...
The sobel filter will work, as you just sample the previous and next pixels and then find the average rate of change across the center pixel with that
automatic-azureā¢3w ago
another problem i get
translucent material still don't show
even with custom stencil or custom height
What did you make them with?
Not the materials, but the objects themselves
automatic-azureā¢3w ago
automatic-azureā¢3w ago
applied this to two things
automatic-azureā¢3w ago
automatic-azureā¢3w ago
this dark cube and one cell of the terrain
terrain is opaque, cube is translucent
automatic-azureā¢3w ago
automatic-azureā¢3w ago
this is the settings of the post pro shader
automatic-azureā¢3w ago
automatic-azureā¢3w ago
and when i do the render, only the cell shows
Ah so custom objects, ok lemme think a little bit
automatic-azureā¢3w ago
ok just finally found
So it's also invisible in the scene depth visualization?
automatic-azureā¢3w ago
Allow Custom Depth Writes
needs to be on the water
not the post pro
but that's a problem
i doubt the water materials of the vanilla waters uses it
The water shader ue5 has is at least visible in the scene depth
automatic-azureā¢3w ago
automatic-azureā¢3w ago
so i can isolate the water
neat
You can also enable "output depth and velocity", but spatio-temporal post processing will break xD
But nobody really likes TAA so xD
automatic-azureā¢3w ago
automatic-azureā¢3w ago
i think i can apply a second rule then
automatic-azureā¢3w ago
automatic-azureā¢3w ago
give a blue palette
automatic-azureā¢3w ago
automatic-azureā¢3w ago
get a brown square
automatic-azureā¢3w ago
Lerp
You can use a lerp node to mix 2 things based on a 0 to 1 value
automatic-azureā¢3w ago
that's interesting :O i did it manually
automatic-azureā¢3w ago
automatic-azureā¢3w ago
but there a lot
LinearInterpolate is the basic one
automatic-azureā¢3w ago
automatic-azureā¢3w ago
automatic-azureā¢3w ago
that's magic xD thanks
Technically, that's just math
automatic-azureā¢3w ago
ah uh
Just remember that linearly interpolating colors can give very umm strange results if the colors are very different
automatic-azureā¢3w ago
no, i still get brown
yes, that's the case
i still get brown
automatic-azureā¢3w ago
automatic-azureā¢3w ago
doign this
automatic-azureā¢3w ago
automatic-azureā¢3w ago
and get this
You can preview each of the nodes individually
am I smelling subtractive color mixing :>
automatic-azureā¢3w ago
yes, something is < 0 i think also
but the alpha is the height, so between 0 and 1
oh
the first divide i did was too low
i must constently get the scenecapture height
oof
i progressed a lot
bruh and just when i tried to screenshot, UE frozen
The duality of ue xD
:borked:
automatic-azureā¢3w ago
automatic-azureā¢3w ago
imagine this is water
automatic-azureā¢3w ago
automatic-azureā¢3w ago
it shows
Water/water, would water again :>
automatic-azureā¢3w ago
oh, broke the palette
automatic-azureā¢3w ago
automatic-azureā¢3w ago
better
dark water
automatic-azureā¢3w ago
automatic-azureā¢3w ago
and if i lift it
automatic-azureā¢3w ago
automatic-azureā¢3w ago
light water
(tho that should be the reverse but that's it)
And if you have it stretch the entire terrain?
Hmmm
automatic-azureā¢3w ago
Looks very shallow...
automatic-azureā¢3w ago
scales need to be enhanced
it's based on 250m
0-1 is 0-250m
automatic-azureā¢3w ago
automatic-azureā¢3w ago
tho the scaling isn't that bad
You might want to up the amount of color bands, and also go to a much darker blue for very deep, but not really all that deep...
How do you calculate the depth bands?
I would assume a rescale and a floor
automatic-azureā¢3w ago
rn i just try to replace the last color by black
but i get an error
automatic-azureā¢3w ago
I'd like to see the nodes you're using to understand what you're doing
automatic-azureā¢3w ago
it's a mess xD i'd need to clean it before to show it
remember my blueprints
you really want to see it ? xD
Yes, I'm not worried
I've seen very bad blueprints, so nothing gonna scare me at least :>
automatic-azureā¢3w ago
That's not too bad honestly
automatic-azureā¢3w ago
the not used if is supposed to replace the last level of blue by black
BTW, this is equivalent to "Saturate"
automatic-azureā¢3w ago
but it gives an error
Ah so round, same same but different then xD
automatic-azureā¢3w ago
this node isn't even needed, i removed it
I would actually just multiply the "Alpha" going into the lerp with the surface colour to darken it
"Saturate is free on modern graphics hardware" (IIRC that's what the node comment says)
automatic-azureā¢3w ago
i don't get the reason of an error
automatic-azureā¢3w ago
automatic-azureā¢3w ago
this statement takes this as A :
automatic-azureā¢3w ago
automatic-azureā¢3w ago
A > B takes the blue palette
a < B takes 0
and it gives error when put into the emissive
but both the blue palette and 0, works when plugged to the emissive
well
automatic-azureā¢3w ago
automatic-azureā¢3w ago
did this and it fixed
automatic-azureā¢3w ago
You probably have multiple channels from the scene textures
automatic-azureā¢3w ago
so with a scalar i can change the intensity of the deepness
automatic-azureā¢3w ago
automatic-azureā¢3w ago
automatic-azureā¢3w ago
well, so, burned my brain enough
so it's pizza time now
also thanks @Marca for explained the weird "if" thingy
Another way to do this without using an if node
automatic-azureā¢3w ago
i'll let optimization for the end
i still need to make the outlines š
pizza gone
automatic-azureā¢3w ago
automatic-azureā¢3w ago
doing this
automatic-azureā¢3w ago
automatic-azureā¢3w ago
give me this
it's the good direction but, i tried a lot of things to fix the broken lineouts
As I noted here, ddx and ddy are rather simple functions, so they don't have info on all neighbors.
You can obviously compute the gradient yourself with a sobol filter.
Alternatively you might want to use the full height value to make the contours
automatic-azureā¢3w ago
it's what i use yes
but the lines are too small
they are cutted everywhere
i treid to make them more bold
automatic-azureā¢3w ago
automatic-azureā¢3w ago
this is the result of mult on the left
also, don't look at the mult 0.1 here, i removed it
automatic-azureā¢3w ago
automatic-azureā¢3w ago
exemple, the square here is a cube
if i move it slighty, the other edges shows, but that's random
like if the edges was too slim
ah..
i read too fast
i missed the "don't" sorry
so ! i need to finish that mat :x
automatic-azureā¢3w ago
automatic-azureā¢3w ago
that's horrible xD
automatic-azureā¢3w ago
automatic-azureā¢3w ago
i can get the heigh difference as outline intensity, but the outline is blurry because of the multisampling i did to fix the slim outline
i'm now sure that vanilla maps didn't used derivatives, the outline is sharp, not antiliased, but also always one pixel
about sobol i still not found how to use it, i even managed to crash UE by using it ._.
Assertion failed: Index >= 0 && Index < CurrentScopeChunks->Num() [File:C:\ar\w\UnrealEngine\UnrealEngine\Engine\Source\Runtime\Engine\Private\Materials\HLSLMaterialTranslator.cpp] [Line: 2995] Index -1/10, Platform=49
when trying to plug a Sobel node in the shader graph š„²
texture sample with default values ā sobel ā emissive color shader's pin
automatic-azureā¢3w ago
automatic-azureā¢3w ago
omg i did it !
automatic-azureā¢3w ago
automatic-azureā¢3w ago