![]() |
|
#1
|
|||
|
|||
The piazza was created in 3ds Max with lighting baked into the model. One way to create a scene that has both day and night is to have two versions of the same model, each with it's own baked lighting.
To darken the piazza in Vizard you could try blending in a black texture as described here or use a post process effect: Code:
import viz viz.go() piazza = viz.addChild('piazza.osgb') import vizfx.postprocess from vizfx.postprocess.color import ExposureEffect effect = ExposureEffect(-2) vizfx.postprocess.addEffect(effect) Code:
piazza.visible(viz.OFF,node='pz_skydome-GEODE') viz.addChild('sky_night.osgb') |
#2
|
|||
|
|||
Hi John,
The lighting & shadows in the Piazza scene is baked into static maps, so it's not possible to relight it the way you're intending unless the lightmaps are removed. I checked the file in Inspector, and they're all on texture unit 1. To get rid of them, you'd loop through all the objects in the scene with python and clear the texture unit. Jeff may be able to advise on that part. |
#3
|
|||
|
|||
Hi again John,
I exported a version with all the lightmaps stripped out with realtime shadows coming from a directional light instead. You can get that here: piazza_20170509_nolightmaps.zip (34mb) Feel free to play around with it as you like! ![]() |
#4
|
|||
|
|||
Wow, thats awesome, thanks so much, Veleno!
|
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing objects in scene | Van | Vizard | 2 | 12-02-2016 02:04 AM |
Changing scenes with proximity sensors | BSUGeek | Vizard | 1 | 03-24-2015 01:10 AM |
Changing parent without changing absolute global position? | The SundanceKid | Vizard | 2 | 05-23-2014 02:43 PM |
Get all Assets / Scene Root? | shivanangel | Vizard | 0 | 03-26-2014 12:13 PM |
Copying Scene? | Brett Lindberg | Vizard | 0 | 08-28-2009 11:56 PM |