Old 10th September 2003, 14:13   #1
nixa
Senior Member
 
Join Date: Jul 2002
Posts: 149
Question 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.
nixa is offline   Reply With Quote
Old 11th September 2003, 02:49   #2
S-uper_T-oast
Forum King
 
S-uper_T-oast's Avatar
 
Join Date: May 2003
Location: Fnord?!
Posts: 2,657
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.
S-uper_T-oast is offline   Reply With Quote
Old 11th September 2003, 13:08   #3
UnConeD
Whacked Moderator
 
UnConeD's Avatar
 
Join Date: Jun 2001
Posts: 2,104
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;

UnConeD is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS > AVS Troubleshooting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump