WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-17-2008, 09:34 AM
shivanangel shivanangel is offline
Member
 
Join Date: Feb 2006
Location: New Jersey
Posts: 182
onthefly Objects need shading

Hello,

I've been creating several algorithms to create 1-D and 2-D data visualizations
from imported CSV data.

I ran into a little bit of a snag today, I created a plot of 2D data but it keeps
coming out completely washed out white.

Is there a simple enable call I can use to set some OpenGL state?

I tried using viz.enable(viz.FLAT) and viz.enable(viz.SMOOTH)
but nothing happened.

Any suggestions?

Thanks for your time,
George L.
Reply With Quote
  #2  
Old 07-17-2008, 10:56 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You will need to enable lighting on the object:
Code:
node.enable(viz.LIGHTING)
However, if you are creating the polygons using On-The-Fly objects you will need to specify per vertex normals for the lighting to look correct. This means before each viz.vertex call you will need to specify the normal vector of that vertex using the viz.normal command.
Reply With Quote
  #3  
Old 07-17-2008, 11:29 AM
shivanangel shivanangel is offline
Member
 
Join Date: Feb 2006
Location: New Jersey
Posts: 182
Thanks for the help,
I'll look up how to calculate vertex normals so that
my objects have correct lighting.

~George L.
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
Improve performance with large number of onthefly objects? Fox5 Vizard 7 04-28-2008 05:19 PM
importing a single WRL with many objects. giancamati Vizard 3 12-18-2006 01:13 PM
Could not find plugin to load objects... halley Vizard 1 05-30-2006 11:01 AM
putting objects on the screen jargon Vizard 7 05-24-2005 11:31 AM
limits on number of objects benelux Vizard 3 07-22-2004 01:26 PM


All times are GMT -7. The time now is 09:36 PM.


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