Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

When zooming out you may notice that certain geometry may abruptly disappear. The following 3DF code produces a scene with a few markers:

HC_Open_Segment_By_Key(m_pHView->GetModelKey());
HC_Set_Visibility("markers=on,faces=off,vertices=on");
HC_Set_Heuristics("culling = off");
char tempstr[1024];
float marker_size = (float)50 / 100;
sprintf(tempstr, "%f wsu", marker_size);
HC_Set_Variable_Marker_Size(tempstr);
   
/*Setting the marker symbol to one of the two allowable symbols*/
HC_Set_Marker_Symbol("(*)");
   
/*Setting the Driver Option for Hardware Acceleration*/
HC_Open_Segment_By_Key(m_pHView->GetViewKey());
HC_Set_Driver_Options("marker drawing = fastest");
HC_Close_Segment();
HC_Insert_Shell(pcount, pts, flist_count, faces);
HC_Close_Segment();

If you zoom out a little, the result looks something like the following:

Zooming out further causes the geometry to disappear. This behavior is part of a HOOPS Visualize optimization which culls geometry smaller than a certain size.

To prevent this from happening, disable all culling using the following function call:

HC_Open_Segment_By_Key(m_pHView->GetSceneKey());
HC_Set_Heuristics("culling = off");
HC_Close_Segment();

  • No labels