Jump to content

script: make grass


quizzy
 Share

Recommended Posts

For 3D Studio MAX, a make grass script, excellent script by the way. Only disadvantages are: It's all geometry and it is a bit slow to generate the grass.

 

Check this link for download....

 

interface:

 

grass.jpg

 

sample:

 

grasje.jpg

 

[ June 20, 2002, 06:43 AM: Message edited by: quizzy ]

Link to comment
Share on other sites

Hi quizzy,

 

Very nice script I think. Unfortunately, I am not able to run it (because I use max3.1?)

The scripts always stops at "update patchOfGrassObj"

 

Have you tried it in 3.1? What are your results?

 

rgds

 

nisus

Link to comment
Share on other sites

I only tried it in MAX4.26... and my result you can see above, the little picture of grass, just a quick test. I don't have more time just now to test it, cause i'm going to net render a scene and then go home...hehehe biggrin2.gif

Link to comment
Share on other sites

Hi tdp,

 

I do things like were described in the helpfile:

I draw a plane (200x200, 4 segments)(surface), copy the plane (border), change the segments to 10 and add a noise modifier to the border.

I press the button 'border' to select the border, and do the same with surface. I don't touch any settings yet and hit the "make this rocket fly".

The script starts making a basic plane with a few modifier and stops. When I analyse the scene afterwards I got these three objects:

 

* border

* surface

* TempGrassBlade: this exist of a plane, a uvwmap modifier, a taper, and a bend modifier called 'cupping'

 

after this, the script pops up with the line obj.modifiers[ "cupping" ].BendAxis = 0 selected.

 

Hope this helps you out a bit ;)

 

rgds

 

nisus

Link to comment
Share on other sites

Hi tdp,

 

I forgot to mention that I don't see anything in the viewports anymore. I can 'see' objects when i hit 'H' (shortcut to the selection list) but that's it. I can't zoom anymore and all grids dissapear.

 

rgds

 

nisus

Link to comment
Share on other sites

okay... somewhere it says something with cupping or so...

obj.modifiers[ "cupping" ].bendAxis = 0

something like this...

well MAX 3 doesn't know the .bendaxis command, it should be .axis so it should look like this in the script:

 

--

-- Add the first bend modifier

--

addModifier obj (Bend name:"cupping")

obj.modifiers[ "cupping" ].Axis = 0

obj.modifiers[ "cupping" ].Angle = 90

 

--

-- add the bend modifier

--

addModifier obj (Bend())

obj.modifiers[ #bend ].gizmo.pos += [ 0, -fLength/2., 0 ]

obj.modifiers[ #bend ].Axis = 1

obj.modifiers[ #bend ].direction = 90.

 

--

-- Add the material modifier

--

 

This should definitely solve your problems...

Link to comment
Share on other sites

  • 1 year later...
  • 4 years later...
Hi quizzy,

 

Very nice script I think. Unfortunately, I am not able to run it (because I use max3.1?)

The scripts always stops at "update patchOfGrassObj"

 

Have you tried it in 3.1? What are your results?

 

rgds

 

nisus

 

why are you using old versions of max? what is your reasons?:) i am just curious:)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...