Strange behaviour in VegaNT ?!?

New Message Reply Date view Thread view Subject view Author view

From: Stefano Mottura (mottura++at++itia.mi.cnr.it)
Date: 05/03/2000 07:03:16


Hi all,
I saw the following "strange" thing:

(SGI Visual Workstation 320, WinNT 4.0, VegaNt 3.3
ADF configuration:
1 vgObject with only geometry, colors, shading and material)

In the program:

1) I get the pfNode of the vgObject
2) I get the pfGeoset of the pfGeode, which is the child of the pfNode
of the vgObject
3) I malloc'd a pfVec4 for the color and an ushort for the indices
4) I set the pfVec4 to a certain RGBA
5) I set the pfGeoSet's color with pfGSetAttr (gset, PFGS_COLOR4,
PFGS_OVERALL, color, index).
Since there is OVERALL, the index is only one ushort: index[0]=0.

In the realtime loop the original vgObject has the correct RGBA, OK.

BUT:
If I put "pfGSetAttr (gset, PFGS_COLOR4, PFGS_OVERALL, color, index)" in
the mainloop (after vgSyncFrame and vgFrame) a "...the memory could not
be read..." error occurs

If I put "pfGSetAttr (gset, PFGS_COLOR4, PFGS_OVERALL, color, index)" in
the mainloop (before vgFrame) all runs ok.

Why?

Any suggestion is appreciated, thank you

Bye

Stefano

--
Dr. Stefano Mottura
VME (Virtual Manufacturing Environment) Group
ITIA-CNR
Institute of Industrial Technologies and Automation
National Research Council of Italy
V.le Lombardia, 20/A
20131 Milan
Italy

tel. +39 02 70643961 fax. +39 02 70643915

mottura++at++itia.mi.cnr.it


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed May 03 2000 - 07:05:26 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.