WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-13-2017, 08:04 AM
arshbot arshbot is offline
Member
 
Join Date: Mar 2017
Posts: 8
Best way to light world?

Hello all,

What is the best way to light up an entire world? Currently I have a spotlight that's linked to the user so it moves with the user, however that doesn't light the whole model (or even 360 degrees) and the user can easily see the darkness if they turn in a certain direction. What's the best way to combat this?
Reply With Quote
  #2  
Old 04-13-2017, 11:29 AM
Veleno Veleno is offline
WorldViz Team Member
 
Join Date: Sep 2005
Posts: 148
Hi arshbot, the short version is either to use baked lighting for all the statically lit objects in the scene, or bake just indirect light (sometimes just ambient occlusion) and use realtime lights for the direct light.

The first works pretty okay, but loses lighting detail from any bump maps because the lightmaps don't include directional information.

The second works best for medium-sized outdoor scenes that can use a shadow casting directional light. These can be created in Inspector.

If you're doing a flashlight scenario, fully baking lighting is probably going to be the best option. Until you have it baked, you can also set a scene's ambient light level to something like (.3,.3,.35) - fairly dark with a slight blue tint. This can be set in inspector at the top node level if you check the "save settings" box.

If you aren't already, you can also automatically generate a skydome by placing a sky map with a spherical projection in Max into the environment map slot of Environment and Effects and checking the "Background Map" option in the exporter.
Reply With Quote
  #3  
Old 04-25-2017, 09:28 AM
arshbot arshbot is offline
Member
 
Join Date: Mar 2017
Posts: 8
Quote:
The second works best for medium-sized outdoor scenes that can use a shadow casting directional light. These can be created in Inspector.
How can I do this?
Reply With Quote
  #4  
Old 05-08-2017, 03:30 PM
Veleno Veleno is offline
WorldViz Team Member
 
Join Date: Sep 2005
Posts: 148
Vizard R5: Adding realtime light to a scene and enabling shadows.

Hi arshbot, here's a short tutorial on that:
---------------
Vizard R5: Adding realtime light to a scene and enabling shadows.
Sample Files: Realtime Lighting.zip (7.5Mb)

Starting with an unlit scene in Inspector:
- First, Go to Create -> Light -> Directional Light
- Then, in the properties window check the box for "Shadows"


- Next, name the light node so it can be accessed through code
- You can set the angle of the sun node using the rotation controls
- The position of a directional light does not affect its output, but can be used to move the node's icon to a more convenient location.


- The ambient light level can also be set. This is accessed through the "Scene" root node.
- After setting the ambient light level, this can be stored within the file by checking "Save Scene Settings" within the properties panel.


- Finally, save the file from inspector by going to File -> Save As...
- Pick a location and a filename, then hit Save. If you are editing an existing file, you may want to overwrite it.


Notes:
If you are constantly iterating on exports, it can be convenient to delete the geometry before saving the lighting so the lighting can be saved in a separate file. This allows you to easily merge the lighting into any new exported file or add it through Vizard code.
Reply With Quote
  #5  
Old 05-08-2017, 03:46 PM
Veleno Veleno is offline
WorldViz Team Member
 
Join Date: Sep 2005
Posts: 148
Here's the link to the sample file:
http://statickb.worldviz.com/files/R...e-Lighting.zip
Reply With Quote
Reply

Tags
lighting, spotlight

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Augmented Reality: virtual world not overlapping real world correctly Vaquero Vizard 7 04-15-2016 02:14 AM
Demystifying exporting light maps from 3ds Max to Vizard? dproeder Vizard 1 06-14-2013 02:34 PM
Realistic Light and Shadows Using Vizard and 3DS Max jde Vizard 4 07-13-2012 11:58 AM
Ambient light Enlil Vizard 0 05-03-2011 09:48 AM
why is time faster in my virtual world? billjarrold Vizard 1 11-24-2009 06:33 PM


All times are GMT -7. The time now is 11:30 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC