PDA

View Full Version : only half of the story



wingwalker
03-27-2004, 06:16 PM
ok...im nearly done with my first Lscript...all was going well, everything works as planned.

Except that my random points generator will only put points on one side of my goemetry???? see pic

FYI there are 65025 points in my landscape which pntCnt confirms back to me, so it can see all the points.


pntCnt = pointcount(); // how many points in the landscape, current layer
randompoint = random(0,pntCnt); // generates random number
myPntPos = pointinfo(points[randompoint]); // get point coordinates from random point

after this i then copy the geometry from the background layer and paste into the next available layer, then

move(myPntPos);

any ideas...

Rob T

wingwalker
03-29-2004, 03:38 PM
aaahhhhhh...I think I may have found the problem!!!

The land object was imported from Terragen. I have since tried it with a lightwave made terrain and all is well.

If i find that the problem shows up again I will ask more questions.

Rob T