Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Vector math for 3D art

  1. Jan 19, 2009 #1

    I am a software developer and at the moment I am working on media art projects dealing with generative art algorithms in 3D spaces. I have been stuck for a few hours with a little problem dealing with vector math and I cant reach a conclusion. If someone here could give me a little hand it would be greatly apreciated!

    I have a random vector u(x,y,z) and a vector w(0,1,0). Vector u makes an angle of [tex]\alpha[/tex] with w.
    I want to generate a vector v, from random values, only making sure that the vector r=u+v makes an angle with w in the range [[tex]\alpha[/tex]-C, [tex]\alpha[/tex]+C] (being C a constant value).

    What I need is to find a way to calculate the range of values for xv, yv, zv that obey to the referred condition.

    If someone knows how this can be done or has any sugestions, tips, concepts to research, directions or anything that could be even slightly helpfull please do not hesitate in replying, every try to help is apreciated.

    Thank you in advance!

    David Jonas
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted

Similar Discussions: Vector math for 3D art
  1. 3D vector questions. (Replies: 3)

  2. 3d - Vector question (Replies: 14)