Page 1 of 1

ArchiCAD plugin grass shader

Posted: Mon Nov 10, 2014 11:38 pm
by face_off
Hi. Following is some info on the grass shader I am currently developing for the plugin. It works by creating an Alembic (ABC) file containing hair strands which render in Octane a grass blades. The generation of the ABC file is similar to the generation of CSV files - however it is done instead of loading an OBJ file (ie. so instead of loading an OBJ as a proxy, you load an ABC file - and the plugin will generate the ABC for you).

This is designed only for grass blades - it is not a generic hair strand generator. Each grass blade has 4 vertices (root, tip and 2 in between), and the Randomness effects the height variance and bend in the blade. You need to refresh the Octane scene once an ABC file has been generated in order for it to be loaded into the scene.
grass shader dialog.png
Because ABC files have a different material connection point to OBJ files inside Octane, there are some constraints with the grass material. There is no "default" grass material - so you need to Import your material each time you regenerate the ABC file. You cannot Material Pick a grass shader material - instead, select the proxy host and the grass material will appear in the Materials tab.

The render below was 500,000 blades of grass (hair strands). Even at this volume, there is quite a load on the graphics card. Over 1 million strands you will need a powerful graphics card. The plugin will generate up to 10 million strands - however I am not sure if this number of strands would actually render.

Paul

Re: ArchiCAD plugin grass shader

Posted: Mon Nov 10, 2014 11:45 pm
by rappet
Hi Paul,
You know how to make people smile bigtime :!:
Love to play with this feature :mrgreen:
Greetz,

Re: ArchiCAD plugin grass shader

Posted: Tue Nov 11, 2014 9:37 am
by BfPuVAK
:D :D :D

(but unfortunately absolute no time to play with it)

Greetz,
Artur

Re: ArchiCAD plugin grass shader

Posted: Tue Nov 11, 2014 9:58 am
by rappet
Hi Paul,

First test of grassmaker.
It takes about a minute to calculate 100.000
Grassmaking.JPG
the calculation misses parts of the roundsahped mesh (like when calulating csv; see also image4)
Grassmaking2.JPG
Looking good :mrgreen: (happy, happy)
Grassmaking3.JPG
To compare I made test with csv... feels like calculating csv takes longer then in previous versions.. could that be correct? with or without folloow mesh surface normal does not make difference.. both misses parts of round shaped mesh
Grassmaking4.JPG

Re: ArchiCAD plugin grass shader

Posted: Tue Nov 11, 2014 10:06 am
by rappet
Hi Paul,
I am trying to get the strands with more density (closer to each other)... how can I do that.
In the example I am trying to make a carpet :-)
cheers,

Re: ArchiCAD plugin grass shader

Posted: Tue Nov 11, 2014 9:01 pm
by face_off
I am trying to get the strands with more density (closer to each other)... how can I do that.
Increase the number of strands and the base width.
the calculation misses parts of the roundsahped mesh (like when calulating csv; see also image4)
Jeroen - could you pls send me a pln with just that round shape in it?

Thanks

Paul

Re: ArchiCAD plugin grass shader

Posted: Thu Nov 13, 2014 7:35 am
by face_off
Above issue rectified in 2.12.1.27, which I just posted in the main TEST thread.

Paul

Re: ArchiCAD plugin grass shader

Posted: Wed Dec 03, 2014 2:17 am
by face_off
Tutorial on generating grass.