Jump to content

Modeling questions


DBaciu

Recommended Posts

Hello everybody.

I have a few modeling problems that I solved, but in a big ugly way with a lot of nodes.

So I thought that maybe somebody can help me with these.

The images below will illustrate them.

Ps: of course everything must be done in a procedural way...

post-6076-131905529498_thumb.jpg

post-6076-131905530028_thumb.jpg

post-6076-131905530738_thumb.jpg

post-6076-131905531314_thumb.jpg

post-6076-131905532284_thumb.jpg

post-6076-131905532949_thumb.jpg

Link to comment
Share on other sites

Vectorblur, thank you very much for your answer.

For the problem 1, you can't see in my image but the box doesn't have the bottom,

which makes dissolve Sop delete the bottom point also.

But I can leave the bottom of the box where it is and delete it afterwards.

Anyway, selecting the edge procedurally for the dissolve Sop to work is problematic.

For problems 2 and 3, yes, it can be solved with curvesect,

but I was looking for a more direct, reliable method.

For problem 3, the triangle sits right on top of the rectangle, there's no gap between them,

and the points that described them must be in the same place after joining.

You moved the triangle in order to overlap them so the curvesect can work more reliable. See image 1.

The question that I have can be described more generally by the image 2:

Can I insert a point at an arbitrary position (on an edge)?

post-6076-131911638145_thumb.jpg

post-6076-13191164127_thumb.jpg

Link to comment
Share on other sites

The question that I have can be described more generally by the image 2:

Can I insert a point at an arbitrary position (on an edge)?

I would use polysplit.

A point 3/4 way on the edge between point 5-6 would be in the following form

p5-6:.75

one can always adjust the new point position using override bias option too.

Cheers!!

Link to comment
Share on other sites

Thank you for your replies.

I used them with mixed results.

The thing is that if you want to use them in a procedural way, well... The hell break loose.

Using the clip sop was a good idea though, with some reserve.

Let's say that the primitive to cut is not in XY plane (or YZ or ZX) but is having a random orientation.

I have to orient the cutting plane of the clip SOP to match the orientation of the primitive.

I can extract the normal direction of the primitive using "prim" or maybe "normal"

expression function in the "Direction" parameter of the clip SOP, but this makes the cutting

plane parallel to the primitive to cut. So, the question is: How can I rotate the defined cutting

plane around an axis 90 degrees?

The question is more general: How can I translate the direction information retrieved by using

"prim" expression functions (which I think is a vector) into degrees?

Can be done into an expression? I'm afraid this is involving dot products,

transform matrices an stuff like that...

post-6076-131928186427_thumb.jpg

Link to comment
Share on other sites

..

I'm afraid this is involving dot products,

transform matrices an stuff like that...

oc you can do that ,

but you do not necessarily need to align the clipSOP in order to merge both prims .

it was just used to add the point into the rectangle in a precise position . nothing more . =)

below i uploaded another non-ortogonal-version ..

addPointAndMergez2.hipnc

p.s. : i modified the primSOP which attaches the triangle to the quad .

.. edit : forgot to say that you can move the timeline to see random orientations of source geometry .

Edited by zarti
Link to comment
Share on other sites

Zarti, thank you for answer.

Of course the clip SOP doesn't need to be aligned in order to cut

and create the point that is needed to properly fuse the primitives,

with one observation: what happens if the cutting plane

ends up (in some particular case) parallel with the primitive to cut?

Remember this must be procedural...

Anyway, I still want to find a way to translate from extracted direction to rotation.

Or at least to rotate the vector.

Even without any effort about a gazillion uses for that are crushing into my mind...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...