Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Difficulty implementing camera auto-centering - Seeking advice

misterpaint
Registered User
Quote
2024-02-17 01:19:31

Approaching an object, I would like the camera to automatically center on the object, so it should be directly in front of the camera. Even if the player is at an angle to a wall object, as soon as you approach, the camera straightens and frames the object automatically.

I'm trying everything, but I can't find the solution

🔎︎



hadoken
Guest
Quote
2024-02-17 09:41:16

@misterpaint, I think my CopperCube Dynamic Camera Focus extension consisting of two scripts might help:

1.) attach the Dynamic Camera Focus behavior script to your camera

2.) control camera targeting with Dynamic Camera Focus action script triggered by anything e.g. On proximity, etc ...

-> please check the included demo file, play a bit with the settings, where your objects the camera should look at must be set as TargetNpc or TargetChild (one is the real target, the other can additionally rotate towards camera if set)

https://hadoken-records.itch.io/...

🔎︎



misterpaint
Registered User
Quote
2024-02-17 11:13:58

thank you @hadoken !! great

A question... Does the "Dynamic Camera Focus behavior script" work for multiple items as well? In the example of the Demo, there's one objective, what if I have 15?


misterpaint
Registered User
Quote
2024-02-17 11:57:12

another issue arises: the camera freezes after zooming, and I can't move. Is there a solution for this problem as well? thank you


hadoken
Guest
Quote
2024-02-17 12:27:08

- the extension combo should easily allow for multi object camera "look at" processing (even "look at" object sequences can be triggered) but be careful not to overlap trigger conditions like e.g. proximity radiuses

- camera freezes intentionally by action when set to DCF_active_true -> use action setting DCF_active_false to unfreeze/unlock camera back to normal-> best use with do something later automatically or manually by key press ...


hadoken
Guest
Quote
2024-02-17 12:30:48

please also try

DCF_CameraPosLock_true
DCF_CameraPosLock_false

action settings for locking/unlocking camera

:-)


misterpaint
Registered User
Quote
2024-02-27 13:21:53

is great! but to much complex for my virtual gallery :(
It's difficult to manage with so many items to frame with the camera. I thought it would be much simpler, and that the camera would automatically frame an object through a simple option. I even thought about creating multiple cameras in the gallery, but it's also difficult to manage this situation because the objects I put on the walls are often more or less.

Anyway, thank you, I hope to find the time and strength to properly try out your script


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact