It isn't quite this easy. The problem is, Render does not support hardware rendering because with hardware rendering your data must be sent to the graphics card. Display does support hardware rendering, so if you do the following:

data2 = Options(data2, "rendering mode", "hardware");
where1 = Display(data2, camera);
image2 = ReadImageWindow(where1);

Then send this into your Collect.

David

Hi there,

Does anybody know if the "Options" module should work if you're working
in script mode?

I want to change properties of a line (like thickness). The dx sample
"FatLines.net" run from the data explorer seems to work.

In script mode, however, the line seems insensitive to the Options settings
Below an example of a script that I tried
I want to create two lines using Grid, of which the second is adjusted
with the option modules. I plot them next to each other, but they are
exactly the same. Changing the software or hardware rendering option
doesn't work.

So the question is: should it be possible to change the line thickness
in script mode. If so, what do I do wrong in the script below ?

Cheers!

Eelco


//////// START EXAMPLE  run with: dx -script bla.net

// create line to be rendered
data1           = Grid([0 0 0],"line",[ 1 0 0]);
data1           = ShowConnections(data1);

// copy line and change option of line2
data2           = data1;
data2           = Options(data2,"line width",4);
data2           = Options(data2,"rendering mode","software");

// create camera
camera  = AutoCamera(data1,direction="diagonal",resolution=400);

// Render both lines
image1  = Render(data1,camera);
image2  = Render(data2,camera);

// Show them
image           = Collect(image1,image2);
image           = Arrange(image);
Display(image);
KeyIn();

///////// END EXAMPLE


--
.............................................................................
David L. Thompson                   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]    5515 Skyway Drive, Missoula, MT 59804
                                    Phone : (406)257-8530

Reply via email to