#💬 equinʹs Feedback

1 messages · Page 1 of 1 (latest)

golden cairnBOT
tired vapor
#

this is without ray tracing enabled

#

fps ranges from about 28-35 on my laptop which is pretty outdated

winter dirge
#

sexy my friend

#

🔥

vast knoll
#

roblox has shaders?

tired vapor
#

i think shaders have to be downloaded from another site or something like that

tired vapor
tired vapor
vast knoll
tired vapor
vast knoll
#

Yea

#

I’ve made a ray tracer before on shader toy

tired vapor
#

ok basically it's using attachments and a mix of pointlights and spotlights

#

one min

#

so what this is doing is using raycasting to detect the 3d position of a bunch of different positions on your screen, putting an attachment at that position, and inserting pointlights/spotlights inside of those attachments. Each of the lights are influenced by the other lights surrounding them, using a lerp function to combine the two, and also it can vary based on how far away the light is, the brightness of the light, and the range of the light

#

those green dots aren't gui btw, they're actual attachments in game

vast knoll
#

So it’s like an approximation

#

Cool idea

tired vapor
vast knoll
#

Technically it’s not ray tracing because you are using point lights

tired vapor
#

it's not guessing with the lights, it's using a lerp function to change the color combining the blue and red

tired vapor
vast knoll
#

But it gives off the same effect

tired vapor
#

raycasting uses rays

vast knoll
#

Yea but it’s still an approximation

tired vapor
vast knoll
#

The ray tracer

tired vapor
vast knoll
#

Am actual raytracing shader

tired vapor
#

just not one you download from online

vast knoll
#

It’s not

#

It’s still being rendered with rasterizarion

#

You make point lights with ray casting to give off the effect of raytracing

#

Hence approximation

tired vapor
#

can it not calculate the position of lights and use that to reflect specific colors?

vast knoll
#

Do you mean can’t use?

tired vapor
vast knoll
#

Raytracing doesn’t use rasterizarion

#

Rasterizarion is how Roblox renders stuff

#

Lights and meshes and stuff

tired vapor
#

ohh i thought that was like changing the pixels on the screen individually

#

so why can't ray tracing use lights? it's still using raycasts to figure out what the colors should be

vast knoll
#

Ray tracer should set pixels individually because that’s how you get the detail

#

Otherwise it’s just an approximation

#

Nothing wrong with that given the limitations of the platform

tired vapor
#

just one method is more accurate than the other

vast knoll
#

No

#

When you calculate the value for each pixel it’s not an approximation it’s just a raytracwr

tired vapor
vast knoll
#

Pretty much

tired vapor
vast knoll
#

It’s an approximation

#

But not actually a ray tracer

tired vapor
#

the goal was not to change each individual pixel, it was to use my own concept for ray tracing

vast knoll
#

Idk but it’s still an approximation

tired vapor
young wraith
#

@tired vapor

tired vapor
young wraith
#

how did you used to update the view model CFrame?

tired vapor
young wraith
#

im having problems with mine and id like to know how did you got it working

#

for looping

tired vapor
young wraith
#

my native language isnt english

tired vapor
young wraith
#

ion acc speak it rlly well

#

the position

#

gets messed up

tired vapor
#

hmmm

young wraith
#

because of the loop yk?

tired vapor
#

what loop are you using

#

while loop?

young wraith
#

render stepped

tired vapor
#

can you send your code

#

actually can you just dm me

young wraith
tired vapor
#

this is a little bit of an awkward place to help with that lol

young wraith
#
RunService.RenderStepped:Connect(function()
    if Player.Character.Humanoid.Health <= 0 then
        ViewModel:Destroy()
    end
    if Camera:FindFirstChild("ViewModel") ~= nil then
        ViewModel:PivotTo(Camera.CFrame * CFrame.new(ViewModel:WaitForChild("XOffset").Value, -1, -1))
    end
end)
young wraith
#

its gonna be 4 days tomorrow

#

that im trying to fix this

#

ive tried everything