Author Topic: Sun light  (Read 5567 times)

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Sun light
« on: April 11, 2006, 05:01:24 am »
Just a Suggestion, you should add a sun light to jpct, I mean a very strong light able to iluminate all the map (if needed) to give it some shadow effects.
Nada por ahora

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12297
    • View Profile
    • http://www.jpct.net
Sun light
« Reply #1 on: April 12, 2006, 10:54:43 pm »
Maybe adding the option to exclude a light from fading/discarding will allow it to create a similar effect. I'll think about adding something like this.

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Sun light
« Reply #2 on: April 23, 2006, 04:32:17 am »
Yeah, i set the ambient light to 60, 60, 60 and add a light very high and changed the intensity multipler and it worked. but shadows are not well calculated. You maybe should review the algorythm of lights proyection.
Nada por ahora

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12297
    • View Profile
    • http://www.jpct.net
Sun light
« Reply #3 on: April 23, 2006, 02:01:58 pm »
Vertex lighting is default OpenGL vertex lighting (even in software mode). That's the way it is defined by the specs, there is no other way to improve this except taking the light mapping way for static lighting. Increasing the tessellation may help too but this will reduce performance.

Edit: Nice tool for lightmapping albeit the 1.36 version is bugged: http://www.frecle.net/giles/

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Sun light
« Reply #4 on: January 10, 2007, 09:05:14 pm »
Have anything been done to improve the reality of the engine about the lights or the shadows?
Nada por ahora

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12297
    • View Profile
    • http://www.jpct.net
Sun light
« Reply #5 on: January 10, 2007, 10:05:24 pm »
Not much, but the new version will feature the mentioned bloom effect, which could be seen as a kind of more "realistic" lighting effect. Albeit my personally opion is, that it looks cool but not exactly real. But sometimes you have to overstress something to make people think that it looks like real, so maybe this will work... :wink:

Offline Klaudiusz

  • int
  • **
  • Posts: 75
    • View Profile
Re: Sun light
« Reply #6 on: August 29, 2007, 10:02:08 pm »
I would like to remind this topic.

I have big problems with light when object has dark texture.

Also light value is not added, when additionalColor is white. The same situation is with setAmbientLight method.

For me desired situation is when object which has dark texture and is really near of white light, is also white.

Is this possible to do in hardware mode without RGB_SCALE_4X ?
« Last Edit: August 29, 2007, 10:05:44 pm by Klaudiusz »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12297
    • View Profile
    • http://www.jpct.net
Re: Sun light
« Reply #7 on: August 29, 2007, 10:23:05 pm »
Well, the lighting formular of OpenGL's pipeline is like it is. Without some additional texture effects, an object's color can't get brighter then the color of its texture. RGB-Scaling is a way out...kinda...