Skip navigation
Ray-traced parallax octahedral impostors
0:00 / 1:40

Ray-traced parallax octahedral impostors

SamG

@SamGCoder1.5K followers

Visit on X
602 likesDownloadOriginal post

16,912 views

Ray-traced parallax octahedral impostors Made a forest renderer in rust + vulkan. close trees are the real megaplant meshes, anything past 50m turns into an impostor that gets ray marched inside an RTX intersection shader. 81k trees running around 7ms. got the idea from Toni Macaroni’s forest video

35 Comments

Comments from the original post on X (Twitter)

  • Cody Bennett's profile picture

    @CodyBennett

    Why do you fall back to impostors and not voxels like recent Unreal Nanite?

    4 likes

  • SamG's profile picture

    @SamGCoder

    It was more that I was watching that video closely and I wanted to reproduce the same effect.

  • SamG's profile picture

    @SamGCoder

    Ref:

    3 likes

  • Matt's profile picture

    @MrCollison

    This is very cool!! I'd love to see how it compares performance wise to a good voxel implementation Makes a lot of sense using CLOD as beyond a certain range voxels can cheaply represent a pixel of an area & works well with other parts of the pipeline

    2 likes

  • DJ NYAAAN's profile picture

    @djnyaaan

    これは素晴らしいね。かなり軽快な動作に見えるよ

    1 like

  • Jan Orszulik's profile picture

    @JanOrszulik

    I love the result, I don't love 7ms for 81k trees alone if I am being honest.

    1 like

  • SamG's profile picture

    @SamGCoder

    Most of that comes from rendering the megascan tree. I can use meshlets for close trees and should improve performance

    1 like

  • Martin Vestergaard Madsen's profile picture

    @martinvkummel

    @JanOrszulik why would that. improve performance for close trees?

  • Jan Orszulik's profile picture

    @JanOrszulik

    @SamGCoder I assume because close trees are real models with high overdraw and lot of fine geometry.

    1 like

  • SamG's profile picture

    @SamGCoder

    @martinvkummel its the megaplants: Black Alder from Quixel Megaplants.

    1 like

  • Xappy X D's profile picture

    @XappyD10564

    I think Toni’s is using meshlets and HZB (like nanite) for the real trees? Yours are using normal meshes IIUC. And he explicitly said he’s not using imposters. Still looks great but I don’t think it’s quite the same

    1 like

  • tarun bana's profile picture

    @iabom

    Wtf. Rust seems to be the move?

    1 like

  • SamG's profile picture

    @SamGCoder

    Yeah rust is awesome

  • CYBRDELIC (anti-technototalitarian/acc)'s profile picture

    @cybrdelic

    Looks very similar🔥🔥

    1 like

  • Michael Hartjen's profile picture

    @HartjenMichael

    That method was done 13 years ago with unity

    1 like

  • SamG's profile picture

    @SamGCoder

    @grok compare both methods.

  • Grok's profile picture

    @grok

    Old Unity forest impostors (Terrain billboards/ABI ~2013) were simple rasterized camera-facing quads or multi-view atlases with basic texture lookup and optional stippling. Yours are parallax octahedral atlases evaluated live by custom RTX intersection shaders (ray-march depth/coverage inside AABBs). Full RT pipeline integration gives accurate shadows, lighting consistency, and seamless mesh transitions that raster billboards never matched.

    9 likes

  • Isaac Besora's profile picture

    @ibesora

    @SamGCoder @HartjenMichael @grok compare that technique with the Omnidirectional relief impostors paper

  • Grok's profile picture

    @grok

    ORI (2007) packs a few optimized relief heightfields on discrete planes, picks ~3 per view, and ray-marches them in raster fragment shaders for parallax and silhouettes. Your parallax octahedral atlases use denser continuous directional sampling, then evaluate the depth/coverage via custom RTX intersection shaders inside AABBs. Full RT integration yields correct shadows, secondary rays, and lighting consistency that pure raster relief impostors never delivered.

    2 likes

  • Isaac Besora's profile picture

    @ibesora

    @SamGCoder @HartjenMichael But isn’t adding shadows, secondary rays and lightning to ORIs quite easy? The main contribution of both techniques sound the same: raymarching relief impostors