#1
|
|||
|
|||
basic lighting question
Hi,
not being an expert in lighting, GL, etc. this may be a very simple question. I need to create rather simple environments for experiments. Currently I use Sketchup to create those and then export them to either 3ds or vrml. After loading them into Vizard, the lighting is really not what I am looking for. I understand that there is a head-light by default and that I can add other light sources. However, the lighting appears to be polygon based rather than pixel based (obviously this gives strange artifacts when moving through the environment -> entire polygons turn black when turning etc - even after diabling the head-light). Is there any option I have overlooked so far to change lighting to be pixel based rather than polygon based? An alternative that I used earlier was to use no light source at all, but to make all the materials emissive. I know that this does not give a natural lighting, but for many experiments it is sufficient and I do not have to worry about different lightintensities depending on where I place my lights. However, I have not yet figured out how to make materials emissive in Sketchup (I understand that this is not a Sketchup forum, but maybe one of you has an answer). I would appreciate any help, thanks in advance, malte |
#2
|
|||
|
|||
You can illuminate objects using Vizard's <node3D>.emissive command. Does that work for your application?
|
#3
|
|||
|
|||
Many thanks for the quick response.
<node3D>.emissive command works. However, is it possible to adjust the intensity? Currently the entire environment is extremely bright (even if I use rgb values [120 120 120]) and the textures are not visible any more. |
#4
|
|||
|
|||
Try passing different values into the emissive command. Does something like this work for you?
Code:
import viz viz.go() male = viz.add('vcc_male.cfg',pos=[0,0,5],euler=[180,0,0]) male.state(1) headLight = viz.MainView.getHeadLight() headLight.disable() slider = viz.addSlider() slider.setPosition(0.2,0.2) def changeLight(pos): male.emissive([pos]*3) vizact.onslider(slider,changeLight) |
#5
|
|||
|
|||
yes that works fine,
thank you very much! |
#6
|
|||
|
|||
Hello, we also used Sketchup to create a model of metro. I have to add now the lighting inside the carrige, which should be close to the real one, with light reflections from the walls and so on. Is it possible? Or there is no light reflection function in Vizard?
I tried to add some point lights with attenuation, but some surfaces remain black. Can you give me an advice? Thank you in advance, Natalia |
#7
|
|||
|
|||
It sounds like you want baked lighting. There is a workflow for this through 3ds Max but as far as I know SketchUp does not support this. However, there are a lot of plugins for SketchUp available which add a lot more functionality, so it's possible one adds baking capabilities. If you also have 3ds Max take a look at the following article:
http://kb.worldviz.com/articles/1222 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Realistic Light and Shadows Using Vizard and 3DS Max | jde | Vizard | 4 | 07-13-2012 11:58 AM |
lighting and on-the-fly objects | michaelrepucci | Vizard | 12 | 02-11-2011 09:26 AM |
General question and question regarding arrays | dan12345 | Vizard | 1 | 01-15-2008 11:15 AM |
Basic Joystick Navigation Question | Plasma | Vizard | 2 | 01-29-2004 08:08 PM |
Vizard 2.0x lighting | FlyingWren | Vizard | 4 | 08-11-2003 01:20 PM |