Camera and Mesh Questions (I'm new)

Just starting out? Need help? Post your questions and find answers here.
kcraft
User
User
Posts: 18
Joined: Sun Jul 13, 2003 7:29 am
Contact:

Camera and Mesh Questions (I'm new)

Post 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
kcraft
User
User
Posts: 18
Joined: Sun Jul 13, 2003 7:29 am
Contact:

Day 4

Post 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
crymeariver
New User
New User
Posts: 3
Joined: Mon Jul 14, 2003 7:52 pm

awsner???

Post by crymeariver »

Dude you replied to your self :o hahahaha
kcraft
User
User
Posts: 18
Joined: Sun Jul 13, 2003 7:29 am
Contact:

hmm

Post 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...
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Re: awsner???

Post by Berikco »

crymeariver wrote:Dude you replied to your self :o hahahaha
Not so nice answer for your first post...
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Re: hmm

Post 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.
SPAMINATOR NR.1
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post 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. :?
--Kale

Image
kcraft
User
User
Posts: 18
Joined: Sun Jul 13, 2003 7:29 am
Contact:

Interesting

Post 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!
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2138
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Post 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
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
crymeariver
New User
New User
Posts: 3
Joined: Mon Jul 14, 2003 7:52 pm

to all who didnt like my joke

Post by crymeariver »

i was just kidding :evil: learn to take a joke ya bunch of sissys
Post Reply