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 / mouse to matrix position

Author
Message
4N!ALA70R
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location: Perth, Western Oz
Posted: 26th Feb 2005 14:39 Edited at: 26th Feb 2005 14:45
i wanna know if there is a way of getting the mouse to position a new object onto the matrix

the screen to the matrix looks like this
[edit] the underscores are to make it space out aswell[/edit]
_________________
\_______________/
_\_____________/
__\___________/
___\_________/
____\_______/

but the code i got going makes the object appear like this
_______________
\______________\
_\______________\
__\______________\
___\______________\
____\______________\

here are the code bits ull need
camera:


object positioning

you most prob wont need most of the object stuff coz it doesnt work
4N!ALA70R
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location: Perth, Western Oz
Posted: 26th Feb 2005 14:46
here is the whole code if anyone wants it
4N!ALA70R
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location: Perth, Western Oz
Posted: 26th Feb 2005 20:19
some feedback please
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 26th Feb 2005 20:53
Quote: "make camera 1 : position camera 1,2500,750,2000 : point camera 1,2500,0,2500
automatic camera collision 1,10,1"

You are creating and trying to use camera 1. However, camera 0 is on by default and probably what you are looking at on your screen, which is why you don't see anything work. Try replacing all your camera codes for the default camera, for example:



Note: For some reason, Position Camera and Point Camera are Camera Commands and the Camera Number (0) is not required when using the default camera. However, Automatic Camera Collision is a Basic 3D Command and does require the Camera Number regardless of which camera you are indicating.

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
4N!ALA70R
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location: Perth, Western Oz
Posted: 26th Feb 2005 21:07
well thanks for the feedback but that just put my camera back to normal rotation coordinates etc and so basically didnt work.

what i am lookin at now is
pick screen screenX,screenY,distance
if u could , or anyone else, please explain to me the distance part of the code better than the help

Login to post a reply

Server time is: 2025-05-29 06:23:17
Your offset time is: 2025-05-29 06:23:17