Hi!
I\'m posting this here as I didn\'t get answers much on the DBPro forum. I guess this is too newblike question then
There\'s a Newsletter\'s tip of the month that teaches how to use vertex manipulation to render 10,000 trees. Basic idea is to create a plane, make a mesh of it and then add the mesh to vertexdata of that object, to say, fill the object with vertexes.
after that reposition the vertexes to match the tree-coordinates. Ok great idea. But i don\'t seem to get it working. Only way i can do something to mesh is to convert mesh to vertexdata. but that ain\'t suitable for this.
[href]http://www.thegamecreators.com/data/newsletter/newsletter_issue_73.html#12
[/href]
this is the code.
I tried it simplifying with this(doesn\'t work, returns empty object, or invisible):
make object triangle 1,0,0,0,0,1,1,0,0,2
make mesh from object 2,1
lock vertexdata for limb 1,0
add mesh to vertexdata 2
`manipulate vertexes
set vertexdata position 0,1,1,1
set vertexdata position 1,1,10,15
set vertexdata position 2,1,5,30
unlock vertexdata
do
loop
`this is straight from my head but if i remember commands right it
`should work...
`what i\'m trying to do here, is to create a triangle, and re-
`form it to be larger, not symmetric.
hmmmh.. that didn't compile