t3kt / raytk

Raymarching shader toolkit for TouchDesigner
https://raytk.net
Other
238 stars 15 forks source link

Problem with World Position output from RaymarchRender ROP #1207

Closed WMAcademy closed 5 months ago

WMAcademy commented 5 months ago

Hi! While I was following your tutorial series (part 8: depth and buffers) I found some problems with the world position output. It gives me an empty output and the ROPs don't give me any error. The switch for that output is enable and I cannot solve the problem.

There are the information requested:

Thanks in advance

t3kt commented 5 months ago

Do you have a file with an example? I attempted to reproduce the issue but it seems to be working properly for me.

I tried using worldPosMap:

image

And also renderSelect:

image

WMAcademy commented 5 months ago

I just found out that by referencing the RaymarchRender OP inside the WorldsMap OP as you did just works fine! Before that i've connected the two operators directly and it gave me no results but I can resolve with tha method, Thanks!

t3kt commented 5 months ago

Got it. That input is designed to take in the worldPos output from a raymarchRender3D, so if you connect the main color output from the renderer it isn't going to do what you want.

t3kt commented 5 months ago

I'm updating the input label and the docs to clarify.