Visual Aid



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 24/08/2009 at 08:06, xxxxxxxx wrote:

    There it is.... That was the solution.. Thanks alot Matthias. You really help me out here.

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 24/08/2009 at 08:24, xxxxxxxx wrote:

    how do I remove the polygon after I have drawn it? I am able to draw a polygon on the symmetry plane now but I want it to go away after they uncheck the bool.

    Thanks in advance,

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 24/08/2009 at 09:31, xxxxxxxx wrote:

    Figured it out. Thanks,

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 24/08/2009 at 10:41, xxxxxxxx wrote:

    Anyone know how i could make the polygon I create appear somewhat translucent?

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 24/08/2009 at 10:56, xxxxxxxx wrote:

    Figure this out too.. LOL.. guess I'll stop asking until I really try to figure it out. HAHA..   Thanks everyone.

    This was accomplished using SetTransparency ()

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 24/08/2009 at 10:57, xxxxxxxx wrote:

    BaseDraw::SetTransparency(LONG trans) with negative values for trans.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 24/08/2009 at 11:50, xxxxxxxx wrote:

    Well , I was hoping I wouldn't have to ask again. LOL but can someone point me in the right direction on how to be able to take the color selected from a COLOR selector in the attributes manager and turning that into the color values for the polygon3D()..

    Thanks,

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 24/08/2009 at 11:58, xxxxxxxx wrote:

    Vector color = bc->GetVector(YOUR_DESC_FOR_THE_COLOR);



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 24/08/2009 at 12:00, xxxxxxxx wrote:

    Thanks Robert, As always. Top Notch!

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 24/08/2009 at 21:00, xxxxxxxx wrote:

    Finally, the last step I need to do is to get the polygon that I have created, aligned, resized, and changed the color, to stay locked to the object on which the tag is.

    For example, this portion of my plugin creates a visible symmetry plane on an object. I would like this new polygon to stay attached to the object no matter where it is moved around in 3d space. Can someone point me in the right direction on how to accomplish this?

    Thanks,

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/08/2009 at 01:44, xxxxxxxx wrote:

    Multiply the position vectors of the polygon with the global matrix of the object.

    Btw. I recommend to really go through the SDK examples as they often provide a solution to your problem.

    cheers,
    Matthias



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/08/2009 at 09:25, xxxxxxxx wrote:

    Thanks Matthias.   I have been looking through them they are very helpful. I didn't find one that showed how to do this. Is there one specific example I should look at?

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/08/2009 at 09:48, xxxxxxxx wrote:

    In this case it's just basic vector/matrix algebra. The examples are full of it. If you haven't done it yet I recommend to get familiar with vector/matrix algebra. There is an excellent introduction in the COFFEE documentation called " Using matrices".

    cheers,
    Matthias



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/08/2009 at 10:10, xxxxxxxx wrote:

    I'm not finding Using Matrices in the COFFEE documentation.   hmmm..

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/08/2009 at 10:26, xxxxxxxx wrote:

    Please download the CINEMA 4D R9.5 COFFEE docu.

    older sdk downloads

    cheers,
    Matthias



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/08/2009 at 10:35, xxxxxxxx wrote:

    Thanks Matthias!

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/08/2009 at 14:20, xxxxxxxx wrote:

    Okay I have got the plane following the object using the objects matrix. Now I need to figure out how to rotate the plane using the matrix of the object? I am confused because while the baseobject has a SetRot() function, the BaseDraw class does not, What equation would I use to convert the vectors I recieve from the GetRot() from the BaseObject to the vectors that are used to draw the Polygon3D() ?

    Thanks in advance.

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/08/2009 at 14:55, xxxxxxxx wrote:

    Create a rotation matrix and apply it before applying the global matrix to the vectors. MatrixRotX(), MatrixRotY(), MatrixRotZ() are what you need to look for. If you are going to use the vector values from GetRot(), simply use HPBToMatrix(). I see that it now has specific rotation orders as well (this is new in R11!). I would stick with ROT_HPB in this situation. :)



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/08/2009 at 17:34, xxxxxxxx wrote:

    This is what I do to get my global matrix to maintain the position of the polygon.

    > `

      
    \>  Matrix matrix = op->GetMg(); // Get the global matrix  
    \>  Vector globalPos = matrix.off; // Get the position from the matrix  
    \>  
    

    `

    Then in the vectors I put...
    > `

      
    \>  Vector p[4] = { Vector(-lngMaxX-100+globalPos.x,-lngMaxY-100+globalPos.y,0+globalPos.z),Vector(-lngMaxX-100+globalPos.x,lngMaxY+100+globalPos.y,0+globalPos.z),Vector(lngMaxX+100+globalPos.x,lngMaxY+100+globalPos.y,0+globalPos.z),Vector(lngMaxX+100+globalPos.x,-lngMaxY-100+globalPos.y,0+globalPos.z)};   
    \>  
    

    `

    lngMaxX, lngMaxY, and lngMaxZ are the greatest point on each of those axis.

    So to create the rotation matrix I would do this?
    > `

      
    \>  Vector rot = op->GetRot();  
    \>  Matrix rotation = HPBToMatrix(rot, ROT_HPB);  
    \>  
    

    `

    Then what do I add to my vectors?

    Thanks,

    ~Shawn



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/08/2009 at 19:25, xxxxxxxx wrote:

    Vector p[4] = ???;
    p[4] = p[4] * rotation;

    You'll have to initialize the vectors to the plane point values first (???).

    You can't 'add' rotations to a point. It must be a matrix multiplication.


Log in to reply