This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [PROBLEM] Lighting  (Read 2622 times)

abdalrahman9

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 129
    • View Profile
[PROBLEM] Lighting
« on: January 13, 2015, 01:54:29 am »
Hello there. I have been converting many models for the past few months and i have noticed that for some, they have a strange pattern. From what i can tell, it is probably the lighting of the model and i have tried to edit them, though i did not succeed in fixing it. Giving you an example, here is one model i have done which has some parts of it that have weird lighting and at some parts, proper lighting:

Weird Lighting


Proper Lighting


My question is how  am i soppuse to fix this and make all of the model's meshes have the same lighting. I am pretty sure you can guess that it looks weird for some parts are lightened up and at some other places, it isn't. I have attempted in using the 'WMO Light' CMD made by snoman to see if it would work, but my lack of knowledge on the program has hindered my progress. I ran the cmd on the wmo and a "Hello World" pops out. Not sure if that means it ran properly or not... Anyways, any inputs would be appreciated.

Sincerely,
Abdalrahman9
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [PROBLEM] Lighting
« Reply #1 on: January 13, 2015, 09:00:47 am »
It might be related to bad normals. Maybe check that.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

abdalrahman9

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 129
    • View Profile
Re: [PROBLEM] Lighting
« Reply #2 on: January 14, 2015, 03:42:03 am »
First of all, thank you Schlumpf for your reply. Now i have tried to add a normal modifier in 3ds max and checked the unify normals button to see if it would work but with no luck. The problem had not fixed it self. I had just done another model which also has the same problem. Here is a pic of the bug on the model

Though, if you look at the model, the lighting difference isn't  where as the normals are. I am not sure if the normals are the problem for wouldn't it form triangular shapes? As you can see in the image, the forms of the lights are irregular and seem random. Though, i might be wrong as i am still testing around. Any other ideas would be greatly appreciated.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

abdalrahman9

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 129
    • View Profile
Re: [PROBLEM] Lighting
« Reply #3 on: January 29, 2015, 11:48:56 pm »
Yet again, the same problem. I am not sure what the problem is. Could the WMO Light application fix this or no?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

abdalrahman9

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 129
    • View Profile
Re: [PROBLEM] Lighting
« Reply #4 on: February 01, 2015, 08:05:56 am »
Well good and bad news. The good news is that i fixed the problem! The way i did that was by de-selecting the following box from the mirror machine converter:

With using those following settings i got this:

However, the bad news is that as you can see, there is no more lighting at all and it is hard to see the model now. Even when the sun is out, it isn't that great. The whole model is dark. Any suggestions?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

abdalrahman9

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 129
    • View Profile
Re: [PROBLEM] Lighting
« Reply #5 on: March 17, 2015, 06:05:16 pm »
Please forgive my bumping, but has anyone still not encountered anything similar? i had tried to fix the problem a few times in the past with trying different formats, and playing around with the model but no luck. it would seem the problem might be the normal as schlumpf had stated and i have tried my best to change them but with no luck. Is there a specific way you must alter them to get them working?

here are some other examples. I am not sure if these will help as i have already given many instances where it happens but i guess it doesn't hurt.


but in some other places it is okay and it looks like this


just another example
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

abdalrahman9

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 129
    • View Profile
Re: [PROBLEM] Lighting
« Reply #6 on: April 22, 2015, 07:14:07 am »
Not sure if anyone is still checking this thread but i have found something new on this. After creating several models, i have releazed that there are a pattern where the aweful shadows begin to occur. There is a specific area where if the model goes beyond it, MM starts to ruin the lighting. Also, this area is not a straight shape but it is a diagnol rectangle sort of shape. It is hard to explain but in this pick it shows that it is obvious there is a barrier of some sort where the model had passed it which resulted in the horrible shadows.

I guess it is one of MM limitations. I will update this thread when ever i find new things. As i am not trying to fix this but i just go along and hope that i figure it along the way.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: [PROBLEM] Lighting
« Reply #7 on: April 22, 2015, 10:29:28 am »
Please provide a few images of the broken lighting area with the wireframe render on if possible.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

PhilipTNG

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 709
    • View Profile
Re: [PROBLEM] Lighting
« Reply #8 on: April 22, 2015, 01:21:19 pm »
Quote from: "abdalrahman9"

your object is too big

, that's why the black shadow stuff occurs.   had the same thin ghappen when I did the flying saucer.


It weighed a total of around 800,000 polygons and was MASSIVE!, Was thinking of making a city inside of it(using noggit to make terrain inside and punching tons of holes to make it a floating island.)  Anyway as you can see, some sections of it have the shadow visual that you are getting, my guess it's because it's so large, because the shadow is in a VERY STRAIGHT Line , probably more noticable in my example since it's a rounded object, so it's probably due to a box of some sort(box like a bounding or shading box, a sequence that isn't made to interpret something after a certain size.)  Just a guess.

For me, I just measured where the shadows occured, made myself an imaginary box in my 3D application of where the shadow is most likely to occur and cut my model up from there and made the remainder another wmo object, then using some simple math equations, I spawned them next to each other the rest was history.

As to how big it is... lol. here's my scale:

[media:11jg7gho]https://www.youtube.com/watch?v=6CRgfjmDLew[/media:11jg7gho]

After cutting and splitting it up, it no longer has the shadow, not something I'd recommend anyone doing unless they like doing algebra:
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: [PROBLEM] Lighting
« Reply #9 on: April 22, 2015, 07:13:58 pm »
Philip, This bug does not have anything to do with the scale of the model. It happens even on small meshes.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

abdalrahman9

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 129
    • View Profile
Re: [PROBLEM] Lighting
« Reply #10 on: April 22, 2015, 07:44:03 pm »
I am not sure but as Phillips said, there is a certain dimensions that the model has to be in for it to not have weird shadows. Also, thanks phillies for the tip and I sure try it, I don't mind using some math! Other than that, great models man!

@skarn: I will try to create a border from where the weird shadows begin to occur so that I can show you what I mean. I will also provide the wireframe picture soon, but do you want from the 3d program or from wmv?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: [PROBLEM] Lighting
« Reply #11 on: April 22, 2015, 07:58:11 pm »
Does not matter actually.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

abdalrahman9

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 129
    • View Profile
Re: [PROBLEM] Lighting
« Reply #12 on: April 23, 2015, 06:12:14 am »
This is roughly where i saw those shadows begin to show up.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: [PROBLEM] Lighting
« Reply #13 on: April 23, 2015, 12:55:24 pm »
Do you mean the area where white triangles cross the model?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

abdalrahman9

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 129
    • View Profile
Re: [PROBLEM] Lighting
« Reply #14 on: April 23, 2015, 11:00:00 pm »
yes
« Last Edit: January 01, 1970, 01:00:00 am by Admin »