get mesh in scene by name

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
C-lover-1
Posts: 12
Joined: Sat Feb 17, 2007 8:46 pm

get mesh in scene by name

Post by C-lover-1 »

hi every body .
in my simple editor i am trying to add objects in a simple list and get them by name .
example cone1 ,cone2 ets...
i used getSceneNodeFromName() . there is no resualt for it .
in the past i used a dynamic array for selecting object and draw bondingbox arond them but now i can't select it by name .
how can i select mesh by name and draw a bonding box arond it .?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I've got no problems selecting nodes by name. Are you absolutely sure you've set names for the nodes, and that the name of you're providing matches the name of one of the scene nodes?

Travis
Virion
Competition winner
Posts: 2149
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

I've got no problems selecting nodes by name.
Me neither. It works fine and very useful.
My company: https://kloena.com
My profile: https://zhieng.com
My co-working space: https://deskspace.info
My game engine: https://kemena3d.com
Post Reply