WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 4.67 average. Display Modes
  #1  
Old 05-25-2010, 08:05 AM
malte malte is offline
Member
 
Join Date: Feb 2008
Posts: 7
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
Reply With Quote
  #2  
Old 05-25-2010, 02:47 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,449
You can illuminate objects using Vizard's <node3D>.emissive command. Does that work for your application?
Reply With Quote
  #3  
Old 05-26-2010, 04:05 AM
malte malte is offline
Member
 
Join Date: Feb 2008
Posts: 7
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.
Reply With Quote
  #4  
Old 05-26-2010, 11:13 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,449
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)
Reply With Quote
  #5  
Old 05-28-2010, 02:26 AM
malte malte is offline
Member
 
Join Date: Feb 2008
Posts: 7
yes that works fine,
thank you very much!
Reply With Quote
  #6  
Old 11-26-2010, 05:39 AM
natalia natalia is offline
Member
 
Join Date: Nov 2010
Posts: 2
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
Reply With Quote
  #7  
Old 12-01-2010, 12:25 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,449
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
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

Similar Threads
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
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 10:15 AM
Basic Joystick Navigation Question Plasma Vizard 2 01-29-2004 07:08 PM
Vizard 2.0x lighting FlyingWren Vizard 4 08-11-2003 12:20 PM


All times are GMT -7. The time now is 02:47 PM.


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