info-inventor-dev
[Top] [All Lists]

Re: OpenInventor on HPUX

To: normann@xxxxxxxx (Andre Normann)
Subject: Re: OpenInventor on HPUX
From: Gerd Hesina <hesina@xxxxxxxxxxxxxxx>
Date: Wed, 31 Jan 2001 19:38:13 +0100
Cc: info-inventor-dev@xxxxxxxxxxx (info-inventor-dev@xxxxxxxxxxx)
In-reply-to: <200101311721.JAA54888@kinabalu.csd.sgi.com>
References: <3A7813FF.9D5B7796@vrcom.de>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
At 09:21 31.01.01 -0800, Jonathan Lim wrote:
On Wed Jan 31 05:32:47 2001, normann@xxxxxxxx wrote:
>
> I get it compiled. But when I start ivview with any file, I only
> get a black render window. It seems that Inventor does following
> things:
>
> 1. clear the render window
> 2. draw the scene
> 3. clear the render window
>
> The result is a black window. When I maximize the render window, I
> can see that something is rendered. It looks very strange.

Well, I've observed the same behaviour on Windows.
To resolve the problem I did the following tests (list is not complete. can't remember all steps ;-):
Test every linear algebra function and compare it against a working
version of Inventor.
Example:
Execute every method of SbMatrix and SbRotation with some test-cases on HP-UX
and compare the results with OpenInventor on Windows, Linux or Irix.
[oss sgi inventor for windows: http://www.cg.tuwien.ac.at/hostings/openinventor/ ]
These tests revealed that Visual C++ was able to compile Inventor but some matrix
and rotation operations were broken. (the compiler has obviously problems with references!!!!)
==> fix: code modification
Perhaps hp-ux cc has similar problems.


Write your own test programs. Check some trivial cases first (e.g. display a cone or sphere using
a plain render area).
These tests showed that the Visual C++ needs some special instructions for gl
function pointers (to prevent those ugly runtime errors ;-)


Test:
font and text nodes (e.g. SoText2 and 3, SoAsciiText ..)
texturing!
engines, calculators, elements, sensors
ascii and binary loading of .iv files (if it fails modify the file open commands. use "rb" and "wb")
ascii and binary loading from memory
dynamic loading of extension nodes, kits etc. (search for dlopen)


Compile every Iventor Mentor example and check the behaviour against a working Inventor version.

To correct some problems with gl:
Which gl commands are executed (or not executed)? Use a gl-debugger...
[see also Jonathan Lim's mail].

Cheers,
Gerd


<Prev in Thread] Current Thread [Next in Thread>