Search the Community

Showing results for tags 'orient'.

• Search By Tags

Type tags separated by commas.

Forums

• General
• Lounge/General chat
• Education
• Jobs
• Houdini
• General Houdini Questions
• Effects
• Modeling
• Animation & Rigging
• Lighting & Rendering
• Compositing
• Games
• Tools (HDA's etc.)
• Coders Corner
• HDK : Houdini Development Kit
• Scripting
• Art and Challenges
• Finished Work
• Work in Progress
• VFX Challenge
• Effects Challenge Archive
• Systems and Other Applications
• Other 3d Packages
• Operating Systems
• Hardware
• Pipeline
• od|force
• Feedback, Suggestions, Bugs

Found 11 results

1. orientation not matching

Hi guys. I have a simple sim with a tube which I steal the points from and want to instance another model onto those points. for some reason the orientation is not lining up. What am I overlooking here? shot_Coinery-Coinery_mod_Modeling_v0008_nocomment_jra_.hiplc
2. Understanding matrices, quaternions and all that jazz

Hi everyone, I would like to better understand matrices and how to use them to do what I want. I've prepared a hip file with screen shots of things I get and don't get. While writing this I'm almost making discoveries so please bare with me if it seems like a long thread First off, applying a matrix3 to rotate my points seems fine as long as my vector is normalized. Else, it affects scale as well. Why is that? 1. rotate around y matrix3 m = ident(); float angle = ch("angle") ; vector axis = {0, 1, 0} ; rotate(m, angle, axis); @P *= m; 2. rotate around {0,1,1}. Not good. matrix3 m = ident(); float angle = ch("angle") ; vector axis = {0, 1, 1} ; rotate(m, angle, axis); @P *= m; 3. rotate around normalize({0,1,1}) matrix3 m = ident(); float angle = ch("angle") ; vector axis = normalize({0, 1, 1}) ; rotate(m, angle, axis); @P *= m; Hence, we need to normalize the rotational axis vector to prevent scaling the geometry. Secondly, I'm having issues setting the pivot for my rotations. In the examples above this all works well if our pivot is set at the origin. So how do we set the pivot to be at the center if our geometry? Please take a look at rotate_not_at_origin object. To begin this little science experience, I've copy stamped boxes on a single box and used the normals from the orignal box as the rotation axis vector. So far so good. This all goes to shit if we move our original box from the origin. How do we solve this? The only way I've seen, and don't understand, is using @orient as follows before the copy stamp. Also, this no longer copies the geometry based on the normal direction of my points. matrix3 m = ident() ; float angle = ch("angle") ; vector axis = normalize(v@rot_axis); rotate(m, angle, axis); @orient = quaternion(m); So how do we solve this? I really need to wrap my head around this once and for all gahhhhh!! Thanks everyone! Maxime matrices.hipnc
3. Polygon Jitter Orient Problem

Hello everybody... I am working on a project and stuck on one point. Need a help so bad! lol In the hip file what i tried to do: Created a almost torus shape and and needed little bevel on the edges bla bla bla... In pointvop1 i am giving jitter animation to primitives and taking the animation from the sphere1's transforms. Through the animation, prmitives jittering/animating from object and they coming back to 0 poisition when sphere get far from the object. After that, in attribwrangle3 i am deleting primitives and using only points of primitive's center points. Ok here what i try to do! In attribvop6 i triend to use few attributes and the thing i need is. When points are far from the object i need to give them noise or turbulans or something that gives them motion and when pyramid shaped get close to zero position and create and object i need them not moving and just sit the 0 poition. In sum what i tried is they should rotate while they are going to 0 poisition and when they get close they should stop and just sit and stay. If you turn normal1's display flag you can see that they are not in real order. there are gaps and normals are not correct... I really stick in this part and cant move more. If any help would be amazing life saver lol Thank you for help! Lens_polygon_test.hip
4. Particles along a curve - constraint Z orientation

Hi everyone, I'm trying to do a school of fish with a particle system that would follow a curve. Basically I'm emitting some particles and they move along a curve with a popcurveforce. By default the particles orientation seem to go along with the curve but since I'm trying to do a school of fish, I would like my particles Z orientation to always be 0 so the fishes don't swim on the back. So far I've tried with this expression in a popwrangle : p@orient.z = 0; The thing is it seems to zero out the orientation of x and y as well.. And I still want the x and y to go along with the curve. I'v tried with a popattract instead of a popcurveforce and I'm still not able to constraint the Z orient.. Maybe it has to do with something else than the @orient attribute since I don't see it in my geometry spreadsheet..? There's something I don't get! (Needless to say that I'm new in Houdini :P) Thanks a lot! test_fish_school.hiplc
5. Randomize orientation at the first frame for particles

Hello Guys, I have some issue with @orient values for particles on POP context after plugging POP torque / POP spin.When I plug one of this nodes my copied geo on particles start look like on ex_v01 gifBefore sim I randomize v@N for random look instanced geo after coping to points.When I bypass POP drag / torque all look fine randomized, because I think use Normal for adjust orientation, on randome direction gif you can see it.How I can randomize orientation value at the beginning of simulation particles?Thanks advance!
6. Attribute Reorient Node Tutorial

Hello community : i created this short tutorial on how to use the reorient attribute node in houdini and also i showed how it is work, it is some math matrix stuff, hope you find it helpful and hope you like it : Note : this training will give you nice idea of using the Matrix in Houdini , .
7. Rotate/Orient/Alignment/Quaternions...etc.

I'm trying to mess around with orienting a particle's alignment to it's vector. Or a watered down version would be a cube on a path that follows it based on the particle's vector or velocity. Basically, orienting the particle to "speed space" if that makes sense? I tried mixing Normals and Velocity to possibly get them aligned but I'm pretty much lost. I took a look at @mestelahere to help me out, but I'm pretty much in over my head trying to do it in Houdini. I attached my file that is just a spinning circle with box's copied onto them. I was trying to make a simple scene where the boxes rotation matches it's vector. So nothing too out of the ordinary, but still kind of confusing. Thanks :)! velAlign.hipnc
8. Dynamics CHOPs Orient problem

First of all, I want to tell you what end result I want so you can solve my scene file or suggest other easier way of doing it. I want to get the transformations of these rbd dominos to object level. My first approach was to simulate rbd fractured objects then use dynamics chop to get that data and export it to object level but it got some problems. My second approach was to "get point data" from dops and do some matrix magic in VOPSOP with points and import that data through geometry CHOP so it can get exported to object level grid's transformation. I have tried to use orient attribute to my advantage but objects behave weirdly. Their positions are wrong. This is good exercise for you to use SOPs, DOPs and CHOPs interconnectively. You can see my file with both approaches, check out these nodes and tell me what am I doing wrong? I just want to apply the boxes domino data to grids in object level. Thanks! dynamics orient.hip
9. Orient primitives along curve without CopySop

Hello, I have seen some really helpful examples of how to orient primitives along a curve with the CopySop but unfortunately in my setup I won't be able to use the CopySop (example scene is a quick mock up). How would you orient the individual layers along the guide curve? I have the tangent's from the guide curve and have tried to align the layers to this, but with now luck. I would really appreciate some ideas on this. Thanks orient_along_curve_101.hip
10. Point rotation around axis or normal (for export in maya) / not stampi

Hi guys. I'm trying to get point rotation around local axis (around local Y axis) I need to export points in Maya later, so I can't use copy sop for stamping. If I use transorm sop with Copy Stamping I can rotate Objects along local axis, but if I'm trying to edit rot and orient point attributes points are rotating in worldspace (around world XYZ) not along local axis. If I use orient attribute points are aranged in worlspase, not along normal. Can sombody help with that, please? ps I found Make Instance Transofm Vex node, but 'Ive got no Idea how to use it >__> point_rotation_001.hip
11. Orient, rot, N + up, v etc: Instance rotation question

Hello! I am currently trying to wrap my head around being able to transform (rotate) instance objects for sop copy and instance rendering. Basic stuff, I know, but I'm stuck and my math suck. I have a hard time grasping dot product, cross product, matrices and quaternions -> 3D transforms There are, as far as I can see, a multitude of attributes and options to do this, and I am wondering what would be best suited for my use? Some use up, some use orient. Basically, I would like to have the rotation options of the transform sop (x, y, z rotate) to work on a point instance where the normal direction is the "up" direction (think teapots standing on a displaced ground plane, rotating planar to the ground when editing the y axis). I've been through a lot of examples but I just can't make them work for my scene. Either the objects are flipped or rotation is happening on the wrong axis or objects are not rotating smoothly, or I am not able to figure out how to "flip" to the right axis when using N and up (usually +-90 degrees in x) inside the vop. Most of all, it needs to be stable on deforming geometry. Any example of rotation working in this scenario would be most welcome! Also, if you have a link to a good (basic level) resource regarding this topic, that would be awesome! Thanks.
×