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 / Crashing on Point Camera function

Author
Message
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 17th Apr 2003 14:59
I have a strange situation where the program just stops on the POINT CAMERA function.

This only happens if I have added Static Objects to the scene (these static objects are untextured boxes, 24 of them).

Any suggestions as to what is going wrong?
Thanks in advance.
All the Best,
StevieVee
Dr DooMer
22
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 18th Apr 2003 06:06 Edited at: 18th Apr 2003 06:07
No, but I can give you two functions that I've written that do the same sort of thing as the two 'point' commands:



I wrote these so I could do 3D-space calculations without needing to change the angles of an object. To run them, you need to send them the point you want them to look at, minus the point that you're looking from. To get the camera to look at a certain point, this is what you'd type, assuming you're looking at point x#,y#,z#:



You could probably tidy the functions up and even create a true copy of the point camera command, but I never intended them to be used like that, which is why they're as they are. Anyway, hope this is some help!

"I am a living, thinking entity who was created in the sea of information."
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 18th Apr 2003 17:06
Can I ask why you don't just use the point command? Is there a problem with this command that I don't know about?

I'm glad you're good with the maths...I haven't a clue how your function works, but I'll certainly use it if it gets me out of my problem!

Thanks for any help.

Thanks in advance.
All the Best,
StevieVee
Dr DooMer
22
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 19th Apr 2003 03:26
Easy - I'm not working with objects, I'm working with maths! There are no objects for me to use the point commands with!

I've actually used them to calculate gravitational pull and motion in three dimensions; it's for a little eye-candy on the main menu of the game I'm working on. You'll know it when you see it!

"I am a living, thinking entity who was created in the sea of information."

Login to post a reply

Server time is: 2025-05-16 11:17:31
Your offset time is: 2025-05-16 11:17:31