![]() |
|
#1
|
|||
|
|||
Fantastic Jeff! You are really helping me here - feel like I am learning a lot!
Another question if I may? The city scene that I have is now responding appropriately - the buildings are darkening as I reduce the new light that I have added - however, the road - which has shadows from the buildings - stays exactly the same despite changes to the light I added - do you have any idea why this might be? Also, is there a way of getting the sky to change colour based on the light setting? Again, I can't thank you enough for your help Mark |
#2
|
|||
|
|||
I should mention that I am trying to manipulate the 'euro_test19_opt_lite.ive' scene in case you are familiar with it?
Thanks again |
#3
|
|||
|
|||
The ground has lighting baked into it and does not seem to respond like the rest of the model with real time lighting. You could try blending in a black texture with the ground to darken it so it matches the surroundings. I created a black texture in an image editor and used the following code and it worked ok for a night scene:
Code:
blackTexture = viz.addTexture('black.jpg') ground = city.getChild('ground') ground.texture(blackTexture,unit=3) ground.texblend(0.8,unit=3) lanes = city.getChild('lanes') lanes.texture(blackTexture,unit=3) lanes.texblend(0.8,unit=3) sidewalks = city.getChild('sidewalks') sidewalks.texture(blackTexture,unit=3) sidewalks.texblend(0.8,unit=3) |
#4
|
|||
|
|||
Hey Jeff,
That's brilliant, thanks so much! I thought that there was something a little strange about the ground lighting and that has cured it! I feel like I have learned a lot this last week - a large part due to you - so thanks very much for your time - it's very much appreciated! Mark |
#5
|
|||
|
|||
Hi again,
So texturing the road surface black was a good solution - however, I need to adjust the ambience of the scene and am moving a motorcycle with an illuminated headlight along the road - thus the road really needs to react to that light as well as the overall "sunlight" that I have inserted. Is there a quick way of developing a ground plain that reacts in this way? Thanks for your help again, Mark |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Realistic Light and Shadows Using Vizard and 3DS Max | jde | Vizard | 4 | 07-13-2012 10:58 AM |
lighting and on-the-fly objects | michaelrepucci | Vizard | 12 | 02-11-2011 08:26 AM |
basic lighting question | malte | Vizard | 6 | 12-01-2010 12:25 PM |
General question and question regarding arrays | dan12345 | Vizard | 1 | 01-15-2008 10:15 AM |
The effect of lighting on performance | JRichizzle | Vizard | 1 | 06-18-2004 10:40 AM |