Hedges using Pflow

After searching the forums for a while (with no luck), I am resorting to asking the users if they know where a thread is, Recently I saw a thread that showed a technique where the user had a displaced box for the base of the hedge and a few scattered leaves over the top for a very realistic result. I think the example he showed were using text for the shape of the hedge. I found this one from TGraphics http://www.chaosgroup.com/forums/vbulletin/showthread.php?t=32306&highlight=bush,
but the one I’m thinking of was more recent and looked better (sorry Tgraphics).

I thought the thread was started before July 7th so the recent forum crash shouldn’t have affected it.

Thanks,

Never mind, I just checked and it looks like it was posted in mid July so its toast.

Hi Bret - I posted the thread about the topiary hedge with particle flow and displacement. I will try and dig out the files and repost when i get the chance. Did you have any particle question?

Yes, please re-post. Cheers.

Here is a tutorial about the process:

http://www.orvatsel.com/max/hedges/

Thanks, I use Parray for hedges quite often. However I would like to see the tutorial for doing hedges with Pflow.

That would be great, thanks!

+1 Those hedges were amazing.
b

global leaf_count = 6000
global leaf_length = 0.14
global leaf_width = 0.06

global leaf_mat = Multimaterial ()
leaf_mat.name = “Leaf_material”
leaf_mat.materialList.count = 2

leaf_mat.material1 = Standardmaterial ()
leaf_mat.material1.diffuseMap = Bitmaptexture fileName:“Leaf_06C.jpg”
leaf_mat.material1.opacityMap = Bitmaptexture fileName:“Leaf_06A.jpg”
leaf_mat.materialList[2] = Standardmaterial ()
leaf_mat.materialList[2].diffuseMap = Bitmaptexture fileName:“Leaf_07C.jpg”
leaf_mat.materialList[2].opacityMap = Bitmaptexture fileName:“Leaf_07A.jpg”

global leaf = Plane realWorldMapSize:off name:“Leaf_01” length:leaf_length width:leaf_width widthseqs:1 lengthseqs:1 pos:[0,0,0] isSelected:on

distr = pickObject prompt:“Select Object” count:multiple

PF_Source X_Coord:20 Y_Coord:0 isSelected:on Enable_Particles:on Logo_Size:10 Emitter_Length:10 Emitter_Width:10 Emitter_Height:10 pos:[0,0,0]

particleFlow.BeginEdit()

op1 = Birth()
op1.Emit_Stop = 0
op1.Emit_Start = 0
op1.type = 0
op1.amount = leaf_count

op2 = Position_Object()
op2.Emitter_Objects = distr --distributan array
op2.Use_Surface_Offset = on
op2.Surface_Offset_Minimum = leaf_width/10
op2.Surface_Offset_Maximum = leaf_width

op3 = Speed()
op3.speed = 0

op4 = Shape_Instance()
op4.Shape_Object = leaf
op4.variation = 20

op5 = Rotation()

op6 = Material_Frequency()
op6.Assigned_Material = leaf_mat

op7 = DisplayParticles()
op7.color = $.wireColor
op7.visible = 20
op7.type = 6

op9 = RenderParticles()

ev1 = Event()
ev1.SetPViewLocation ($.X_Coord) ($.Y_Coord+100)
particleFlow.EndEdit()
ev1.AppendAction op1
ev1.AppendAction op2
ev1.AppendAction op3
ev1.AppendAction op4
ev1.AppendAction op5
ev1.AppendAction op6
ev1.AppendAction op7

$.AppendAction op9
$.AppendInitialActionList ev1
--particleFlow.openParticleView()

I have automated this thing a bit.. you may have to change the code a bit: - Changing the numbers of leafs
- Changing size (height / length)
- changing the diffuse map and opacity map

run the script, and select multiple objects and end with clicking the RMB.

huh? How do I use this code?
When I copy and paste it in a new script then run it, all I get is array undefined

Chris, any chance you can repost your work that was lost with that forum crash?