Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Pages: 1
hello!
my project https://yadi.sk/d/YmaYJ4VMaduEg
how can I get the current position of my FPS camera and write coords (XYZ&rotY) to the file? (at press f5)
and write and put FPS camera to saved coords at f9.
Advance thanks for explaining
Last edited by el_motoblock (29-Aug-2014 12:13:26)
Offline
Hi !
You can achieve this using 3 plugiTs :
input keyboard
Object position
misc config file : http://www.openspace3d.com/documentatio … lugit.html
firt add the Object position instance
select the camera shell as object and disable the Set position on start
choose local coords
add the key board plugits with the corresponding keys.
add the misc config file plugit and disable load on init
add a variable name "userpos" and set the default value with position and orientation as :
0 0 0
0 90 0
then add a link
F5.Key down -> Object position.Get coords
Object position.Coords -> Config file.Set userpos
F5.Key up -> Config file.Save
F9.Key down -> Config file.load
Config file.userpos -> Object position.Set Coords
You can do the same with the camera object for better result.
This just point out that there is a missing action and event on the FPS plugIT to get it's complete position of the several nodes it use.
I'll do this quick
Offline
not works. in save its writes 0.000000000000....
physically not performs especially
https://yadi.sk/d/MQaI8G3HagGBH
left my previous project? rooms.xos
when saving all data flied
Error while importing scene or group: .../.../rooms.xos
Last edited by el_motoblock (30-Aug-2014 08:31:41)
Offline
Hi !
you found a weird bug
I corrected it and added the get position on navigation plugIT
here you scene modified with functional load / save position from navigation plugit
http://arkeon.dyndns.org/scol/rooms.xos
update the plugits files from
https://svn.scolring.org/trunk/scol_app … onfigfile/
and
https://svn.scolring.org/trunk/scol_app … avigation/
Offline
im begin new project(level etc.) please make tutorial about "data saving" to file and read this.
https://www.youtube.com/watch?v=Rg3EKDYOBgc
is my attempt make the system of characters
Last edited by el_motoblock (19-Sep-2014 12:17:20)
Offline
Pages: 1