WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Dark room illuminated by flashlight? (https://forum.worldviz.com/showthread.php?t=4986)

performlabrit 03-17-2014 07:11 AM

Dark room illuminated by flashlight?
 
I'm having some strange issues with lighting.

My goal is to create a perfectly dark room that can be illuminated with a directional spotlight / flashlight.

However, I'm unable to get started, because I can't turn off lighting in the room! The room is empty, and consists of only 6 textured walls (this includes the ceiling and floor). I've set both the ambient and emissive properties of each wall to [0,0,0]. Yes, the headlamp has been deactivated, and no, I am not creating any other light sources. The walls still appear uniformly illuminated. What am I missing?

The next step will be to make sure that the planes are tesselated enough to produce smooth shading until spot illumination. Is jumping into Maya / 3Ds Max the best way to do this? Is there a clever way to subdivide planes in the code?

Thanks.

Jeff 03-18-2014 12:17 AM

Does the following line of code help to darken the room?
Code:

room.appearance(viz.MODULATE)

performlabrit 04-11-2014 10:29 AM

Ah, rookie mistake here. Viz.lighting was off.

Thanks!


All times are GMT -7. The time now is 08:48 PM.

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