Start with the basic volumetric app in Xcode.
Look here for an example;
https://stackoverflow.com/questions/78265212/how-to-display-3d-map-in-realitykit
In that example the placed the view over a cylinder, but you can use a box like the example you linked to. You can add whatever you want to the sides of the box.
This should get you started.
Post
Replies
Boosts
Views
Activity
It seems that the answer is that you have to both add an entity and set the entities parent to make it visible;
content.add(anchorEntity)
anchorEntity.setParent(content)
modelEntity.setParent(content)
Thanks! What a life saver. Here we are in Xcode 13.3 and this still happens. Pulled out some hair on this one.
``class pInfoViewController: NSViewController, NSTableViewDataSource, NSTableViewDelegate
{
@IBOutlet var infoTable : NSTableView!
var artists = artistModel()
@IBAction func tableViewDoubleAction(sender: AnyObject)
{
let r = infoTable.clickedRow
aPainterWindow = painterWindow(windowNibName: "painterWindow")
aPainterWindow.setPainter(ID:artists.patienterNID(index:r))
aPainterWindow.showWindow(self)
}
@IBAction func painterClicked(sender : Any)
{
let r = infoTable.clickedRow
let painterID = artists.patienterNID(index: r)
print("load paintings for painterID = (painterID).")
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "loadPaintingsForPainter"), object: painterID )
}
func reloadDataAndTable()
{
artists.loadAllPainters()
self.infoTable.reloadData()
}
override func viewDidLoad()
{
super.viewDidLoad()
reloadDataAndTable()
}
func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView?
{
let cell = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: "Painter"), owner: self) as? NSTableCellView
cell?.textField?.stringValue = artists.itemN(index:row)
print("piv row=(row). value= (artists.itemN(index:row)).")
return cell
}
func numberOfRows(in aTableView: NSTableView) -> Int
{
return artists.nItems()
}
}.`
`
The calls for ECG are available in ios14 with Xcode 12. (in the beta)