hi, everyone.
this is my 2nd post. :roll:
I’m implementing mouse-picking. 8)
In dynamic loading, when loading models, put theirs id(?) and it’s description into the some table.
i.e.)
| id | desc | | 123 | A's house | | 456 | B's house |
And when picking a object in the world, I can get it's id(?).
I find it in table above to get picked object's description.
In other words, check if picked object's id is equals to object's id in table.
If someone equals to picked object, can get it's description from table.
But, this is just algorithm.
In practice, two id(?)'s types(not value) are different. :oops:
In picking, the type is PickData.
In table, the type is Node or Spatial.
I can't match them. :cry:
What's the solution for this problem?
Any replies can help me.
(Sorry for my broken english.)
xacker