[Sidefx-houdini-list] Bridge of Cards

pingo van der brinkloev houdinilist at comxnet.dk
Wed Mar 19 14:27:22 EDT 2008


No worries:-) And good luck with the competition! I don't think I'm  
gonna make it in time, but I'm trying to build a structure anyway.

Man have I got a long way to go to:-/

pingo

On 19/03/2008, at 19.21, Chandra Maharzan wrote:

> Hey Pingo,
>
> Thank you so much for taking time to do this. It worked. I found  
> that I had
> an extra Duplicate node (I don't know why I used it, I hope it is  
> not going
> to destroy model). I am working with one of the structure right now  
> and it
> worked fine once I got rid of the duplicate node. :)
>
> Thanks man! I still need to learn so many things. :)
>
> Chandra
>
> -----Original Message-----
> From: sidefx-houdini-list-bounces at sidefx.com
> [mailto:sidefx-houdini-list-bounces at sidefx.com] On Behalf Of pingo  
> van der
> brinkloev
> Sent: Wednesday, March 19, 2008 10:38 PM
> To: sidefx-houdini-list at sidefx.com
> Subject: Re: [Sidefx-houdini-list] Bridge of Cards
>
> I have a file that does that and assigns random textures using copy
> stamping. gimme 10...
>
> On 19/03/2008, at 17.33, Chandra Maharzan wrote:
>
>> The main problem I think I am facing is that the Copy SOP doesn't
>> have No of
>> copies more than 1. The examples in Houdini and what you guys have
>> sent has
>> more than 1 e.g 8 and they are taking random textures..
>>
>> I have created a curve and copied over the card onto the curve
>> points...
>>
>> -----Original Message-----
>> From: sidefx-houdini-list-bounces at sidefx.com
>> [mailto:sidefx-houdini-list-bounces at sidefx.com] On Behalf Of Chandra
>> Maharzan
>> Sent: Wednesday, March 19, 2008 10:12 PM
>> To: sidefx-houdini-list at sidefx.com
>> Subject: Re: [Sidefx-houdini-list] Bridge of Cards
>>
>> Please send me the file.. its still not working. :)
>>
>> -----Original Message-----
>> From: sidefx-houdini-list-bounces at sidefx.com
>> [mailto:sidefx-houdini-list-bounces at sidefx.com] On Behalf Of pingo
>> van der
>> brinkloev
>> Sent: Wednesday, March 19, 2008 9:42 PM
>> To: sidefx-houdini-list at sidefx.com
>> Subject: Re: [Sidefx-houdini-list] Bridge of Cards
>>
>> Chandra are you looking at the copy stamp example I sent you?
>>
>> When you're using the copy SOP on its own (like in my example),
>> without using references (like a spline) u use $CY for the copies.
>> If you're copying onto points from other geometry (eg. a spline) the
>> copies are $PT
>> If you're copying onto particles, the copies are $ID
>>
>> (someone correct me if I'm wrong here)
>>
>> You really should look at the help files. there's tons of examples in
>> there:-D
>>
>> I have a file where I'm copying onto points from a spline. Let me  
>> know
>> if you need it.
>> Furthermore, points from a spline doesn't have normals, so you gotta
>> use a workaround in order to have the cards "flow" along the spline
>> (at least I was told).
>>
>> Lemme know if you need the file.
>>
>> cheers!
>>
>> pingo
>>
>> On 19/03/2008, at 16.41, Chandra Maharzan wrote:
>>
>>> Ok.. I think the problem I am facing is because I am copying the
>>> cards onto
>>> the points of the curve which means that there is one card copied
>>> over each
>>> point.
>>>
>>> On the material string value I need to randomize the cards from A,
>>> 2, 3, 4,
>>> etc... So, will this work?
>>>
>>> $HIP/card.`int(rand(3))`.jpg
>>>
>>> 3 being randomizing up to A, 2, 3.
>>>
>>> Is there any other solution to this??
>>>
>>> Chandra
>>>
>>> -----Original Message-----
>>> From: sidefx-houdini-list-bounces at sidefx.com
>>> [mailto:sidefx-houdini-list-bounces at sidefx.com] On Behalf Of Antoine
>>> Durr
>>> Sent: Wednesday, March 19, 2008 9:14 PM
>>> To: sidefx-houdini-list at sidefx.com
>>> Subject: Re: [Sidefx-houdini-list] Bridge of Cards
>>>
>>>
>>> On Mar 19, 2008, at 7:56 AM, Chandra Maharzan wrote:
>>>
>>>> What does this mean??
>>>> `stamp("../copy2","cardnumber",0)`
>>>
>>> The backticks (``) denote that what's inside them is to be
>>> interpreted as a Houdini expression.  stamp() is a function -- type
>>> "exhelp stamp" into the textport, and it will give you expression
>>> help that shows what the parameters are.  The stamp() function is
>>> typically used in conjunction with a copy SOP -- for each copy that
>>> you ask the copy SOP to generate, it "stamps" the left hand input,
>>> i.e. it goes and recooks the whole SOP chain.  You can use the stamp
>>> () function to vary the result of that SOP chain on each cook (see
>>> the help for the copy SOP).
>>>
>>> -- Antoine
>>>
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: sidefx-houdini-list-bounces at sidefx.com
>>>> [mailto:sidefx-houdini-list-bounces at sidefx.com] On Behalf Of
>>>> Antoine Durr
>>>> Sent: Tuesday, March 18, 2008 3:10 AM
>>>> To: sidefx-houdini-list at sidefx.com
>>>> Subject: Re: [Sidefx-houdini-list] Bridge of Cards
>>>>
>>>>
>>>> On Mar 17, 2008, at 2:15 PM, pingo van der brinkloev wrote:
>>>>
>>>>> ok cool thanks.
>>>>>
>>>>> I'm not going to mess with any paths:-)
>>>>>
>>>>> I didn't mean to prevent duplicates. I meant if $NPR goes above 51
>>>>> and
>>>>> I only have jpegs from 0-51 I would be in trouble, right?
>>>>>
>>>>> or should I use eeh... %51... seen that somewhere.
>>>>>
>>>>> ack... duplicates... looking fwd to that:-)
>>>>
>>>> It's actually really easy in this case!  *Don't* use any
>>>> randomization in the expression, just set the attribcreate to use
>>>> $PR.  Now, insert a sort SOP ahead of the attribcreate and randomly
>>>> sort the primitives.  You'll use all 52 (you should number the  
>>>> cards
>>>> starting from zero anyway), and you'll cycle through the deck again
>>>> if you use $PR%52 (reusing cards 0->51).
>>>>
>>>> -- Antoine
>>>>
>>>>>
>>>>> cheers!
>>>>>
>>>>> pingo
>>>>>
>>>>> On 17/03/2008, at 21.51, Antoine Durr wrote:
>>>>>
>>>>>> On Mar 17, 2008, at 1:27 PM, pingo van der brinkloev wrote:
>>>>>>
>>>>>>> Ok it works. This is totally awesome.
>>>>>>>
>>>>>>> One thing I don't understand is how you can avoid making the
>>>>>>> string
>>>>>>> the whole path, or at least $HIP/........../card,ètc.etc.
>>>>>>
>>>>>> In general, all file pointers should be relative to a project
>>>>>> root.
>>>>>> That way you can move or rename the job, but the pointers still
>>>>>> work.  $HIP should work for that.  You could also set the
>>>>>> HOUDINI_TEXTURE_PATH environment variable such that it contains
>>>>>> the
>>>>>> directory with all the images.  I'm not a big fan of that -- I
>>>>>> much
>>>>>> prefer a filepath that's pretty complete, in case I need to debug
>>>>>> something later on, e.g. that Houdini can find the picture but
>>>>>> that
>>>>>> Mantra can't, or that a particular server can't.
>>>>>>
>>>>>>>
>>>>>>> btw if it was a deck of cards should the string then be:
>>>>>>> card.`int(fit(rand($PR), 0, 1, 1, 51))`.jpg
>>>>>>
>>>>>> This won't prevent duplicates -- that's a challenge for another
>>>>>> day.
>>>>>> Also, the expression above will reduce the likelyhood of getting
>>>>>> the
>>>>>> last card by almost 100% (because of the int()).  Changing that
>>>>>> 51 to
>>>>>> 51.99 would help, as int(50.9) is still just 50.
>>>>>>
>>>>>> -- Antoine
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> - asuming there's no jokers;-)
>>>>>>>
>>>>>>> thanks for the help Antoine and Peter!
>>>>>>>
>>>>>>> pingo
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Sidefx-houdini-list mailing list
>>>>>>> Sidefx-houdini-list at sidefx.com
>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini- 
>>>>>>> list
>>>>>>
>>>>>> -- Antoine
>>>>>>
>>>>>> Floq FX Inc.
>>>>>> 10659 Cranks Rd.
>>>>>> Culver City, CA 90230
>>>>>> 310/430-2473
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Sidefx-houdini-list mailing list
>>>>>> Sidefx-houdini-list at sidefx.com
>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>> _______________________________________________
>>>>> Sidefx-houdini-list mailing list
>>>>> Sidefx-houdini-list at sidefx.com
>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>
>>>> -- Antoine
>>>>
>>>> Floq FX Inc.
>>>> 10659 Cranks Rd.
>>>> Culver City, CA 90230
>>>> 310/430-2473
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Sidefx-houdini-list mailing list
>>>> Sidefx-houdini-list at sidefx.com
>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>
>>>> _______________________________________________
>>>> Sidefx-houdini-list mailing list
>>>> Sidefx-houdini-list at sidefx.com
>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>
>>> -- Antoine
>>>
>>> Floq FX Inc.
>>> 10659 Cranks Rd.
>>> Culver City, CA 90230
>>> 310/430-2473
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Sidefx-houdini-list mailing list
>>> Sidefx-houdini-list at sidefx.com
>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>
>>> _______________________________________________
>>> Sidefx-houdini-list mailing list
>>> Sidefx-houdini-list at sidefx.com
>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>> _______________________________________________
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>
>> _______________________________________________
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>
>> _______________________________________________
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list



More information about the Sidefx-houdini-list mailing list