Grass utility in the sdk

Finally the grass is growing in the sdk. Finished the sdk plugin for grass placement on arbitrary object surfaces.
You can see it in action here:

[video]http://youtu.be/HpBoe3eBMs8[/video]

The plugin can be downloaded from here:
http://code.google.com/p/l2jserver-client/source/browse/trunk/Netbeans/GrassLayer/release/com-l2client-grassmodule.nbm

13 Likes

Cool

This is great!

What was your final solution for placing grass? Are you still ray-casting or did the other approach work for you?

Awesome stuff!

Really nice :slight_smile:

@t0neg0d Still doing raycasts, had no time so far to dive in on the particles, but will definitely have a look at it for later effects stuff I am planning.

@all I am struggeling a bit with the plugin packaging. The utility uses a shader inside the plugin package, but I have only succeeded to get this running by extracting the shader into current project. Does anybody have a suggestion on this?

@ghoust said: @all I am struggeling a bit with the plugin packaging. The utility uses a shader inside the plugin package, but I have only succeeded to get this running by extracting the shader into current project. Does anybody have a suggestion on this?

You will have to give the user a “J2SE Library” with the shaders in it. Basically a jar file they can add to their projects.

Edit: It can be in the same plugin btw.

1 Like

The plugin code can be found here: https://l2jserver-client.googlecode.com/svn/trunk/Netbeans/GrassLayer
The utility class here: https://l2jserver-client.googlecode.com/svn/trunk/FCClient/src/com/l2client/util/GrassLayerUtil.java
The shader is in the jar of the netbeans plugin

3 Likes

Great work!
Will it be available with a nightly build someday?
A tutorial how to create such a map for the plant growth
would be also nice. I was thinking of the texture paint feature in blender.
If it would be editable directly in the sdk it would be even better:)

2 Likes

@umask007 not sure what must be done to have this in, guess soem jar signing, or so.

Hmm,… for the tutorial, I am sure I will create one meanwhile:

the plant map. Currently it uses one choosable alpha map channel of you model, if you model does not have an alpha map, the the diffuse texture is used. By using the threshhold value and the map channel you influence where the grass is planted.

Guess it would be nice to have something as a choosable plant map too, what do you think? This texture could be edited in the sdk…

For the integration of the plugin into the sdk, as long as this is not an official plugin you can also:

  • check out the project into your jmonkeyengine sdk
  • right click on the project and say Install/Reload in Development IDE

and give it a try…

2 Likes

@ghoust For the average Joe out there. Can you explain how we can start using your marvelous contribution?

Also, please try out our new plugin wizard so jmonkeys can easily just grab this straight from within the SDK and start playing with it.

@Pixelapp guess you need the Netbeans plugin development plugin. I will try to upload the netbeans module so people can donload an install it.

Add the GrassLayer project to the sdk (Import from zip, from folder, etc.)
Right Click on the project and choose Install/Reload in Development IDE
Open a scene in scene composer
Select a node with an alpha or diffuse map, set the texture to be used and select the channel to be used for distribution.

@erlend_sh I tried it but it seems it does confuse me more than I thought it should. I have a nbm, so what do I need the project created with the plugin wizard for?

What is this step?
Make sure the plugin is part of a “Module Suite” and that its located in
Why do I configure the properties of the projects twice? Isn’t a plugin a plugin?

Are these two completely different things?
https://wiki.jmonkeyengine.org/legacy/doku.php/sdk:development:extension_library
https://wiki.jmonkeyengine.org/legacy/doku.php/sdk:development:setup#jmonkeyengine_sdk_contributions_update_center

In my drop downs for display category I only have jMonkeyEngine, no matter how that project was created

@ghoust said: What is this step? Make sure the plugin is part of a "Module Suite" and that its located in Why do I configure the properties of the projects twice? Isn't a plugin a plugin?

Are these two completely different things?
https://wiki.jmonkeyengine.org/legacy/doku.php/sdk:development:extension_library
https://wiki.jmonkeyengine.org/legacy/doku.php/sdk:development:setup#jmonkeyengine_sdk_contributions_update_center

In my drop downs for display category I only have jMonkeyEngine, no matter how that project was created

This is because the plugins get compiled in a suite on the build server, hence your project needs to be part of a suite too.

The dropdown may only show existing categories but you can simply enter the suggested category via the keyboard.

1 Like

Thank you for that explanation!

How to install that plugin?

check out the project. right click on the project. choose Install/Reload in Development IDE…

Hello.
I’m new here in the forum. I have a question about the installation of this plugin. I already read the discription but I don’t find the “Install/Reload”-option and I still have no idea how to import this plugin. I 've downloaded the 2 files but I don’t know where the have to be. I will be happy when someone helps me.
Have a nice day!
Domenic