#27 rtwizard fails to render (-c option parsing)

closed-fixed
Sean Morrison
Raytrace (49)
9
2005-03-31
2005-03-29
Sean Morrison
No

(reported by M. Rothwell and D. Kregel)

While rendering line drawings with rtwizard, the resultant image is
black. The simple full-color picture setting via the tcl gui seems to
work just fine.

The problem seems to be related to the -c argument processing as
the -c string is not getting properly passed to rt via the command
window, nor does it parse correctly manually on the command line.
There seems to be a disconnect as to whether a space is required
after the -c (should not be) as well.

This problems seems to have been introduced in release 7 as 6.*
seems to be functioning properly.

Discussion

  • Sean Morrison
    Sean Morrison
    2005-03-29

    • priority: 7 --> 9
     
  • Dwayne
    Dwayne
    2005-03-29

    Logged In: YES
    user_id=1209946

    The -c option relates directly to the 'rtedge' command.

    There does seem to be a possibly related issue with rtwizard
    though. When creating a "Simple Line Drawing", I cannot
    edit the background color. I can change the line color but the
    background color always remains black.

     
  • Sean Morrison
    Sean Morrison
    2005-03-31

    • assigned_to: nobody --> brlcad
    • status: open --> closed-fixed
     
  • Sean Morrison
    Sean Morrison
    2005-03-31

    Logged In: YES
    user_id=785737

    Yuck, what an ugly bug to trace down.. The problem was isolated to the
    background variable for the -c set command, where there was an
    inconsistency between the way rt and rtedge deal with the background
    color. rt internally deals with a triplet of floats, rtedge internally deals with
    a triplet of integers. Needless to say, this caused rtedge's background
    handler to fail to be modifiable. This problem is now fixed in CVS and will
    be available in the next iteration release.