Page 2 of 2

Re: semi automatic model cliping

Posted: Thu Sep 08, 2011 7:25 am
by gsigms
I finished coding the missing features last monday, but I am at a conference for work so I am gonna put it online along with a tutorial on the wiki tonight or tomorrow, if you don't mind waiting

the math is very simple, transformations (translation/scaling/axis rotation) are 4x4 matrices, to combine transformations is to multiply those 4x4 matrices (the order matters), to apply the transformation to a 3d point is done by multiplying that 3d vector by the combined 4x4 transformation matrix.

if you prefer Java, ramb surface generator uses the same maths.

Re: semi automatic model cliping

Posted: Thu Sep 08, 2011 9:14 pm
by DagF
Well this math is simple as it's just to add the cordinats of the model to the cordniats to the brush(havent looked at the rotating yet tought).
But it's a 3*3 matrics isent it? x, y and z.
And radiant isent really using vektors? It's using point's?

As i understand it there are 3 point's that draws a face so for a box there are 6 lines with 3 points drawing 6 faces? I might be all wrong but thats what it looks like to me.

I am fairly new to programming. I know html, css and some php and batch. So it dosent really mater what language it is in. But i would just like to have a look anyway. No hurry btw.

Re: semi automatic model cliping

Posted: Fri Sep 09, 2011 12:30 pm
by gsigms
wiki page with download link and tutorial

here

Re: semi automatic model cliping

Posted: Fri Sep 09, 2011 3:03 pm
by johnnyenglish
That's great, I've got so many manky models to clip - I like that you can -unclip

You get best wiki entry this week prize.

Re: semi automatic model cliping

Posted: Fri Sep 09, 2011 3:54 pm
by gsigms
johnnyenglish wrote:That's great, I've got so many manky models to clip - I like that you can -unclip

You get best wiki entry this week prize.


CMC is licensed under beerware revision 42.


you find it useful -> I get a beer :D

Re: semi automatic model cliping

Posted: Sat Sep 10, 2011 7:02 am
by johnnyenglish
I owe you some beer - this is going to be great.

I have a lot of these bus station seats scattered around so I thought your auto clipper would be ideal.

I think I followed the instructions to the letter and for some of the models the clipping is perfect - however some with rotation are a bit wrong.

Slightly miscalculated rotation
Slightly miscalculated rotation


Help!

Re: semi automatic model cliping

Posted: Tue Sep 13, 2011 9:44 am
by gsigms
fixed: I forgot to handle the "angle" misc_model property

the version on the wiki is up to date.

thank you Johnny