How to set toon shader effect to only one geometry? Other must look like usual. Or there is another way to “select” 3d object.
You add the specific shader to the specific geometry… I’m perhaps not understanding you yet. Try explaining more and perhaps add some examples of what you are doing already, what is going wrong and what you want to achieve instead of the effect you are currently getting
I need this effect (or similar)
Take a look at the Lemur library:
Lemur has a robust picking subsystem that uses JME’s standard ray collision code. In this Lemur Gem, I add simple mouse picking to the app already built in Lemur Gem #1 and Lemur Gem #2
When you initialize Lemur’s GuiGlobals, it automatically adds the MouseAppState that does scene picking. It also adds the guiNode and rootNode to the pickable scene roots automatically. This demo uses that automatic setup. It is also possible to use the MouseAppState without the rest of Lemur but for simplic…
But I think it’s a matter of applying the right shader to the spatial. So take a look at the shader tutorials.
Can’t open your links, “Oops! That page doesn’t exist or is private” message.
Try top link (Lemur Gems #3 …)
Here are the other lemur gems:
So, as some of you may know, Lemur is a light-weight GUI library that lets you make labels, buttons, and other twiddly bits in either 2D or 3D user interfaces.
The core design of Lemur was to build several modular toolkits that together form a full-up GUI library. Consequently, some of these toolkits have great utility even if you choose not to use the GUI elements themselves. This Gem covers one of these: InputMapper
The whole project can be found here: https://github.com/jMonkeyEngine-Cont…
In the previous Lemur Gem #1 , I talked about setting up camera movement using Lemur’s cool InputMapper class.
In this gem, I provide a simpler more self-contained example to show how simple button to method mapping can be accomplished. The example I use is a state to toggle the camera movement state on and off. This will be useful for future gems where mouse input will be necessary.
InputMapper has an addDelegate() method that can be used to directly wire an input function to a method of an …
In this Lemur Gem I will show an example of using the DMesh class to deform a standard Mesh on the fly. Lemur Gem #3 showed how to easily turn regular 3D scene objects into clickable things. I will extend that to turn those boxes into swaying beams.
Some random introductions…
First meet MBox. MBox behaves similarly to a JME box except it can be ‘split’ along any of the major axes to provide simple subdivision. I replace the old Box initialization code with MBox so that there are more trian…
Forum links in these posts don’t work because they are from before the forum migration