That's the clue I needed! I already checked hardware rendering,
but that didn't had any effect.

But the clue is that I can not use Render, but should use
Display at ones, like

Display(data2,camera);

That works

Thanks guys!

Eelco

>
>
>
>
>
> Options and any other module works fine in script mode.  It's the same
> net/script/program and the same executive running, just no user interface.
> However, rendering multi-pixels lines is an OpenGL feature available
> through hardware rendering.  You are doing software rendering.  Hardware
> rendering is only available via Display or Image->DiAsplay unless Greg
added
> support for "off-line" OpenGL.  The Options are ignored when the objects
> are passed to Render.
>
> In software rendering you can make thicker lines with Tube or Ribbon after
> which you may wish to Remove(,normals) or replicating the lines with small
> offsets (Translate) and Collect'g them.  However, the thickness will be
> view-dependent.
>
>
> Eelco Van Vliet <[EMAIL PROTECTED]>@opendx.watson.ibm.com on
> 06/13/2002 10:48:15 AM
>
> Please respond to [email protected]
>
> Sent by:    [EMAIL PROTECTED]
>
>
> To:    <[email protected]>
> cc:
> Subject:    [opendx-users] Options Module
>
>
>
> 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
>
>
>
>

Reply via email to