Avoid using the thing mesh. Try to use genmesh which uses vertex lighting (gouraud shading).
Greetings, On 3/30/06, Martin Henne <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a problem, when I load a factory during the game > using "csLoader::LoadLibraryFile(...) " and create an > object from it using "iEngine::CreateMeshWrapper()". > > In this case, the objects are not lighted correctly (they are > too dark). '-relight' does not help, because the objects > are not loaded at the beginning. > > The same happens, when I load an additional Mapfile > without deleting the old world. > > Objects that were loaded from before > iEngine::prepare() are just fine. > > I tried using iEngine::ShineLights() and iSector::ShineLights() > after creating the objects - to no avail. Calling iEngine::Prepare() > again does not help either. The objects appear to dark. > > What can I do to get them correctly relighted? > > Tnx in advance. > > > > > Martin > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Crystal-main mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/crystal-main > Unsubscribe: mailto:[EMAIL PROTECTED] > -- Project Manager of Crystal Space (http://www.crystalspace3d.org) and CEL (http://cel.crystalspace3d.org) Support Crystal Space. Donate at https://sourceforge.net/donate/index.php?group_id=649 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
