home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!uka!mul
- From: mul@ira.uka.de (Peter Mul)
- Newsgroups: comp.graphics
- Subject: help correcting X-PHIGS source code
- Date: 9 Nov 1992 13:45:29 GMT
- Organization: University of Karlsruhe, FRG
- Lines: 54
- Distribution: world
- Message-ID: <1dlq1pINNamt@iraul1.ira.uka.de>
- NNTP-Posting-Host: i61s4.ira.uka.de
-
- Keywords: Graphik source code, PEX/Phigs, X-Visual selection, Colormaps
-
- Hey!
-
- I have a problem getting the right visual and colors for my application.
- I wrote a Graphiktool to display Robotcells on an Evans & Sutherland
- ESV 30 system, using PEX/PHIGS. Everything OK. I get as default a 24bit
- visual with the right colors.
-
- Then I tried to get it running on a SUN workstation. At that moment the
- problem arised.
-
- I used Sunphigs2.0 and Motif.
- The problem is that my application gets a Pseudocolor visual as my default
- visual, with unpredictable Colormaps.
- I my application I use sets of three sliders (RGB) to create my colors. On
- the ESV30 I could use the 24bit color mode to identify the color directly.
- The Phigs part uses the Drawwindow (Drawwindow=XtWindow(drawarea);
- see code below) as the window to display the graphics.
- On a Sun I get different colors in my color mixer and graphikwindow.
-
- The Application should be able to run on 8bit and 24bit color SUNS.
- How can I manage that?
-
- The approach to select the right visual and give it as argument to a
- XtCreateWindow() call does not solve my problem as I use Motifwidgets.
-
- Please help me, as I cannot get the right information from the Motif and
- Xlib books.
-
- I have tried a few different approaches, as you can see in my source code.
- I know that my application has been defined for the ESV30, but it must
- be usable on sun platforms.
-
- The problem with the visual does also exist on the E&S ESV30 machine when
- I try to use a non default visual.
-
- A request a few months ago did not deliver any good so I try another approach.
- I will provide the source code to anybody who likes to correct the errors.
-
- Any other use of the code of course only after my permission.
- The code size is approx. 900K.
-
-
- Send me a mail if you are interested.
-
-
-
- Peter Mul
- University of Karlsruhe
- mul@ira.uka.de
- ++31-721-608-4261
-
-
-