Jump to content

Getting Particle Roation Into An Shader


SvenP

Recommended Posts

I am working on a particle smoke shader and getting the particle positions into the shader so that i have my noise function in particle space with a per particle offset is easy but now i am trying to get the particle roations into the shader . What i want is to be able to get the noise to rotate around my particle centers but at the moment i have no idea how to do that . Would be nice if anyone could help me a bit. :D

Sven

Link to comment
Share on other sites

Thank you :) but i think i was not clear enough with explaining my problem.

I know how to rotate something if i have an angle for the rotation but my problem is how to calculate the angles for every axis. In pops i have an up vector and an rot vector generated by angular velocity and now i need to calculate the rotation angles between my up and rot vector and i am doing the whole thing in code not in vops .

Sven

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...