On Wed, Sep 10, 2014 at 6:39 PM, Christopher Sean Morrison <brl...@mac.com> wrote: > > On Sep 10, 2014, at 3:46 AM, Gurwinder Singh Bains wrote: > >> I make a torus, using normal as 1 0 0, which makes 90 degree with both >> y-axis and z-axis. Another torus with normal as 1 1 0, but it makes 45 >> degree with both x-axis and y-axis. I think it uses tan inverse i.e. <snip> > > No, the vector you specified is exactly the normal. Based on the comments > you made on IRC a couple days ago, I suspect you're converting coordinates to > Povray's left-handed system incorrectly. To convert the values, you simply > need to swap Y and Z values EVERYWHERE, including in vectors and in matrices. > This coincidentally will even give you the right up vector and front > orientation, if I recall correctly. <snip> > For Azimuth and Elevation values, those should translate into a simple > "rotation<0, Az, El>" command in Povray. See > http://brlcad.org/gallery/diagrams/diagram and note that Az is a rotation > around Z in BRL-CAD so it's a rotation around Y in Povray. Similarly, El is > a rotation around Y in BRL-CAD, so swapped that becomes a rotation about Z in > Povray. > > Does that all make sense? Does that help?
Exactly, its enough for me. After exploring more on POV-ray, I make a macro in POV-ray in which normal is used for rotating torus. Good thing is that macro is working properly. Now last thing left is, writing the torus along with macro in converted POV-ray file. Gurwinder Singh Bains http://gurwindersinghbains93.wordpress.com ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel