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 Italytel. +39 02 70643961 fax. +39 02 70643915
This archive was generated by hypermail 2b29 : Wed May 03 2000 - 07:05:26 PDT