#DLSS Mod

29 messages · Page 1 of 1 (latest)

woven topaz
#

Looking for a viable way to create this mod, still haven't found anything promising, not experienced in this arena

olive raptor
#

The forums are for mod support not making mods

woven topaz
olive raptor
#

Thats why we have #💻┃mod-making¹ and #💻┃mod-making²

woven topaz
olive raptor
#

Thats fine

ivory gazelle
#

Hi there

#

1- Look for a open source c# inference library
2 - save the final render with a command buffer CameraEvent.AfterEverything or change camera targettexture, or uses graphics blit to copy null to your render texture
3 - throw the render texture to the inference lib
4 - get the upscaled texture
5 - use graphic.blit(upscaled texture, null) to put the upscaled texture as final image

woven topaz
#

Also could you share the source of that AI processed gameplay you shared?

#

Very cool stuff

ivory gazelle
#

i dont think i can elaborate more, like it is just that. You will need to take a look in what is AI inference, and how to run a upscale AI model inference

woven topaz
ivory gazelle
#

all upscaling methods are just AI models (including FSR, DLSS, everyone), if you want to upscale a image, you will run the AI model inference over the image, thats how it works

#

so a inference lib is a tool to help you running any model inference

#

with that, you can run any model using the same code

#

upscaling models are a type of ai called convolutional neural network (CNN)

woven topaz
#

What inference library should I use though? I wouldn’t know what to look for when trying to find one. Just C# obviously but how do I make it work with the game also… idk

ivory gazelle
#

basically you will want the .dll of the lib and link within your mod.

#

so you can just use the classes/functions of the library inside your mod

#

i dont know which library you should use because i never did this in c#, i made very big projects that runs inference in c++ but never c#

#

you will need to search by yourself at google: "C# ai inference lib"

#

use the more famous that appears

woven topaz
#

If i could like bridge with another language in c# that seems more feasible because i couldnt find anything

#

Like c# binding for a c++ inference library

ivory gazelle
#

you could "bridge" by using an wrapper lib, this is common for big known libraries

woven topaz
#

I guess that’s basically the same thing though nvm

woven topaz
#

Forgot the terminology