|
|
I use autocad always have always will
I have written a converter taking the faces etc... and converting them into
triangles, no problems when the coordinate system of the target objects are
from the default directions.
I use the autocad "block" structure linked to "include files" no problems,
this allows me to use the povray primitives and more advanced objects as
povray entities (spheres, box, prism, torus, blobs etc..... I use linked
attributes within the autocad blocks to carry additional parameters)
the whole system works very well with automated texturing (autocad layers),
include file placement(blocks) etc... I am very happy with it
my problem comes from autocad:
Autocad allows "blocks" (what I use as includes) to be placed in an
alternate coordinate system, scaled, then a rotation is applied, after
which a translation (within that alternate coordinate system) occurs.
my autocad input data starts like this (name) (coord sytem vector X,Y,Z )
(size X,Y,Z) (rotation counterclockwise radians) (location translation
X,Y,Z)
what I do now is (place) (scale) (rotate) (translate)
I cannot consistantly get the correct rotation within the alternate
coordinate system, I have tried a multitude of permutations, but there is
always at least 2 out of 8 items which come in off, especially when the
initial coordinate system has a negative value someshere.
Has anyone else wrestled with the coordinate system handedness problem as it
relates to autocad.
My output povray files use the up <0,0,1> already (using povray like a
drafting program)
I think the problem lies with the initial 0 direction of rotation
any and all incites would be greatly appreciated
I posted a couple of startup renders in the pictures group from "andycadd"
these are mostly triangle based but I use a few povray items spheres,boxes
etc... if I can get this problem worked out I can use a lot more of the
povray items embedded within my include files, instead of only using
includes from the vertical coordinate system
thanks in advance
Andrew Giedraitis
and### [at] comcastnet
Post a reply to this message
|
|