Jump to content

¿ how do you use: vector ptransform(string tospace, vector vec) ?


dyei nightmare

Recommended Posts

18 hours ago, dyei nightmare said:

 

and by the way, what does it mean: "space:ndc" Normal Device Coordinate space. ?

Screen space, basically. Name was introduced by OpenGl or something, as normalized position of mouse pointer on screen, and such. One corner is 0 0 while diagonal corner is 1 1. If you doing something with SHOP shaders, you'll want to use other options as well. P in SHOP is in camera space, so if you want some noise pattern in world space instead, you'l convert P with this thing.

  • Like 1
Link to comment
Share on other sites

9 hours ago, amm said:

Screen space, basically. Name was introduced by OpenGl or something, as normalized position of mouse pointer on screen, and such. One corner is 0 0 while diagonal corner is 1 1. If you doing something with SHOP shaders, you'll want to use other options as well. P in SHOP is in camera space, so if you want some noise pattern in world space instead, you'l convert P with this thing.

interesting, and what is the diference between  local space and world space?, i thought it was like local vs global transforms, like,  vectors considering a 0 cordinates based on the entire world, and local considering something like 0 cordinate on geometry center but that doesnt work

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...