RAY PORTAL BSDF Node! - Tangent Space, Parallax, & View Vectors

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • 💡 ➟ blendermarket....
    🩵 ➟ / cg_matter
    www.cgmatter.com

ความคิดเห็น • 192

  • @Kram1032
    @Kram1032 4 หลายเดือนก่อน +292

    This BSDF is so simple but utterly insane. I don't think the guy who casually dropped that into the code out of nowhere was quite aware of how much this allows us to do.

    • @david_for_you_
      @david_for_you_ 4 หลายเดือนก่อน +159

      Hi, author here :) I was aware that this is very powerful, as it is such a basic building block, but I have no idea what people will use it for. The original motivation was getting passes through a refraction for VFX, and I definitely thought about fancy perspective shifts like black-hole effects and lens simulations that should be possible with this. I did not anticipate the sort-of-parallax thing though.

    • @chasingdaydreams2788
      @chasingdaydreams2788 4 หลายเดือนก่อน

      @@david_for_you_ what a G! Im going to find where you live and kiss you!

    • @hugoschumann1854
      @hugoschumann1854 4 หลายเดือนก่อน +11

      @@david_for_you_ Hey, I can tell you, that I'll use it for architectural vizualisations. This is perfect for showing more realistic large scale buildings. Thank you so much.

    • @matidfk5171
      @matidfk5171 4 หลายเดือนก่อน +6

      @@hugoschumann1854 just curious, im using blender for archi work as well, what do you mean by this? you can already get orthographic representations with cameras although that was the first thing i thought of when i saw the video too

    • @32rq
      @32rq 4 หลายเดือนก่อน +2

      ​@david_for_you_ I missed the old cube maps from blender internal. This is like a supercharged version. If this comes to Eevee too I'll be so happy!

  • @SymbolCymbals2356
    @SymbolCymbals2356 4 หลายเดือนก่อน +43

    This is so so so useful:
    - This could be used for NPR lighting, portal from the complex geometry to a simpler mesh lit by it's own lights elsewhere in the scene out of view
    - TV screens without the need for packing video frames into a texture or post-render compositing
    - Fake deformation like the sphere in the video could be used to do that Inception effect of the city bending on itself without actually deforming tons of geometry for real
    - Cheaper character rig deformation by having low poly rigged geometry portal to a static high poly character

  • @SpringySpring04
    @SpringySpring04 4 หลายเดือนก่อน +107

    Portals in Bkender is something I've wanted FOREVER, to get a similar effect like the portal games

  • @FractalParadox
    @FractalParadox 4 หลายเดือนก่อน +38

    wait a minute. you could literally plug in a height map into the vector math node you use to define the perspective. if you invert it, it will act as if the camera is looking "down" a different heights based on the displacement/height map.

  • @quackers969
    @quackers969 4 หลายเดือนก่อน +91

    9:48 To save everyone from the whole having-to-use-drivers-to-undo-object-rotations-business, you can just use Texture's Coordinate's Normal output instead of Geometry's.

    • @quackers969
      @quackers969 4 หลายเดือนก่อน +15

      That's the main difference between them, Texture Coordinate's is object-space, a.k.a. it's invariant to object transforms, while Geometry's is world-space, so it changes as the object rotates.

    • @RhinoTimelaps
      @RhinoTimelaps 3 หลายเดือนก่อน

      how to use it?

    • @nikolagojkovic9361
      @nikolagojkovic9361 หลายเดือนก่อน

      Just add it (texture coordinate node and normal output) instead of the geometry node before scale in the direction input line.

  • @b33b0p17
    @b33b0p17 4 หลายเดือนก่อน +41

    This looks like one of those things thats a game changer but I’m too dumb to know why.

  • @Jonah_Anthony
    @Jonah_Anthony 4 หลายเดือนก่อน +61

    I cannot wait to use this for building windows holy shit

    • @Kiwi-Araga
      @Kiwi-Araga 4 หลายเดือนก่อน +3

      I wonder how something like this is going to impact the performance of a game. Instead of the usual parallax to use a similar technique and point to an actual 3D interior hidden somewhere under the map then apply this to multiple windows.

    • @Kram1032
      @Kram1032 4 หลายเดือนก่อน +9

      @@Kiwi-Araga for Path Tracing it's kinda straight forward, just involving an extra transparency path, but for Raster Rendering, I'm pretty sure this would involve either duplicating geometry, or having multiple cameras which separately render out the image. There are definitely reasons why this isn't normally done in that setting.

    • @sid98geek
      @sid98geek 4 หลายเดือนก่อน +2

      This is some Doctor Strange business. If Render Textures are flat projections of what a camera sees onto a plane or a polygon(s) of a model, then Ray Portal BSDF is like turning a plane or a polygon into its own camera and/or window. This is insane. We live in an era where this stuff exists.

    • @mattburkey
      @mattburkey 4 หลายเดือนก่อน +1

      @@Kiwi-Araga That's how Spider-Man 2 works on PS5, you have rooms in every building, and through those rooms you can see other rooms. They have NPC's moving around in them too. Of course things fall apart when you move around corners and the same room from two angles is two different rooms, but it's still incredibly effective. Spider-Man and Miles Morales had simpler parallax based system, but Spider-Man 2's solution is far more impressive. As for performance, it's able to do that with hundreds of instances at 60fps with ray-traced shadows and reflections on the glass. It's insane! Digital Foundry did a tech breakdown/discussion with one of the game's developers and although they don't show BTS, with a working knowledge of stuff like this, you can get the jist.

    • @ShaneCasserly
      @ShaneCasserly 3 หลายเดือนก่อน

      That's how 3d skyboxes worked in older games. There was normally super small geo outside of the map that was blown up to be the skybox.​@@Kiwi-Araga

  • @Deniil2000
    @Deniil2000 3 หลายเดือนก่อน +12

    finally it's possible to render a novel vantage point in the scene to a plane! You can make CCTV survelliance, portals and non-euclidian space illusions in a single render!

  • @leshiy_nd
    @leshiy_nd 4 หลายเดือนก่อน +12

    Now you're thinking with portals!

  • @Corruptinator
    @Corruptinator 4 หลายเดือนก่อน +11

    This would make it easier to animate 3D televisions without having to do separate rendering, saving hours... days... potentially weeks of rendering and post processing!

  • @benpowell3993
    @benpowell3993 4 หลายเดือนก่อน +16

    Losing my mind over this. Nodevember is gonna be a lot of fun

  • @volodymyrii537
    @volodymyrii537 4 หลายเดือนก่อน +6

    I was waiting for node like "image from camera", but this is so much better

  • @isaachenrikson3197
    @isaachenrikson3197 4 หลายเดือนก่อน +2

    I've been waiting for something like this for so long, genuinely awesome- Especially since it'll allow for SUPER realistic black hole visualizations (stacked planes w/ some """velocity""" data baked into the texture itself)

    • @zefnoly9147
      @zefnoly9147 4 หลายเดือนก่อน

      I was thinking of something similar

  • @Alumx
    @Alumx 4 หลายเดือนก่อน +2

    honestly super exciting, not everyday that we are given such fundamentally mind-boggling different toy to play with

  • @EyeMCreative
    @EyeMCreative 4 หลายเดือนก่อน +5

    This is great for so many things. The first thing I thought of was I wonder how this compares to the parallax method (like what you were building) for things like faux 3D rooms in windows, like you see in video games and stuff. With this version, you could create 5 or so rooms that you keep somewhere out of view, and make copies of this node tree that's mapped to look into each room, and put those texture on the windows. You might also want to make copies for each direction the windows face, because then it'll capture the sun lamp coming through the windows as well. This way you'd get nice, accurate lighting and real depth in the rooms, but it's essentially instancing and only calculating the lighting once and multiplying that for each window. Would be interesting to see the difference in quality vs performance.
    Also, being able to have actual portal and stuff is fantastic.

  • @repositorytutorial3d50
    @repositorytutorial3d50 4 หลายเดือนก่อน +3

    You are a freaking genius, thanks for being so curious about things and thanks for sharing your discoveries with us :)

  • @bloom945
    @bloom945 4 หลายเดือนก่อน +12

    Neat! Maybe this could be used to make lenses?

    • @jagjb6372
      @jagjb6372 4 หลายเดือนก่อน

      Maybe this could be the way to proper refractive caustics in blender also...

  • @Al_KR_t
    @Al_KR_t 4 หลายเดือนก่อน +3

    I can't even fathom the possibilities, this is insane

    • @sid98geek
      @sid98geek 4 หลายเดือนก่อน

      This is like Render Textures on drugs. This is Render Textures redefined.

  • @Dingle.Donger
    @Dingle.Donger 4 หลายเดือนก่อน +1

    This is HUGE. Thanks a lot for the video. I've wanted to use this for so long but I didn't want to buy some add-on or get a PhD in Blender Nodes to get this effect.

  • @thefinn0tube_
    @thefinn0tube_ 3 หลายเดือนก่อน +1

    Thanks Mr default, this is insanely cool

  • @Soviaat
    @Soviaat 4 หลายเดือนก่อน +1

    HOLY HELL, I almost jumped up when I saw the moving preview of this video. I was like "I NEED THIS"
    Edit: I have so much ideas, this unlocked so much things for my adhd brain

  • @Apois
    @Apois 3 หลายเดือนก่อน

    This allows for crazy fast sprite generation, if you consider the cube+negative normal example. If that cube then was unwrapped to look like a sprite sheet, you could render all angles of a given srpite, at once. And if you used something like a n-sided cylinder, you end up with even more angles, at once.
    Kinda wild

  • @lubaka8269
    @lubaka8269 4 หลายเดือนก่อน +2

    Alright, gonna have to watch this atleast 3 times

  • @goldenmikytlgp3484
    @goldenmikytlgp3484 4 หลายเดือนก่อน +11

    LETS GOOOOO

  • @markflakezCG
    @markflakezCG 3 หลายเดือนก่อน

    This would be great for CCTVs.

  • @ShivaTD420
    @ShivaTD420 4 หลายเดือนก่อน +1

    I spent hours trying to fake this effect with the sky/environmental shaders. Since the old portal method with layers and composite tricks was lacking. But this is exactly what i needed.

  • @AndresMagnone
    @AndresMagnone 4 หลายเดือนก่อน +3

    This is amazing. My question is how much does it help performance? Say I use it ith a building to replicate a 3d office on every single window of the building. Would it just process the one office and all the window polygons or would it also process the "new" offices that you can see with this node?

  • @Donminiac-OFFCIAL
    @Donminiac-OFFCIAL 3 หลายเดือนก่อน

    1:13 I hope Eevee next could render this types of node

  • @HalfAsleepSam
    @HalfAsleepSam 3 หลายเดือนก่อน

    Cubemaps in blender, neat.

  • @willyngke
    @willyngke 3 หลายเดือนก่อน

    This also useful for create Forced Perspective 3D Billboards video content.

  • @InterPixelYoutube
    @InterPixelYoutube 4 หลายเดือนก่อน +4

    this is HUGE for vfx.

    • @david_for_you_
      @david_for_you_ 4 หลายเดือนก่อน +1

      Yes, I agree, VFX was the motivating feature for writing it

  • @thomasstewart9752
    @thomasstewart9752 3 หลายเดือนก่อน

    you could plug a height map into the vertical offset instead of using a single value for some interesting results

  • @Aimyx
    @Aimyx 4 หลายเดือนก่อน +1

    It’s tardis time guys

  • @PrinceWesterburg
    @PrinceWesterburg 4 หลายเดือนก่อน +2

    In LightWave you can use a sphere (or any geometry witha UV map) and project outwards to make an HDR map, can you use this for that? It was a very useful feature

    • @GANONdork123
      @GANONdork123 4 หลายเดือนก่อน

      In Blender you can can do this with the camera itself. Set the Lens type to Panoramic and set the panorama type to equirectangular.

  • @dkaloger5720
    @dkaloger5720 3 หลายเดือนก่อน

    I would love to make a magnifying glass with this

  • @blenderconch
    @blenderconch 3 หลายเดือนก่อน

    This is awesome!

  • @khalatelomara
    @khalatelomara 4 หลายเดือนก่อน +1

    I actually made an addon for architecture that depends on classic parallax techniques with some spice , this trick will be insane if you can hide viewlayers for example and drive the rooms with geonode and create fake interiors but in realistic lighting all across the town for example !!! , holy spagetti it will be insane 😀

  • @ZUnknownFox
    @ZUnknownFox 4 หลายเดือนก่อน +1

    OHHHH I'VE GOT IDEAS... 4:17 this just made me think not only could this be good for mapping images, windows or portals. it can also be a good way to create a TV effect where you have a monitor and have it display another part of the scene basically doing 2 things at once. (I don't believe in current versions for this to be possible however this Ray portal node will change SOOOO much)

  • @darrennew8211
    @darrennew8211 4 หลายเดือนก่อน +1

    In so early it's only available in 360p. :-) Great exploration of the new node!

  • @GlitchDX
    @GlitchDX 4 หลายเดือนก่อน

    I have been asking for exactly this for years. This is great.

  • @LukasSmith827
    @LukasSmith827 4 หลายเดือนก่อน

    the tensors are evolving!

  • @mrartistimo1530
    @mrartistimo1530 3 หลายเดือนก่อน

    Could you use an empty to control where this portal is viewing? Figure it'd make it very useful for animation this effect!

  • @Soliye.
    @Soliye. 3 หลายเดือนก่อน

    Welp! Here come liminal spaces and holographic interfaces :D

  • @tiagotiagot
    @tiagotiagot 4 หลายเดือนก่อน

    Holy shit, this got so much potential!

  • @vicfigu6332
    @vicfigu6332 4 หลายเดือนก่อน +1

    I've been making pokemon cards with a 3D effect and it's been a nightmare and with this it's going to be a godsend

  • @lehuyvo3812
    @lehuyvo3812 หลายเดือนก่อน

    very cool

  • @ColinPaddock
    @ColinPaddock 4 หลายเดือนก่อน

    Oh my god! I can finally do 5d space in blender. Yay!

  • @jujda7
    @jujda7 3 หลายเดือนก่อน

    Great vid i actually understood what was being said most of the time
    keep up the good work👍👍

  • @chasingdaydreams2788
    @chasingdaydreams2788 4 หลายเดือนก่อน +1

    BRO ive been wanting this for fucking forever!!

  • @WaddleQwacker
    @WaddleQwacker 3 หลายเดือนก่อน

    I imagine this would make possible virtual cameras like we have in raster engines, where you can place a camera anyewhere in the scene and display what that camera sees on a surface, say a TV screen?

  • @Freakhealer
    @Freakhealer 4 หลายเดือนก่อน

    You are the best

  • @BonkBonkad
    @BonkBonkad 4 หลายเดือนก่อน

    What a coincidence... I'm currently enjoying and at the same time finding it confusing to play with the parallax effect in Blender, and then this video came out.

  • @EuMestre
    @EuMestre 4 หลายเดือนก่อน

    Now we can make tv screen with broadcast😊😊😊

  • @RazsterTW
    @RazsterTW 4 หลายเดือนก่อน

    OMG this is stupid awesome! Thank you for sharing, I have so many ideas.

  • @wheag
    @wheag 4 หลายเดือนก่อน

    this is really cool im so glad i took the time to watch this

  • @oculicious
    @oculicious 4 หลายเดือนก่อน

    Damn that's super cool!

  • @Dcraft_TNT
    @Dcraft_TNT หลายเดือนก่อน

    bro, this update gives the possibility for a robot being able to display anything AND I MEAN ANYTHING for its face eyes and just easily swap to something else, video, objects ANYTHING

  • @jmm1233
    @jmm1233 3 หลายเดือนก่อน

    yay mirrors

  • @Loop_Kat
    @Loop_Kat 4 หลายเดือนก่อน

    I'm just getting into Blender (literally just made my first donut the other day), but this seems like it'd be a really simple (cheap) way to do a fake water simulation, yeah? Something like applying an animated wave distortion to the Ray Portal BSDF (or the plane's geometry) and caustics to the original geometry? It'd probably never offer the same realism as an actual water sim, but it seems like it'd do well for smaller, calmer bodies of water viewed from limited directions

  • @Paratokhs
    @Paratokhs 3 หลายเดือนก่อน

    Can't we use this to make some sort of simulated camera inside blender? Then maybe use it to broadcast something else on a tv? better yet save said camera to use for all kinds of portal things? an empty as the center point, a plane as the end of the camera, and moving the plane would change the POV? Maybe probably?

  • @DiThi
    @DiThi 3 หลายเดือนก่อน

    You don't need to use vector rotate + drivers, instead use the vector transform node, to transform from world space to object space. Edit: Or as another comment said, use the normal from texture coordinates instead of geometry, which is in local space.

  • @Skifoxo
    @Skifoxo 4 หลายเดือนก่อน

    now we just need to wait for someone to make a tardis model with this node.

  • @gordonbrinkmann
    @gordonbrinkmann 4 หลายเดือนก่อน +1

    That Incoming to Tangent space converter is quite nice and exactly what I was looking for. So I got a plane which is basically always looking down no matter how I move and rotate it. I just cannot figure out for the life of me how to rotate this view so that the plane is always looking to the left or always looking to the right, no matter how I move and rotate it. I tried it with Vector Rotate etc. but it mostly gives only distorted results.

    • @A000803323
      @A000803323 2 วันที่ผ่านมา

      did you ever figure it out? I'm stuck here also

    • @gordonbrinkmann
      @gordonbrinkmann วันที่ผ่านมา

      @@A000803323 Yes, actually I have. I have created a Geometry Nodes setup where you can choose if you want the portal to reference a different object for the portal's "viewing orientation" or if you want to manually enter values. The resulting location and rotation will then be used in the portal material. But it is a bit too complex to explain it here, and unfortunately I cannot post pictures or links in the comments.

  • @AlphaSeagull
    @AlphaSeagull 4 หลายเดือนก่อน

    Now we're thinking with portals

  • @EdLrandom
    @EdLrandom 4 หลายเดือนก่อน +2

    6:28 What did you just call us?

  • @Al_KR_t
    @Al_KR_t 3 หลายเดือนก่อน

    It is really differend from parallax mapping anyway. You can't use this portal nodes for materials because image in the portal isnot affected by lights around the portal

  • @jagjb6372
    @jagjb6372 4 หลายเดือนก่อน

    Mind blowing. Brilliant!

  • @moravianlion3108
    @moravianlion3108 3 หลายเดือนก่อน

    4:13 Getting some serious stalker vibes

  • @AyushBakshi
    @AyushBakshi 4 หลายเดือนก่อน

    That's AWESOME!

  • @AdamEarleArtist
    @AdamEarleArtist 4 หลายเดือนก่อน

    Thats's freakn great!
    I wonder if this works with blenders scenes? PooOOOOOOooower!
    2nd demoooOOOOooo?
    👌👌👌

  • @residual
    @residual 4 หลายเดือนก่อน

    you could use this shader to create some really cool infinitely recursive things and i am SO hyped

  • @jahrradmarks7169
    @jahrradmarks7169 3 หลายเดือนก่อน

    Bruh, I've got to make a snow globe now....

  • @rajinmuhammad673
    @rajinmuhammad673 4 หลายเดือนก่อน +15

    this is the most mathematical blender tutorial I have ever seen

    • @LIONFIGHTMUSIC
      @LIONFIGHTMUSIC 4 หลายเดือนก่อน

      welcome to default cube - always makes me wish I studied maths 😅

    • @skeleton_craftGaming
      @skeleton_craftGaming 4 หลายเดือนก่อน

      Blender does a pretty good job at abstracting away the math if you don't use geometry nodes...

    • @skeleton_craftGaming
      @skeleton_craftGaming 4 หลายเดือนก่อน

      ​​@@LIONFIGHTMUSICI did study math and kind of wish I studied math more... The maths are tight

  • @sriharivaila7276
    @sriharivaila7276 4 หลายเดือนก่อน

    Imagine if we can render lots of assets in a huge scene this way, hope it improves render times.

  • @a2_games
    @a2_games 4 หลายเดือนก่อน

    just in time ☕

  • @zack3danimation666
    @zack3danimation666 4 หลายเดือนก่อน

    Awesome, so brilliant

  • @Theooolone
    @Theooolone 4 หลายเดือนก่อน

    OH MY GOD THIS IS AMAZING this will make my projects 1000x easier

    • @saparjumash
      @saparjumash 4 หลายเดือนก่อน

      in what way? i dont get where to use it, no one is explaining

  • @VFXCentral
    @VFXCentral 4 หลายเดือนก่อน

    FUUUUUUUUUUUU!!!! thats a amazing!

  • @mikoajlewicki9512
    @mikoajlewicki9512 4 หลายเดือนก่อน

    Oh boi the quick&easy pipe for making psychodelic/surrealistic mindfucking stuff just droped xd

  •  4 หลายเดือนก่อน

    Woaw !!! Thx for this video !!!

  • @FullHeart_Art
    @FullHeart_Art 4 หลายเดือนก่อน

    Wait no fucking way this is amazing. I can do some INSANE stuff with this

  • @badjano
    @badjano 4 หลายเดือนก่อน

    I'm a developer, and I'm astonished by your skills in math (for an artist LOL)

    • @DefaultCube
      @DefaultCube  4 หลายเดือนก่อน

      thank ya :)

  • @syafiiesulaiman
    @syafiiesulaiman 2 หลายเดือนก่อน

    genius

  • @TrentisN
    @TrentisN 4 หลายเดือนก่อน

    Will be able to fill out skyscraper windows in no time now.

  • @user-hv5qu7kz1m
    @user-hv5qu7kz1m 4 หลายเดือนก่อน

    insane.... thank you!

  • @minerkey682
    @minerkey682 4 หลายเดือนก่อน

    maybe we can use it to make bootleg render-to-texture stuff for security cameras and the like

  • @LIONFIGHTMUSIC
    @LIONFIGHTMUSIC 4 หลายเดือนก่อน

    I was literally wondering whether this kind of thing could be done in blender mere HOURS before you dropped this video wtf

  • @USBEN.
    @USBEN. 4 หลายเดือนก่อน

    Please make a use case video for this node, i don't understand what people are soo happy about in the comments.

  • @Xashadowin
    @Xashadowin 3 หลายเดือนก่อน

    wait... Did blender just achieved nDisplays from Unreal, but in Blender?
    This has a HUGE meaning for projection mapping and mapping shows if that s the case!

  • @mariocano7263
    @mariocano7263 4 หลายเดือนก่อน

    Could you theoretically create building windows with this, perhaps linking to a geonode based interior off to the side? I wonder how the performance would do rendering that many instances.

  • @tempname8263
    @tempname8263 4 หลายเดือนก่อน +1

    16:00 You aren't multiplying by matrix here, you're multiplying by it's transpose. Direct multiplication is v.x * m.xvec + v.y * m.yvec + v.z * m.zvec, not the dot products.

  • @markuszeller_official
    @markuszeller_official 4 หลายเดือนก่อน

    This is sick. My brain can not process.

  • @skeleton_craftGaming
    @skeleton_craftGaming 4 หลายเดือนก่อน

    Here's my question, can we use an object as that camera, in geometry nodes with attributes? [Skull asks the leading question as to imply that he wants a tutorial on that]

  • @Epinardscaramel
    @Epinardscaramel 4 หลายเดือนก่อน

    Wow, it looks like those old-school “holograms”

  • @FluffyAngelUwU
    @FluffyAngelUwU 3 หลายเดือนก่อน

    "Damn I wonder if it's going to be a portal"

  • @ThadeousM
    @ThadeousM 4 หลายเดือนก่อน

    A GDC presentation on Quaternions dropped this week which helped me get an understanding of what/how/why they are useful. As you created your tangent space equation my brain woke up when you used the dot produce of each…
    I wanted to ask is the dot product -1 to 1 serving as your “weight” here?

    • @DefaultCube
      @DefaultCube  4 หลายเดือนก่อน +1

      in general these just line up with x,y,z components of new vector (all normalized so ya, -1 to 1) - but in general dot product is just the sum of the products

  • @SanOcelotl
    @SanOcelotl 4 หลายเดือนก่อน

    game changer

  • @tynrare5631
    @tynrare5631 4 หลายเดือนก่อน

    So this is going to be a bit above the pay grade.. ❤

  • @twitte0king
    @twitte0king 3 หลายเดือนก่อน

    Does this simplify the looking glass hologram type rendering at all?

  • @afjer
    @afjer 4 หลายเดือนก่อน

    A lot of pain could be solved if they had an absolute/relative toggle.