I am making a game for which i want to create a 3d room editor ,but i m unable to get the object's x,y,z postion ,,i only just select it ,,please help...
Help! 3d model-selecting
Started by ShubhamBansod, Apr 16 2012 06:15 AM
4 replies to this topic
#1
Posted 16 April 2012 - 06:15 AM
#2
Posted 16 April 2012 - 06:38 AM
Explain better - what do you mean you're unable to get those variables? You can get them like any other object/instance.
#3
Posted 16 April 2012 - 12:41 PM
Selecting a model means ,with the help of cursor clicking on 3d model on screen ,
as i am making a room editor ,i want to get object properties like its x,y,z,tex... values to put it into a text file..
i think u will understand...
as i am making a room editor ,i want to get object properties like its x,y,z,tex... values to put it into a text file..
i think u will understand...
#4
Posted 16 April 2012 - 01:33 PM
So you need a method to find the instance(s) under the cursor.
If it's sufficient to check for objects of similar shape to the simple shapes (block, cylinder, ellipsoid, cone, wall, floor), you could use my Line–Shape Collision scripts combined with Yourself's mouse conversion script, and loop through all the selectable instances in view#.
#
However, if the objects are arbitrary kind of models, you can use e.g. this DLL to raytrace.
If it's sufficient to check for objects of similar shape to the simple shapes (block, cylinder, ellipsoid, cone, wall, floor), you could use my Line–Shape Collision scripts combined with Yourself's mouse conversion script, and loop through all the selectable instances in view#.
#
Spoiler
However, if the objects are arbitrary kind of models, you can use e.g. this DLL to raytrace.
#5
Posted 17 April 2012 - 11:14 AM
Try drawing each model in a diffirent color, and then check what color is under the cursor when you click. Thus you will know what object has been clicked on. I belive filulius hade some example of that around here.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











