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 Discussion / How select 3d objects with mouse?

Author
Message
Diluo
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location: cordoba, spain
Posted: 24th Mar 2004 16:38
Hello, I`m new and y dont know
how to do it,How select 3d objects with mouse,

Diluo
DivW
21
Years of Service
User Offline
Joined: 31st Jul 2003
Location: Scotland
Posted: 25th Mar 2004 15:00
I'd recommend something easier at first if you're new. I think the way to do this is to have an invisible object that's high but really thin, so it collides well. Position under the mouse at every loop. Then if there's a collision between the two objects, and the mouse button is pressed, then set the variable for the selection to true. See what i mean? It's a pain in the ass and you'll find it much more complicated than that. First time, i'd suggest something like the Limit Rush Tutorial. It gives you a good feel for everthing.

-Dave

Your soul...it tastes like chicken

Official Website Postponed
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 25th Mar 2004 16:39
he's from spain...so I'll speak in his language. I'm not insulting anyone or anything. If you want translation then ask for it. (english is good for me but my home language is spanish)

Diluo, lo mejor será, como dice DivW, a comenzar con el tutorial del Limit Rush, es bastante sencillo y te enseñará muchas cosas. Cuando ya sepas bastante, podrás seleccionar objetos con el mouse. Yo estoy haciendo un RTS (estrategia en tiempo real) y también tengo problemas seleccionando objetos. Intenta buscar en la sección de los Code Snippets a ver si consigues algo que te ayude. Van-B hizo un código que podría ser útil para tí pero necesitas saber algo más de DarkBASIC. Aunque si tienes DarkBASIC Professional me temo que no podré ayudarte...

Short translation: The best will be start with the Limit Rush tutorial as DivW says, because it's easy and will show you a thing or two. I'm making an RTS too and I've been having problems selecting objects with the mouse. Try to search in the Code Snippets, perhaps something there can help you. Van-B did a code that can be useful for you but you need to know more of DB, but if you have DBP I'm afraid I can't help you...



Login to post a reply

Server time is: 2025-05-31 17:44:14
Your offset time is: 2025-05-31 17:44:14