nixa
10th September 2003 15:13 UTC
Mapping
I am working on a 3D DM that is suposed to show all quadratic surfaces morfing between eachother. This surface is defined by
a1*x^2+a2*y^2+a3*z^2+a4*x*y+a5*x*z+a6*y*z+a7*x+a8*y+a9*z+a10=0
where a1..a10 are constantly chainging. For most part it wast that hard except I dont know how to mapp ix,iy,iz to x and y (the final step). Any ideas would help.
S-uper_T-oast
11th September 2003 03:49 UTC
As far as I can guess, it would be different depending on what you used to solve for the intersections, what I would do is think how I want each intersection, (ix,iy,iz), to be represented on the x and/or y axis, and to keep in mind what each intersection is going to be representing on each axis. If you could post your preset so far, it might be easier to help you.
UnConeD
11th September 2003 14:08 UTC
There is no easy way to do that, because texturing is mostly shape-dependant. But if you're doing all quadratics, there's no one good scheme.
You could try cylindrical mapping:
x=atan2(iy,ix)/pi;
y=iz;