Jump to content
thesoloman

Learning VOPSOP

Recommended Posts

Network ; http://i.imgur.com/u10bMTQ.jpg - I simply added a Constant inside the If-Then block and set it to 2 =D Being lazy haha

 

As for the bonus points - I didn't have any at 0 in X when the grind was set to 50x50 which I assume has to do with the fact that 'normal' sets of numbers don't have a single number in the middle but 2. Grr, English not being my native language makes that hard =D It's like the numbers from 1 to 10 - the middle ones are the pair 5 and 6, but if we're counting from 0 to 10, the middle is 5. 

Share this post


Link to post
Share on other sites

Ok, day 4 challenge! Keep in mind, I'm a complete noob to VEX. I tried more complicated things but failed. This will have to do!

 

Here's what needs to be done.

 

Create a noise pattern and make any point in the "y" greater than .5 be colored any color you wish.

 

I tried to make any point in the "y" that is in the top 80% be flat, I got close but there were always errors in it. I wanted it so when I adjusted the amplitude it would adjust with it. Marty how would you do this effect?

 

I am attaching my file so you guys can see how I did it after you've done it.

post-8033-0-70846100-1409589261_thumb.jp

day4.hipnc

Share this post


Link to post
Share on other sites

Well i tried but i dont think its the right way,with floor and ceiling node,but i think we need to average the points before flat the thing

Share this post


Link to post
Share on other sites

Got it ! =D 

http://i.imgur.com/AK8ZRuA.jpg

 

Unfortunately don't have time to explain it right now but definitely will in a few hours. Also, I'm not even sure I'm doing it properly so yeah =D 

 

edit; actually what I've done is just ... silly. Don't waste your time on that network =D

d4.hipnc

Edited by Georgie

Share this post


Link to post
Share on other sites

Its not silly Georgie,the two way switch its very cool,thanks!,we are learning

Just a question before getting the geo flat we need to select the points so

If you normalize from 0 to 1 you end with 0 to 1 and 0 to -1 in Y axis

 

There is a way to normalize from 0 to 1  in order to select with 0.8? ,in that way we end with 80% of top points selected

 

VewCiRy.jpg

Edited by georgeivan

Share this post


Link to post
Share on other sites

Hello,

 

What a nice thread !

Trying hard to learn all this knowledge since a few months, the tutorial are really rare about VOP.

 

Here is my try out : the clamp node made the "upper cut" but I couldn't make him work the same way in integer mode with a 1d noise.

 

 

Cheers

 

20fdx83.png

VOPtest01.hipnc

Share this post


Link to post
Share on other sites

well, I give up ;3 

Apparently it's simply not possible the way I'm trying to do it. Explanation is here : http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=31549

and here : http://forums.odforce.net/topic/15140-is-it-possible-to-use-vex-for-accumulated-calculations/page-2

 

I think it's safe to assume that the more knowledgeable guys have been laughing their butts off, waiting for us to realise the futility of our endeavours. 

Anyway, I learnt quite a lot today so it's all right.

 

I'm uploading the hip file with a working version of what I was trying to achieve in vops but made with a bunch of attribPromote and pointWrangle nodes. 

 

d4_3.hipnc

Share this post


Link to post
Share on other sites

Here's my slightly-got-carried-away, entirely beyond-specification contribution.

 

I just enjoy using the "Hybrid Terrain" fractal any chance I get 'cos it's pretty.  There's some token mesa-plateau-type ramp in there, plus some colour mapping by height.

 

Hopefully it'll give some hints at the sort of thing that's possible with relatively few nodes.

 

(That's odd, the forum won't let me upload "hiplc" files from Indie... it only allows hip or hipnc)

 

post-5306-0-90486100-1409609190_thumb.pn

 

day4_terrain_thingy.hipnc

Share this post


Link to post
Share on other sites
Guest tar

Super cool - nice to see everyone here!

 

I'll post later today, work has picked up a notch, but I reckon it would be super cool that when we are going to be creative with solutions, that we also create on the exact specifications of the Challenge.  This avoids being too loose with our interpretations, and, is closer to the real-world where, if you are tasked with something, you may need to deliver that exact thing.

 

Danw try .zip compressing the hiplc. 

 

Thanks again everyone!

Share this post


Link to post
Share on other sites

well, I give up ;3 

Apparently it's simply not possible the way I'm trying to do it. Explanation is here : http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=31549

and here : http://forums.odforce.net/topic/15140-is-it-possible-to-use-vex-for-accumulated-calculations/page-2

...

well, since H13 it is possible to do such things in a single Attrib VOP/Attrib Wrangle since you don't have to execute it in paralel per point but still can write to points (which before you couldn't)

simply execute it in Detail mode and do your own For loop over points where you can compute any value per point, store maximum or whatever, then reuse it in the same node you can still set values on points or prims

(the only catch can be speed, and slightly the workflow, but it still can be pretty fast) 

it's not ideal though, so you would usually split this into more VOP nodes, but you can certainly use this technique instead of multiple Attrib Promote nodes, simply to compute min, max, average or whatever detail attribs at once in one VOP(Detail mode), in single for loop, then use them in another VOP node, that runs in parallel per-point as you did in your file

Edited by anim
  • Like 1

Share this post


Link to post
Share on other sites

Danw try .zip compressing the hiplc.

 

I just uploaded the hiplc file, renamed to hipnc... it should still function exactly the same.

I should probably point it out to the odforce powers-that-be though.  What's the official best-way to do that?

Share this post


Link to post
Share on other sites
Guest tar

Can someone take over for the next two days please - I'm too swamped with work and can't allocate any brain resources to this :)

 

We need a daily challenge that's not complex - but will build skills progressively

 

Thanks!

Edited by tar

Share this post


Link to post
Share on other sites

I'm going to be gone for a week, we should put this thread on hold if no other pro will pick this up. On hold until Marty is free. This thread is golden!

Edited by thesoloman

Share this post


Link to post
Share on other sites

Hey guys,

 

I think this is a really cool idea, so I'm in...

 

This was a good one, I never really dealt with point clouds before although I've done basically the same thing as this in C++ admittedly quite naively.

 

georgeivan: Hint- You could have done it with two nodes, three if you keep the file node which is more of a matter of preference I suppose.  Your basically performing the same calculation twice.

 

I would put up a screen shot but I can't figure out how to besides pasting a picture of both my screens.  Clicking my media just brings me to page showing the picture then I get confused and go back and all the stuff I wrote is gone :(  So i gave up   

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×