Simple shadow example needed

Has any one got an example of a Sphere casting a shadow onto a Box? or similar?

The only example i can find is the quake3 demo which im finding hard to extract the shadow parts.

Any help would be great.

From the xith3d javadocs im guessing:

ShadowBin sb = new ShadowBin();
Occluder oc = new Occluder()
oc.build(List submission)
sb.addOccluder(oc)

What do i do with the shadow bin?
What List is submission? / How do i add my shapes?
When do i call sb.build(List submission)? Guessing it’s after added all shapes to scene?
What else? (am i completely wrong?)

Ive read in the forums the tank ASE example used to cast shadows but not no more? My example doesn’t, anyone else?

An example from anyone would be great!

its bust

Simples Shadows are just a rendering option. ;D
This is showed in the MD2 Loader example of the Xith toolkit.

Thanks eMKa, ill try it tonight! :slight_smile:

Working shadows would be great! Is anyone working on this issue?

Ive set the render shadow option and it compiles, but still no shadows.
Is there anything else that has to be done? Thanks.

The shadow classes don’t appear to be fully implemented. The scenegraph.Occluder class looks complete, but I don’t know if it is functional. The render.ShadowBin class specifies only a single light source (at -10000, 10000, 10000) which is used for rendering. Shadows would be really nice for the API, so I hope the feature gets some attention in the future! :slight_smile:

The shadow classes don’t appear to be fully implemented.
Have you seen the xith3d quake 3 demo? That works using several lights and works well. Anyone know how its done? And do the shadows work on moving objects?

I believe the quake3 demo uses light maps to simulate static shadows.

Thats what i thought too.

May be Java/JOGL/Xith3d is too slow to render realtime shadows? Can anyone prove us wrong? :slight_smile:

it did once work well- JCD made a new one but he hasnt intergrated it yet :frowning:

Have you an estimate when? Would be a great feature and make xith3d more comparable to comercial engines. :slight_smile:

when he has the time i guess. proves its doable :wink:

Guess ill start a poll show the xith3d teem we need it. :slight_smile:

Any xithguru could take a look at this article?
http://www.devmaster.net/articles/shadowprojection/
I think it describes pretty good…

Maybe this too…

http://www.3ddrome.com/articles/shadowvolumes.php

Too hard for me, was looking for someting a little more simple like a simple shadow render option. Thanks anyway.

JavaCoolDude is really cool at this point.

Where are you JCD? We miss you! :wink: