2004-04-01 02:12 PM
2004-04-01 10:06 PM
Oleg wrote:Interesting trick. I have always wondered what the internal ID might be useful for.
I think, this is some of GDL engine optimization effect.
Try this trick to avoid it.
Instead RND(12) type RND(12 + GLOB_INTID*0 )
Oleg
2004-04-01 10:41 PM
fuzzytnth3 wrote:Try this
10:
Randper= INT (RND (15))
fill bft
pen bpn
fragment2 Randper,1
RETURN
10: Randper= RND(GLOB_INTID) ! pass one random ! +1 : fragments index start from 1 ! -1e-6 : to avoid exactly 16 Randper= INT(RND(16)-1e-6) + 1 fill bft pen bpn fragment2 Randper,1 RETURN
2004-04-01 10:41 PM
2004-04-02 02:12 AM
2004-04-02 02:28 AM
James wrote:Try generating your random values in the master script.
I've found this useful as well. Thanks
I've made a part that forms planks of varying widths, though I've got a few issues:
When I copy my object, the projection on plan is the same as the original, even though when I go to 3D view the objects apear different.
Any ideas how to get around this?
And while I'm at it, how do I get the 3D and 2D script to use the same random number sequence? So I get hotspots on each end of the plank.
Thanks.
2004-04-02 02:38 AM
2004-04-02 02:55 AM
James wrote:In the master script you could get it to create an array and fill it with random numbers, then use these same numbers sequentially in both scripts as part of a FOR NEXT loop.
I tried that. But because each plank needs to be random widths, the random number is generated with in a FOR NEXT 3D script - therefore generating a new random number for each plank.
2004-04-02 03:20 AM
2004-04-02 03:21 AM
2004-04-02 10:37 AM
Karl wrote:That sounds very cool. Do you still have the animation on the web somewhere? I would love to see it.
I used my goofy function for the ArchiContest a few years ago where I built a Finnish Tulikivi soapstone fireplace that was a light source for the scene - and the firelight flickered randomly in intensity, direction and color (within limits of course to make it look real). It used 3 AC lamps inside the woodstove to get the desired effect, which was pretty cool. I think I still have a little MOV that I could post if anyone is interested.