From carsten.oldenburg at th-owl.de Thu Jun 18 23:51:48 2020
From: carsten.oldenburg at th-owl.de (Carsten Oldenburg)
Date: Fri, 19 Jun 2020 06:51:48 +0000
Subject: [iTowns-user] Shadows in iTowns
Message-ID: <26293bfe5d23485ea9fdcc8b2835eedd@th-owl.de>
Dear all,
is it possible to enable casting shadows in iTowns especially using 3DTiles?
Here is a minimal example with three.js 3D objects in iTowns.
I've set the castShadow and receiveShadow properties to true and added a new DirectionalLight casting shadows.
Might be possible that I've forgotten something!?!
Shadow
Thanks in advance and all the best.
Carsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Gerald.Choqueux at ign.fr Mon Jun 22 02:32:13 2020
From: Gerald.Choqueux at ign.fr (Gerald Choqueux)
Date: Mon, 22 Jun 2020 09:32:13 +0000
Subject: [iTowns-user] Shadows in iTowns
In-Reply-To: <26293bfe5d23485ea9fdcc8b2835eedd@th-owl.de>
References: <26293bfe5d23485ea9fdcc8b2835eedd@th-owl.de>
Message-ID: <531526CE88AC984284EF3700223B82A7011664AD31@mailex1.ign.fr>
Hello
you need to enable renderer shadow map
view.mainLoop.gfxEngine.renderer.shadowMap.enabled = true;
view.mainLoop.gfxEngine.renderer.shadowMap.type = itowns.THREE.PCFShadowMap;
and move the light over the objects
var cP = view.controls.getLookAtCoordinate();
cP.altitude += 100;
sun.position.copy(cP.as(view.referenceCrs));
Beware the itowns ground doesn't handle shadows yet.
best regards
________________________________
De : ITowns-user [itowns-user-bounces at lists.osgeo.org] de la part de Carsten Oldenburg [carsten.oldenburg at th-owl.de]
Envoyé : vendredi 19 juin 2020 08:51
À : itowns-user at lists.osgeo.org
Objet : [iTowns-user] Shadows in iTowns
Dear all,
is it possible to enable casting shadows in iTowns especially using 3DTiles?
Here is a minimal example with three.js 3D objects in iTowns.
I've set the castShadow and receiveShadow properties to true and added a new DirectionalLight casting shadows.
Might be possible that I've forgotten something!?!
Shadow
Thanks in advance and all the best.
Carsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From carsten.oldenburg at th-owl.de Mon Jun 22 03:29:51 2020
From: carsten.oldenburg at th-owl.de (Carsten Oldenburg)
Date: Mon, 22 Jun 2020 10:29:51 +0000
Subject: [iTowns-user] Shadows in iTowns
In-Reply-To: <531526CE88AC984284EF3700223B82A7011664AD31@mailex1.ign.fr>
References: <26293bfe5d23485ea9fdcc8b2835eedd@th-owl.de>,
<531526CE88AC984284EF3700223B82A7011664AD31@mailex1.ign.fr>
Message-ID: <47081f7d2d774046a29c869bd4170cb9@th-owl.de>
Hi Gerald,
thanks for your reply.
Everything is fine now!!
Best regards,
Carsten
---
Carsten Oldenburg, M.Sc.
carsten.oldenburg at th-owl.de
Technische Hochschule Ostwestfalen-Lippe | University of Applied Sciences & Arts
Detmolder Schule für Architektur, Innenarchitektur und Stadtplanung
LivingLab Essigfabrik
Siegburger Straße 110, 50679 Köln
livinglab-essigfabrik at th-owl.de
https://livinglab-essigfabrik.eu
Forschungsschwerpunkt ’nextPlace’
Emilienstraße 45, 32756 Detmold
+49(0)5231-769 6032
http://www.nextplacelab.de
________________________________
Von: Gerald Choqueux
Gesendet: Montag, 22. Juni 2020 11:32:13
An: Carsten Oldenburg; itowns-user at lists.osgeo.org
Betreff: RE:Shadows in iTowns
Hello
you need to enable renderer shadow map
view.mainLoop.gfxEngine.renderer.shadowMap.enabled = true;
view.mainLoop.gfxEngine.renderer.shadowMap.type = itowns.THREE.PCFShadowMap;
and move the light over the objects
var cP = view.controls.getLookAtCoordinate();
cP.altitude += 100;
sun.position.copy(cP.as(view.referenceCrs));
Beware the itowns ground doesn't handle shadows yet.
best regards
________________________________
De : ITowns-user [itowns-user-bounces at lists.osgeo.org] de la part de Carsten Oldenburg [carsten.oldenburg at th-owl.de]
Envoyé : vendredi 19 juin 2020 08:51
À : itowns-user at lists.osgeo.org
Objet : [iTowns-user] Shadows in iTowns
Dear all,
is it possible to enable casting shadows in iTowns especially using 3DTiles?
Here is a minimal example with three.js 3D objects in iTowns.
I've set the castShadow and receiveShadow properties to true and added a new DirectionalLight casting shadows.
Might be possible that I've forgotten something!?!
Shadow
Thanks in advance and all the best.
Carsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: