#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
You will need to enable lighting on the object:
Code:
node.enable(viz.LIGHTING) |
#3
|
|||
|
|||
Thanks for the help,
I'll look up how to calculate vertex normals so that my objects have correct lighting. ~George L. |
|
|
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 |