Reflection on lighting 3D view

This topic has been viewed 16268 times and has 2 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Reflection on lighting 3D view

Post by enkonyito »

By default, the 3D view uses Java3D lights to simulate ambient lighting because they do not cast shadows.

In the [font=courier new]Light[/font] class, it is stated that Java 3D only supports an arbitrary number of lights.
Does that mean that it would not be possible to render a complex scene?

In this thread, a trick is used to take these additional lights into account.
EnkoNyito
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Reflection on lighting 3D view

Post by enkonyito »

The current method addShadowOnFloor, does not take into account the direction of the sun.
Are there simpler cast shadow techniques to implement as the shadow mapping ?
EnkoNyito
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Reflection on lighting 3D view

Post by Puybaret »

If there was a simpler way, I think I would have tested that a long time ago…
Shadow mapping is probably not so complicated for one light source, but I fear that some graphics drivers won’t support shaders so well.
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest