Is there any way to render the normal map to a texture?

comboycomboy Posts: 5Member

Is there any way to render the normals of a 3D scene to a texture?
Ideal would be an option in the viewport to add a normalmap to a generated texture.

I need my object once rendered normally to the scene and it's normals on a separate texture for post processing.
Otherwise I could just use ALBEDO = NORMAL;

Answers

  • TwistedTwiglegTwistedTwigleg Posts: 1,049Admin
    edited January 12 Answer ✓

    I think the plan is to expose framebuffers in Godot 3.1/4.0 when Vulkan rendering backend is added, or at least that is what I gather from this issue on the GitHub repository.

    From what little experience I have with OpenGL, I think when framebuffers are exposed you should be able to get the normal vectors from the rendered image for post processing. In theory, once framebuffers are exposed all sorts of custom post processing shaders should be possible.

    Edit: According to this issue, access to the normal buffer will be available in Godot 3.1/4.0 :smile:

  • MegalomaniakMegalomaniak Posts: 1,087Admin
    Answer ✓

    @TwistedTwigleg You meant to type 3.2/4.0 surely. :)

  • comboycomboy Posts: 5Member

    Thanks for the answer!
    So I can stop searching/thinking ;)

    just started with Godot a few weeks ago.

  • TwistedTwiglegTwistedTwigleg Posts: 1,049Admin

    @Megalomaniak said:
    @TwistedTwigleg You meant to type 3.2/4.0 surely. :)

    Whoops! Yeah, I meant 3.2 not 3.1.
    While it would be cool if the Vulkan stuff came out in 3.1, alas we’ll have to wait for 3.2/4.0 :smile:

Sign In or Register to comment.