my lighting poroblem
by john smith · in Torque X 3D · 01/14/2010 (8:23 am) · 19 replies
hello
im john
my englisg is weak
i have a problem in lighting
i have a character that has 5 texture and 5 normalmap that they textured 5 part of my character(head-upper body - lower boy-shoes- ...)
when i import my character without lighting i have very bad lighted character . if character moving some of part is lighting an unlighting when walking or standing (there is only sunlight in scene but i dont create any material for character)
please help me?
below is pics of my problem


im john
my englisg is weak
i have a problem in lighting
i have a character that has 5 texture and 5 normalmap that they textured 5 part of my character(head-upper body - lower boy-shoes- ...)
when i import my character without lighting i have very bad lighted character . if character moving some of part is lighting an unlighting when walking or standing (there is only sunlight in scene but i dont create any material for character)
please help me?
below is pics of my problem


#2
i read this topic and solved my pereviuse problem
this is new problem
i dont use any lighting material for my character but some part of my character has lighted
i am confuse for this problem!
01/14/2010 (12:29 pm)
thanks zoidi read this topic and solved my pereviuse problem
this is new problem
i dont use any lighting material for my character but some part of my character has lighted
i am confuse for this problem!
#3
But only if you don't define one yourself.
However, I have no idea why the lighting on your model looks so messed up.
01/14/2010 (4:26 pm)
As I mentioned in an other post, there are lighting materials defined for every texture by default now (as of version 3.1.4 I think).But only if you don't define one yourself.
However, I have no idea why the lighting on your model looks so messed up.
#4
are you sure "there are lighting materials defined for every texture by default now (as of version 3.1.4 )"
if this is right, why this lighting is very bad and light affect some part of character zone?
01/15/2010 (1:42 am)
thanks Mathias kahlare you sure "there are lighting materials defined for every texture by default now (as of version 3.1.4 )"
if this is right, why this lighting is very bad and light affect some part of character zone?
#5
01/16/2010 (5:57 am)
is there any one to help me to solve this problem?
#6
Maybe if you give me your DTS file I could try whether it is display correctly in my scene.
01/16/2010 (8:12 am)
Yes I'm sure of it, since I saw the code myself. Maybe if you give me your DTS file I could try whether it is display correctly in my scene.
#7
can you explane different between "default lighting material in tx3d 3.1.4" and "define lighting material in scene file" for object?
i dont understand this subject!
01/16/2010 (2:05 pm)
im sorry mathias , this object is not for me.can you explane different between "default lighting material in tx3d 3.1.4" and "define lighting material in scene file" for object?
i dont understand this subject!
#8
the first picture is with LightingMaterial,normalmap and sun light
the second picture is with sunlight and without LightingMaterial and normalmap
i think both picture has lighted but lighting bad.
if i can better this bad light to nice light.
i found that moving character with sunlight and without any material has very bad light. can any one help me?

01/18/2010 (5:08 am)
i do two test for lightingthe first picture is with LightingMaterial,normalmap and sun light
the second picture is with sunlight and without LightingMaterial and normalmap
i think both picture has lighted but lighting bad.
if i can better this bad light to nice light.
i found that moving character with sunlight and without any material has very bad light. can any one help me?

#9
1. Either you define a lighting material explicitly in the .txscene file
2. Or you do don't, in this case the engine uses a default lighting material
The default lighting material is just a plain new LightingMaterial [new LightingMaterial()] with LightingMode set to PerPixel.
So if your lighting looks weird you can define your own materials. Also you can adjust the sun within your .txscene file.
01/18/2010 (6:59 am)
What I was trying to say is that as of version 3.1.4 of Torque X lighting materials do not have to be defined manually for each and every texture any more. That means there are two possibilities:1. Either you define a lighting material explicitly in the .txscene file
2. Or you do don't, in this case the engine uses a default lighting material
The default lighting material is just a plain new LightingMaterial [new LightingMaterial()] with LightingMode set to PerPixel.
So if your lighting looks weird you can define your own materials. Also you can adjust the sun within your .txscene file.
#10
i do next test for lighting
the first picture is with LightingMaterial,normalmap,sunlight and one direction light
the second picture is with LightingMaterial, normalmap,one direction light without sunlight
there are two question for me?
1 - why when i add direction light to scene , some part of object is black?.in these picture have red circles.in my character ,fingers and face are black
2 - what is right path to nice lighting?

01/18/2010 (9:21 am)
thanks mathiasi do next test for lighting
the first picture is with LightingMaterial,normalmap,sunlight and one direction light
the second picture is with LightingMaterial, normalmap,one direction light without sunlight
there are two question for me?
1 - why when i add direction light to scene , some part of object is black?.in these picture have red circles.in my character ,fingers and face are black
2 - what is right path to nice lighting?

#11
01/19/2010 (6:29 am)
For some reason I can't see any of your images. But at a guess, you probably need to set the ambient value to a reasonable value so the black bits aren't so black, something around the 128,128,128 level (or 0.5 if takes floats, I don't know, I don't use the editor).
#12
picture address:
http://forum.gamestudio.ir/download/file.php?id=101&mode=view
http://forum.gamestudio.ir/download/file.php?id=102&mode=view
i change ambient value but ther are black parts too.
01/19/2010 (12:20 pm)
thanks trentpicture address:
http://forum.gamestudio.ir/download/file.php?id=101&mode=view
http://forum.gamestudio.ir/download/file.php?id=102&mode=view
i change ambient value but ther are black parts too.
#13
this picture have black parts.(face and fingers)
please help me to solve this problem
01/20/2010 (5:02 am)
this is my character lightingthis picture have black parts.(face and fingers)
please help me to solve this problem
#14
anybody not show this problem before?
is this my problem or engine bug?
where are masters to help me and other people that may have same problem?
01/21/2010 (5:18 am)
anybody has no idea for this problem?anybody not show this problem before?
is this my problem or engine bug?
where are masters to help me and other people that may have same problem?
#15
You could create something like a test case project,
that is a project with the minimum setup where you
get this kind of error and upload it.
Then we could take a look at it as a whole to find
the mistake.
That's more or less how I solved my lighting problem
earlier (back then John created a test project for
me which I could compare to my solution).
01/21/2010 (8:30 pm)
Sorry I've never had such a problem with Torque X.You could create something like a test case project,
that is a project with the minimum setup where you
get this kind of error and upload it.
Then we could take a look at it as a whole to find
the mistake.
That's more or less how I solved my lighting problem
earlier (back then John created a test project for
me which I could compare to my solution).
#16
Maybe also check that there is no transparency in the textures?
01/22/2010 (7:33 pm)
Have you checked the normals on those polys?Maybe also check that there is no transparency in the textures?
#17
"Have you checked the normals on those polys?"
2 - i dont use any transparency?
01/23/2010 (11:20 am)
1 - please explane about this text"Have you checked the normals on those polys?"
2 - i dont use any transparency?
#18
I suppose it could also be your normal map.
02/03/2010 (11:07 am)
Every face has a inside and outside(part we see) a vector/normal shoots out from the outside. Possibly you have them reversed, or possibly you have 2 or more faces occuping the same exact space and they are fighting to be seen, do the black portions flicker?I suppose it could also be your normal map.
#19
but there is problem yet
thanks for your post kevin
02/03/2010 (2:28 pm)
i delet normal map in scene file(lighting material section)but there is problem yet
thanks for your post kevin
Torque Owner zoid
.
edit: Just realised that you seem to have posted in the topic I linked to. :p