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.

Newcomers DBPro Corner / 3D Problem

Author
Message
BigAdd
20
Years of Service
User Offline
Joined: 14th Feb 2004
Location:
Posted: 31st Jul 2004 06:43
i understand to fir a bullet you have to do this:

Do
If mouseclick()=1
Make object sphere 1,10
Position object 1,Camera position X(),camra positionY(),Camera positionY()
Yrotate object 1,camera angle Y()
Xrotate object 1,camera Angle X()
Endif

Move object 1,10
Loop

When i use this code in my game, when i press the mousekey, the camera positions itself at 0,0,0 and with an Y angle of 0 and an X angle of 0......... can anybody help??
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Jul 2004 07:45
Post each question in one forum at a time please.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
bibz1st
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 1st Aug 2004 01:13
Is autocam turned off ?
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 1st Aug 2004 04:53
@BigAdd

i had a similar problem.

u must have autocam turned on. just turn it off with the code "AUTOCAM off"

the reason being is that if u don't have it off then the camera will centre on the newest object created. in this case its the bullet.

hope thats helped ya

(just upgraded) system specs: AMD XP 3000+, 512Mb DDR333, nvidia ge-force FX 5600 128MB, 1x8Gb & 1x40Gb HHD, 52x CD drive, DVD+RW 4x, Sound Blaster 128.... all in a Nokia 8310 case :0D
BigAdd
20
Years of Service
User Offline
Joined: 14th Feb 2004
Location:
Posted: 1st Aug 2004 04:59
!!!!!!!!!!!! BRILLIANT !!!!!!!!!!!!!
THATS A REALY GOOD IDEA!!!
how thick am !??
i more of the graphics type of person....... when it comes to programing a program, i'm hopeless. Thank u so much!!
demons breath
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 1st Aug 2004 20:42
cool - I didnt know what autocam did - so if I turn off autocam, will I be able to get rid of all the stuff in my program that repositions the camera when a new object is made in the main loop?

Am I the only one here who's really confused?
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 1st Aug 2004 23:07
@ demonsbreath

yes u can. cuts out a lot of coding. makes u feel like a drip when something like that comes along

been there myself many a time

(just upgraded) system specs: AMD XP 3000+, 512Mb DDR333, nvidia ge-force FX 5600 128MB, 1x8Gb & 1x40Gb HHD, 52x CD drive, DVD+RW 4x, Sound Blaster 128.... all in a Nokia 8310 case :0D

Login to post a reply

Server time is: 2024-09-22 18:26:53
Your offset time is: 2024-09-22 18:26:53