Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Problems with lights  (Read 175 times)
Edu9000
Community Member
*
Posts: 1


« on: December 23, 2011, 03:44:14 AM »

This is my problem.

I created a room mesh which contains walls3D and floors. when I add a light this is the result:

A light through a door that illuminates the wall
this is a real illumination in back wall,because the rest of the wall is dark.

Now I change back wall3D by a cube (cube is not included in room like wall and floor) and the result of new lighting is:

this is not a real illumination in back wall because the wall is fully illuminated.

this is my light:
Dim LuzID As Integer
LuzID = Luz.CreatePointLight(New TV_3DVECTOR(100, 25, 200), 1, 1, 1, 400)
Luz.SetLightProperties(LuzID, True, True, False)
Luz.SetSpecularLighting(True)
Luz.EnableLight(LuzID, True)

And this is the material applied to the wall3D and the cube:
Dim Mat As Integer
Mat = Materials.CreateMaterial("Ambiente")
Materials.SetAmbient(Mat, 0, 0, 0, 1)
Materials.SetDiffuse(Mat, 1, 1, 1, 1)
Materials.SetEmissive(Mat, 0, 0, 0, 1)
Materials.SetSpecular(Mat, 0.1, 0.1, 0.1, 1)
Materials.SetOpacity(Mat, 1)

Why lighting is different on the wall3D and on the cube?

can someone help, please
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks