2 lights

parse

15-08-2007 02:44:58

Hi, I´m having this problem:

when I use 2 lights, the object cast 2 shadows, but it looks like the 2nd light disable the 1st one. It´s like only one light is activated, although the shadows are ok.

What am I doing wrong? Do I have to make something on 3dsmax before exporting? Or is it my loader that is not right?

Obs.: I´m using collada for the xml (dae), and ofusion for the meshes, etc.

The other problem is that when exporting, some objects are located in wrong directions. Do I have to reset xform of all objects on my scene?

Lioric

15-08-2007 16:00:42

Do you mean all the lights casts shadows, but not all the lights affects the objects?

How is the scene displayed in the preview viewport and in your application, oost a screenshot of your issue

About the object orientation, if you are not using the osm scene files, then you need the reset the xform (or at least the pivot point) because you are using the meshes directly (not the object's node that is located in the osm file, that contains the entitiy transform)

parse

06-09-2007 04:00:43

Yes, here is an exemple with 2 lights source:

Modulative Shadows:


Additive Shadows:


No Shadows:


Some shadows are not right at all... And it gets too dark when I use modulative... It looks like only where the lights cross each other the intensity is set to 1. Is it the problem on my viewer?

Lioric

08-09-2007 19:07:18

It might be related to your shaders (if using them) or the shadow material (if using a custom material)

What are the results if you switch each light (a single light is enabled in the scene at any time)?

Start adding objects to the scene in order (in your application) and test if any object is causing this problems

This seems to be an issue on your application