Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Selecting 3d objects

Author
Message
pugmartin
23
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: United Kingdom
Posted: 2nd May 2003 01:14
Just thought id post a quick... well, post... to add to the 3d selecting thing.

For my current thingy, cunningly lovingly referred to as level edity type thingy, i tried various different ways of selecting objects without much luck. They were either inefficient, unreliable or... well, crap.

But the way im using at the mo (which granted, probly isnt much use outside of a menu driven app) is just to position two cubes, one at the top left of an object, the other at the bottom right.
I then just check if the mouse pointer is between the two using screen object x/y etc and cycling thru the objects.

Pretty simple, and ideal for me at the min, though i may change it later if needed. Handy at any rate if you just want to check a few things like i did, and only takes a few lines of code for the whole routine.

Anyway, just thought it may help someone
10 Rem Code goes here

Login to post a reply

Server time is: 2026-07-11 20:45:01
Your offset time is: 2026-07-11 20:45:01