This is where active bugs can be seen and where to post a new bug.

Camera will not look at player

Camera will not look at player

Postby epsilonion » 26 Sep 2017, 10:15

With look at enabled and Player been the tag it will not look at the object with the Player Tag

User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Camera will not look at player

Postby SolarPortal » 26 Sep 2017, 10:18

did you activate the camera checkbox before the other entity was added, as that might be a cause,
try unchecking the camera lookat and then recheck it :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Camera will not look at player

Postby epsilonion » 26 Sep 2017, 10:30

Unchecking and checking does not work....
User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Camera will not look at player

Postby SolarPortal » 26 Sep 2017, 10:31

delete the tag and re-enter it again then, on both the sphere and the lookat on camera.

Set the camera as active also.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Camera will not look at player

Postby StarFire » 26 Sep 2017, 10:38

Just tried the camera and it works but there may be a order you used that caused it to break, which would be good to find ;)

ok
1) Add object and set tag then add camera and set camera look at tag - this required me to click set as active camera then it worked.
2) Add camera and set tag then add object and set its tag - this required the camera set look at pressed again.

So there is a little bug in here that we need to look at , Thanks m8 :)
Dream the Journey, Live the Experience!
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer

Re: Camera will not look at player

Postby epsilonion » 26 Sep 2017, 10:47

I put the ball in there scene Added micro script, SCC controller.
Added the camera..

I am getting intermittent crashes when using a camera in scene, sometimes they crash some times it takes a while to crash but it does in the end.

When first playing the animation runs on the ball (I am not bothered about this and will fix later) but when you attach the camera the camera doesnt orbit at the distance set, the camera spins like the animation has been transmitted to it, so now there are 2 spinning objects both in there own local space.

disabling the micro script does not stop the camera been attached and when you disable the micro script and run again the camera spins around the ball (camera in its relivent distance to the player), so when the micro script is disabled the camera is still attached to the player and works like it should relivent to the attached object.

the parent is the player and child is the camera btw..

I was going to record this but it crashed..



I had loads of crashes yesterday when switching the active camera, come times it crashed streight away other times it too a min or 5 but it did in the end.
User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Camera will not look at player

Postby SolarPortal » 26 Sep 2017, 10:54

That seemed simple to crash lol :P
You should use the getIDFromTag function though instead of straight ids, as this can change scene to scene.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Camera will not look at player

Postby epsilonion » 26 Sep 2017, 10:57

Yeah I know but its only a test level... 2.5D scroller, should be simple enough to setup and do if not for the crashes with the camera..
User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Camera will not look at player

Postby SolarPortal » 26 Sep 2017, 11:00

attaching the camera's though is something that i havent tested and still have to get around to your previous errors with the lua cameras attach.

For now, just use the attach action on the ball, and take the cameras id and place it in the ball attach action.. job done! :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Camera will not look at player

Postby epsilonion » 26 Sep 2017, 11:04

lol.. I will go onto the next thing and drill it and see if I can brake it.. :P lol
User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Camera will not look at player

Postby SolarPortal » 26 Sep 2017, 11:54

Will start having a look at these issue now :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Active / New Bugs

Who is online

Users browsing this forum: No registered users and 6 guests