.. role:: raw-html(raw)
    :format: html

.. |supported| image:: ../../_assets/images/green_circle.png
   
.. |na| image:: ../../_assets/images/grey_circle.png
   
.. |unsupported| image:: ../../_assets/images/red_circle.png
   
.. |partialsupport| image:: ../../_assets/images/gray_green_circle.png

###############
HPS 2022 SP2
###############


Library compatibility information
---------------------------------


.. only:: not spatial

	.. csv-table::
		:header: "Library name", "Version", "Windows", "Linux", "OS X", "Android", "iOS", "Notes"
		
		"HOOPS Exchange", "2022 SP2", |supported|, |supported|, |supported|, |supported|, |supported|, "Android simulator support is limited. See this :ref:`explanation <prog_guide/0906_exchange_integration:Important note for Android developers>`."
		"HOOPS Publish", "2022 SP2", |supported|, |supported|, |unsupported|, |unsupported|, |unsupported|, "Requires SSSE3 instruction set support, Linux support is limited to C++"
		"HOOPS Communicator Sprocket", "2022 SP1 U2", |supported|, |unsupported|, |unsupported|, |supported|, |supported|, ""
		".NET Framework", "4.0", |supported|, |unsupported|, |unsupported|, |unsupported|, |unsupported|, "4.5 required when using D3D_IMAGE_CANVAS"
		"Parasolid", "32.0.x", |supported|, |supported|, |supported|, |unsupported|, |supported|, "For iOS platforms, support is limited to 64-bit platforms for the Parasolid Sprockets (hps_sprk_parasolid and hps_sprk_exchange_parasolid)."
		"RealDWG", "2019", |supported|, |unsupported|, |unsupported|, |unsupported|, |unsupported|, "RealDWG 2019 works with Visual Studio 2017 Update 2 and Visual Studio 2015 Update 3"
		"Qt", "5.12.7", |supported|, |supported|, |supported|, |unsupported|, |unsupported|, ""
		"SketchUp", "2021", |supported|, |unsupported|, |unsupported|, |unsupported|, |unsupported|, "VS2019 Redistributable required, and only x64 Sketchup is supported"
		
.. only:: spatial

	.. csv-table::
		:header: "Library name", "Version", "Windows", "Linux", "OS X", "Android", "iOS", "Notes"
		
		".NET Framework", "4.0", |supported|, |unsupported|, |unsupported|, |unsupported|, |unsupported|, "4.5 required when using D3D_IMAGE_CANVAS"
		"Parasolid", "32.0.x", |supported|, |supported|, |supported|, |unsupported|, |supported|, "For iOS platforms, support is limited to 64-bit platforms for the Parasolid Sprockets (hps_sprk_parasolid and hps_sprk_exchange_parasolid)."
		"RealDWG", "2019", |supported|, |unsupported|, |unsupported|, |unsupported|, |unsupported|, "RealDWG 2019 works with Visual Studio 2017 Update 2 and Visual Studio 2015 Update 3"
		"Qt", "5.12.7", |supported|, |supported|, |supported|, |unsupported|, |unsupported|, ""
		"SketchUp", "2021", |supported|, |unsupported|, |unsupported|, |unsupported|, |unsupported|, "VS2019 Redistributable required, and only x64 Sketchup is supported"



New features and enchancements
------------------------------

**IFC entity support.** Spatial relationship data imported from IFC file types to define connections between elements such as building, story, spaces, walls, windows, etc.

.. only:: not spatial
	
	* HPS::ImportOptionsKit can be used to selectively load openings in addition to data previously supported in 2022 SP1.
	* Sprocket Exchange APIs are now available to query Relationship, RelationshipEntity, RelationshipType, BIMData and BIMType.
	
.. only:: spatial
	
	* HPS::ImportOptionsKit can be used to selectively load openings in addition to data previously supported in 2022 SP1.
	
**IFC Entity support in HDV/HPDV.** View and interact with spatial relationships via the new menus and tabs provided by the BIM Plugin. View only access is provided for IFC Types.	


Functional changes
------------------
	
.. only:: not spatial

	**HOOPS Exchange.** HOOPS Visualize now works with HOOPS Exchange 2022 SP2.

	**HOOPS Publish.** HOOPS Visualize now works with HOOPS Publish 2022 SP2.
	
	**HOOPS Communicator.** HOOPS Visualize now works with HOOPS Communicator 2022 SP1 U2.

**OpenGL on Mac deprecated.** Support for OpenGL driver on Apple MacOS and iOS is deprecated and will be removed in a future undetermined release. Recommend moving to Metal driver.
	
**Text metrics options.** Text metrics change options (ascent, descent, old version, whole string, per character, etc.) can optionally be set in combination using a bitwise operator.

**Lighting with shadow maps.** The previous limitation of 4 lights when using shadow maps has been increased to 7 lights.
	

Fixed bugs
----------

.. csv-table::
	:header: "SDHV issue number", "Description"
	
	"19404", "Incorrect image color when applying as texture"
	"19401", "Severe regression in Text zoom performance and display quality introduced in Visualize 2022"
	"19385", "Sub-entity visual area selection of a vertex fails with negative displacement and multiple vertices"
	"19369", "Text is collapsed when zooming out and camera dolly"
	"19356", "Physically Based Rendering for shell keys without UVs"
	"19325", "Geometry looks off in file I3d-299 BLDG 38 COVERED WALKWAYS_IFC[7].ifc"
	"19252", "HOOPS_Visualize_2022_U2でTEXTのModellingMatrixが正しく反映されないことがある"
	"19205", "Preview/Print of 3D graphics throws error on VM but not on physical machine(HOOPS 26.20)"
	"19151", "Highlighting of hidden vertices"
	"11086", "While reading JT file"
	"11044", "Executing HPS::SelectionItem::ShowEdges() on PolyLine when CuttingSection is displayed does not return correct Index"
	"10901", "MarkupをHTML出力する方法について"
	"10841", "The saved hsf file does not show textures"
	"5116", "too many nodes generated?"
