WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-03-2004, 08:27 AM
Plasma Plasma is offline
Member
 
Join Date: Jan 2004
Posts: 22
Lighting Problem

I'm having a problem getting lighting to work properly.

My environment consists of three hallways in an F configuration with lots of doorways other things to break up the wall into many smaller objects.

Ideally, I would like to simulate the fluorescent lights that exist in the real hallway, but right now I would settle for the whole thing being brighter.

I'm getting a lot of very dark areas despite the fact that there should be lights in these locations and very, very bright areas even though it seems like there are no lights placed anywhere near them. I am using this code to add omnidirectional lights:

mylight = viz.addlight()
mylight.enable()
mylight.position(0, 1, 0)
mylight.spread(180)
mylight.intensity(2)

Without lights, the whole environment is much too dark. I would be thrilled with a way to simply make the whole thing brighter, if possible.

Thanks!
Reply With Quote
  #2  
Old 02-03-2004, 11:09 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Is your environment model textured? If it is then you could disable lighting on the model which will make it much brighter.
Code:
environment = viz.add('environment.wrl')
environment.disable(viz.LIGHTING)
You could also make the headlight omnidirectional:
Code:
headlight = viz.get(viz.HEAD_LIGHT)
headlight.position(0,0,0,1)
#Double the intensity of the headlight
headlight.intensity(2)
It really depends on what kind of model you have and what kind of textures it has.
Reply With Quote
Reply

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


All times are GMT -7. The time now is 10:25 PM.


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