www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Melssj5 on April 11, 2006, 05:01:24 am

Title: Sun light
Post by: Melssj5 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.
Title: Sun light
Post by: EgonOlsen 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.
Title: Sun light
Post by: Melssj5 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.
Title: Sun light
Post by: EgonOlsen 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/
Title: Sun light
Post by: Melssj5 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?
Title: Sun light
Post by: EgonOlsen 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:
Title: Re: Sun light
Post by: Klaudiusz 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 ?
Title: Re: Sun light
Post by: EgonOlsen 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...