Search found 10 matches
- Mon May 16, 2016 1:08 pm
- Forum: Beginners Help
- Topic: Lighting problem
- Replies: 22
- Views: 2622
Re: Lighting problem
I don't want flat shading. I switched off Gouraud shading (and thus implying flat shading?) to try to make the issue more apparent. I want the whole thing to be naturally lit, without the dark areas along the edges of the larger triangles. Originally, EMF_GOURAUD_SHADING was set to true. As you can ...
- Mon May 16, 2016 9:55 am
- Forum: Beginners Help
- Topic: Lighting problem
- Replies: 22
- Views: 2622
Re: Lighting problem
OK, so a solution would be to replace the larger triangles with smaller ones?
Or are there certain other settings that render it more evenly?
Or are there certain other settings that render it more evenly?
- Sun May 15, 2016 6:43 pm
- Forum: Beginners Help
- Topic: Lighting problem
- Replies: 22
- Views: 2622
Re: Lighting problem
Thanks for all the suggestions so far. I'm not sure about the 'provoking vertex' though, as the problem persists with Gouraud shading on. I've gone back a bit to a previous example, and simplified it. Gouraud shading is on. The code: #include <irrlicht.h> using namespace irr; #if...
- Thu May 12, 2016 2:57 pm
- Forum: Beginners Help
- Topic: Lighting problem
- Replies: 22
- Views: 2622
Re: Lighting problem
Here's a video capture of what happens when moving the light (indicated by the white billboard). http://screencast.com/t/uSPRQpcQanYe The strange thing is that when the light is at the top or the bottom, the wrong triangle is brighter. When moved to the left or the right, the expected result is disp...
- Wed May 11, 2016 12:51 pm
- Forum: Beginners Help
- Topic: Lighting problem
- Replies: 22
- Views: 2622
Re: Lighting problem
I've tried to investigate this further, but so far I'm not sure why the lighting is so uneven.
If anyone has an idea, I would be interested to hear about it.
As a workaround, I've moved the lights a bit further away so the effect is less obvious.
If anyone has an idea, I would be interested to hear about it.
As a workaround, I've moved the lights a bit further away so the effect is less obvious.
- Fri Apr 15, 2016 8:44 am
- Forum: Beginners Help
- Topic: Lighting problem
- Replies: 22
- Views: 2622
Re: Lighting problem
Thanks, it looks like we're getting somewhere. I've simplified it further. Just two triangles. Moving the light to the left and right of the scene seems to work as expected. Moving it up or down the scene, it seems the wrong triangle gets most of the light. #include <irrlicht.h> using namespace ...
- Thu Apr 14, 2016 8:45 pm
- Forum: Beginners Help
- Topic: Lighting problem
- Replies: 22
- Views: 2622
Re: Lighting problem
Hi All. I've adjusted one of the Irrlicht samples to reproduce the problem. http://imgur.com/RTQbWD0.png Here's the full code: #include <irrlicht.h> using namespace irr; #ifdef _MSC_VER #pragma comment(lib, "Irrlicht.lib") #endif /// Class to create a 1 pixel BMP in memory class ...
- Wed Apr 13, 2016 7:59 pm
- Forum: Beginners Help
- Topic: Lighting problem
- Replies: 22
- Views: 2622
Re: Lighting problem
@Mongoose: Thanks for the suggestion. I tried, but it makes no difference. @Mel: All the vertices are on the same plain, so no 'hills'. All have Y==0. All normals have X==Z==0, and Y==1. Here is a list of the vertices and indices of the mesh (taken from the debugger, Visual Studio 2015): Vertices: ...
- Tue Apr 12, 2016 6:51 pm
- Forum: Beginners Help
- Topic: Lighting problem
- Replies: 22
- Views: 2622
Re: Lighting problem
Thanks for the quick reply! The radius is large enough I think (5 * (height above the table + length + width of the table)). So according to Pythagoras, it should hit everything within 1/5th of its range. So that can't be the issue. Just now I've experimented moving the light a bit further away. Thi...
- Tue Apr 12, 2016 3:14 pm
- Forum: Beginners Help
- Topic: Lighting problem
- Replies: 22
- Views: 2622
Lighting problem
Dear all. I've been using Irrlicht for quite a while, but now I am baffled by a thing I cannot explain. I think it should be simple, hence I put it in the Beginners help. I'm working on generating a 'landscape' on a rectangular area, think of a table. Here is a picture of my problem case: http://img...