Comments (5)
Hi, you can try to move pre_draw callback execution from KX_KetsjiEngine::RenderCameras to KX_Scene::RenderAfterCameraSetup and test. If it works for you, i'm ok to move it here.
from upbge.
Hi, I've tried moving it to different zones inside KX_Scene::RenderAfterCameraSetup, but the problem is still there. Setting a location works, but reading it, doesn't.
from upbge.
Doing some tests, seems like moving the object works, but reading the position of the controllers, could be happening before the scripts, and even if the navigation location changes, the controller position is not updated to the new navigation location until the next frame. I've printed the controller location, and the sphere location, and they're at the same position at the moment of running the script, for now it can be semi-fixed calculating the previous location of the navigation location - actual navigation location, then that vector can be added to the controller location, but the rotation still gets delayed, is less noticeable, but still there.
Edit: Forgot to mention that the calculation is done in python, not in the source code.
I'm still trying to find when are updated the values for controllers are. I would appreciate if you have a hint on where or how to fix it correctly.
from upbge.
You can look at KX_Scene, and search for "wm_xr" occurences. I haven't an XR device, and idk how to deal with that. You can try to move what is in KX_Scene... I won't be abled to review, but you can ask BluePrintRandom on discord to test what you did if you have a change proposal.
from upbge.
Thanks, I've made that and moved the callback section after the xr part in KH_Scene, but as mentioned, it seems it read the transformations, then the callback move the navigation_location, and if I read the controller location, it didn't updates, and reads the location before the navigation location change. If I find something I'll go to the discord channel and ask BluePrintRandom as you suggested. Thanks again.
from upbge.
Related Issues (20)
- 0.3+: Parent/children replication remapping issue
- Component scripts freezing and not updating HOT 2
- 4.1: `sensor.link(controller)` and `controller.link(actuator)` seem to cause an access violation HOT 3
- UPBGE 0.3 cant go back to Previous scene
- UPBGE crashes when moving UPBGE window while game plays
- Cannot change theme of Logic Bricks Editor HOT 1
- UPBGE crashes when python script has syntax error
- UPBGE 0.4.1: instances of Collections that use "LOD"cause crash.
- development idea : build ubpge around bforartists
- Wayland Flickering UI HOT 1
- Viewport "Zoom In" using Embedded Start
- AliceLG Aden (Lookingglass for Blender)
- Suddenly Shadows Disappear, then the whole frame becomes white. HOT 1
- Feature Request: Windows MSI
- Move Depsgraph to Separate Thread
- checksum for alpha/beta development
- "use viewport render" and "sample per frame"
- Memory ingeasing till freeze while using bge.texture.VideoFFmpeg("Webcam", 0) as video texture on Linux
- Proposal: Improve Collections to work Better and Closer to old Layers, Scenes and Groups
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from upbge.