[SOLVED] Shadow exclusion

Hello



how can i avoid this



http://i.imgur.com/8HAyn.jpg

Code:
PssmShadowRenderer pssmRenderer = new PssmShadowRenderer(assetManager, 1024, 3); pssmRenderer.setDirection(sun.getDirection()); // light direction viewPort.addProcessor(pssmRenderer);

and i wonder also how is it the tree does not cas any shadow
i merge different blender exports to o3j

thx

use another viewPort for the markers

@normen said:
use another viewPort for the markers


is there any example ?
do i have to create 2 scenegraphs ?
will the markers blend in the scene or be added on top ?
i got alpha textures(tree leafs) but filled polygons are rendered in the shadow buffer, is there a way to avoid this ? with two differents viewPorts?

sorry for so many questions but i am not use to shadow techniques and mergin 2 viewports artifice :P

thx
  1. no
  2. yes
  3. the latter
  4. look at the shadow tests

you can set the selection box to not cast nor receive shadows.



[java]

box.setShadowMode(ShadowMode.Off);

[/java]

3 Likes
@nehon said:
you can set the selection box to not cast nor receive shadows.

[java]
box.setShadowMode(ShadowMode.Off);
[/java]

hehe :facepalm: yeah that simpler ^^
@normen said:
hehe :facepalm: yeah that simpler ^^


i am so stupid i did not think of it before ha ha ha