Page 1 of 1
Camera and Mesh Questions (I'm new)
Posted: Sun Jul 13, 2003 7:42 am
by kcraft
Hello,
I just downloaded the demo version, as the full version is being shipped this week. I was playing with the robot in the skybox example, and have run into a small problem. Well, a few.
1. I want the camera to be located at the robots head, which I've done with CameraLocate(x,x,x,x). But I want it to be locked to this position on the robot, if the robot moves forward, the camera moves, so forth...
2. Right now, when I move the mouse, the camera rotates with the mouse. I would like to make the robot move in the direction the camera is facing, as well as rotate to face that direction on the X axis.
Again, I'm new to this software, I was using darkbasic awhile ago and stopped working with it, but with darkbasic, it was pretty simple to lock the camera to the mesh.
Thanks,
Kenneth Craft
Day 4
Posted: Mon Jul 14, 2003 4:08 pm
by kcraft
Ok, now. I've been messing with this for a few days now, and I've come to realize I really do need Win32 API support that the Demo does not give me. Alot of the examples and other source code look like they require it.
I Did however get the rotation working with the robot, now the robot faces the same direction as the camera, and rotates on its X axis. Good.
I can't seem to figure out how to get the camera, and the robot to move together. If I set both MoveCamera, and MoveMesh to (0,10,0,0) it seems like they work until I start moving the mouse up and down. When that happens, they get out of sink with each other and I end up staring at the back of the robot.
My Source is at the following link:
<a href="
http://www.kennethcraft.com/designs/pb/ ... thebot.zip </a>
Thanks
awsner???
Posted: Mon Jul 14, 2003 7:54 pm
by crymeariver
Dude you replied to your self

hahahaha
hmm
Posted: Mon Jul 14, 2003 7:57 pm
by kcraft
Erm, it was an update for anyone who would like to help me out. I've noticed there have been alot of views, but no replies, so I thought If I put something on here that people could see and work with, maybe I would get some replies...
Re: awsner???
Posted: Mon Jul 14, 2003 8:24 pm
by Berikco
crymeariver wrote:Dude you replied to your self

hahahaha
Not so nice answer for your first post...
Re: hmm
Posted: Mon Jul 14, 2003 8:25 pm
by Rings
kcraft wrote:Erm, it was an update for anyone who would like to help me out. I've noticed there have been alot of views, but no replies, so I thought If I put something on here that people could see and work with, maybe I would get some replies...
i would like to help you, but cannot(no exercise in 3d) .
There are some 3d guys on this forum(or the german one) and they will help you (i think we have holidays now)
Keep on working
and @'cry me a river' :
hey dude, you have done 1 cheap post.only this b*sh*t .
go on post something usefully.
Posted: Mon Jul 14, 2003 8:55 pm
by Kale
Hiya, what demo version are you using? i have just downloaded your source and noticed that many of the 'experimental' 3d commands have now been replaced with better thought out versions. download the new v3.72 demo and have another go at your code, then i will take a longer look, many of us have upgraded and can not run and ammend your source as it is.

Interesting
Posted: Mon Jul 14, 2003 9:10 pm
by kcraft
I have version 3.62, I downloaded that from the site, Friday... Interesting. Ok, I have my second guy installing it and running through it now. when I get home I'll take a look at the new stuff. hopefully that will solve my issues.
Thanks alot!
Posted: Mon Jul 14, 2003 9:27 pm
by Andre
I have version 3.62, I downloaded that from the site, Friday...
New demoversion v3.72 is out since today....
www.purebasic.com
to all who didnt like my joke
Posted: Tue Jul 15, 2003 4:27 am
by crymeariver
i was just kidding

learn to take a joke ya bunch of sissys