www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: qjvictor on November 23, 2006, 11:10:17 pm

Title: I need the world looks like a real world.
Post by: qjvictor on November 23, 2006, 11:10:17 pm
if I want to my 3d world looks like a real world, is it correct that I set the light as following:
Code: [Select]
world.getLights().setOverbrightLighting(Lights.OVERBRIGHT_LIGHTING_DISABLED);
world.getLights().setRGBScale(Lights.RGB_SCALE_2X);
world.setAmbientLight(100, 100, 100);


Thanks
Title: I need the world looks like a real world.
Post by: Mizuki Takase on December 06, 2006, 08:43:25 pm
The real world has many different lights, so its very questionable to say make your light like the real world's... But anyway, based on what you have on your code, your light is similar to normal white light that is not too bright, so I guess that is good enough?
Title: I need the world looks like a real world.
Post by: athanazio on December 07, 2006, 12:08:58 am
not sure, but I believe that if you place your light far away in the -Y it would be light the sun light .... I think ...
Title: I need the world looks like a real world.
Post by: manumoi on December 07, 2006, 05:34:27 am
I dunno if this is off topic but having a skybox (with a big blue sky :P) may also help to have your world and lights feel realistic