Page 1 of 1

Grass

Posted: Fri Mar 05, 2010 8:58 am
by StompinTom
Hey hey,

Not much time now, but I'll explain later. Here is the BLEND file and a rendering of what the result looks like. Very simple, I made this in 2 seconds from scratch. No textures or nothing, just a very simple grass bunch object that I made with curves and a subdivided ground plane that I made wavy to show that it can be applied to any type of terrain. Materials are a simple brown diffuse material for the ground and a simple green Phong material for the grass. Extend this to forests, gravel, rocks, etc. etc. etc.

Feel free to ask for clarification. Hope this helps someone out... It's actually very light, I just did about 6 scenes each with several thousand trees and fields of grass and the packed Indigo files I made for rendering on my quad are all under 60 Mb with all the textures and everything. Not bad! Makes it very easy to swap around on a USB shtick.

Have at it!

Re: Le Grass

Posted: Fri Mar 05, 2010 10:28 am
by StompinTom
H'ok.

- Objects must be rotated 90 degrees in the Y axis for them to stand up straight on your grass. (RotY = 90)
- Over in the Extras panel you can set the size (1.00 means it is whatever size the actual instanced object is, you can play with that, though)
- Right below that is the field for changing the size randomly (very useful, I keep it between 0.3 and 0.6)
- In the Physics panel: Rotation is set to Normal, Randomize Phase is set to 1.0 (right next to Phase, NOT where it says Random right below Dynamic). This randomizes the rotation of the grass. It is this and the random rotation and placement that make it possible to make fields of grass that doesn't tile from a simple grass bunch model.
- Velocities are all at 0, don't need them.
- Make sure to enable the Emitter button so that it renders the ground plane, unless you're using a duplicated ground plane to control your particles, which may or may not be good practice.

Questions/comments?

Re: Le Grass

Posted: Fri Mar 05, 2010 11:53 am
by dakiru
Great stuff! Thanks for sharing :D
Will be very interesting to try this with density/size map 8)

Re: Le Grass

Posted: Fri Mar 05, 2010 12:18 pm
by StompinTom
Ah yes, forgot about that: Size and Density painting works fairly well, though it is useful to increase the resolution of your mesh so that you can get smoother gradients of change.

Re: Le Grass

Posted: Sun Mar 28, 2010 7:53 am
by Meelis
Hi

StompinTom i tested your grass-example.blend
Grass aint rendered, allsoo i cant see the grass in blender 2.49b.
And i modeled some grass blades added to particles system, i can see them but indigo wont render them.

Any ideas?

EDIT
I convert to mesh then i can see, but if i use childrens are they instanced after converting to mesh.
5000 particles x 20 childrens is pretty slow, memory use is 4,5 GB for blender and keeps going up.
Blender shows total objects ~100 000, but cpu core is still under load. Can it be blender view is just refreshing objects in view and it's safe to save my work.

EDIT2
Converted to mesh preserves instancing and indigo uses very litle memory to render it.
But i guess it's blender bug, i can't go over 2000 particles and 15 childrens.

Re: Le Grass

Posted: Fri Jul 09, 2010 4:15 am
by kikeonline
How did you convert to mesh!!??

I tried alt-c and look for the convert button on the modifiers list and nothing :(

Re: Le Grass

Posted: Fri Jul 09, 2010 7:53 am
by StompinTom
It doesn't work with children and I don't use the actual particles or anything.

That scene should be set up so that it uses an object (grass patch or blade) as a particle visualization type. That's the whole beauty of it, you can sub in any object you want (for example, a tree model to make a dense forest).

Re: Le Grass

Posted: Thu Aug 19, 2021 10:21 am
by burnin
:D
This is Now. Just render.
(500 objects w/ 80 childs)
Grass_hairsys.Scene.jpg
Blender 2.93.3 LTS, Blendigo Exporter 4.3.3., Indigo Renderer 4.6

Re: Le Grass

Posted: Wed Jan 05, 2022 8:26 pm
by MrBlack
burnin wrote:
Thu Aug 19, 2021 10:21 am
:D
This is Now. Just render.
(500 objects w/ 80 childs)

Grass_hairsys.Scene.jpg

Blender 2.93.3 LTS, Blendigo Exporter 4.3.3., Indigo Renderer 4.6
How did you manage this.
And is it possible with the 3DS Exporter?

Re: Grass

Posted: Thu Jan 06, 2022 5:10 am
by Headroom
I am not sure this is achievable with the 3DS Max exporter, never worked with it.
in Blender it's implemented with a particle system and is actually fairly easy to do.

However, even the Blender plugin/exported is lagging behind in functionality compared to say the LuxCore Render plugin, which features a node based material system right within Blender and viewport rendering in Blender.
The best Plugin is likely the C4D plugin, followed by the Sketchup version.

Re: Le Grass

Posted: Fri Jan 07, 2022 12:18 pm
by burnin
MrBlack wrote:
Wed Jan 05, 2022 8:26 pm
burnin wrote:
Thu Aug 19, 2021 10:21 am
:D
This is Now. Just render.
(500 objects w/ 80 childs)

Grass_hairsys.Scene.jpg

Blender 2.93.3 LTS, Blendigo Exporter 4.3.3., Indigo Renderer 4.6
How did you manage this.
And is it possible with the 3DS Exporter?
As mentioned, with Blender & Blendigo exporter. Scene file is attached. :wink:
About 3DS Max, I wouldn't know, but you're free to check and report your findings.