Hi, I can only use the logic node, I am making VR tour and would like to zoom with scroll, rotate with left mouse click-drag and pan with right mouse click-drag, please show me how to setup such behavior in node, thank you.
Added some basic example for translation, rotation and scaling [here] (https://github.com/armory3d/armory_examples/tree/master/logic_basics) (using keyboard).
Camera panning example using mouse available here. Camera zooming example coming later tonight or tomorrow.
Wow, thank you very much!!
I am using a shader based game engin Coppercube and will mix in with Armory scene when complete:
@Philip_Knobody_Fong that kind of scene should be possible to build in Armory, no problem.
Camera mouse zoom example available here now. Please note it will only work if you update Armory to git version using the built-in SDK updater because a new node had to be added to get it working smoothly.
Did the git update of the sdk from within blender, console says it is up to date.
Though the zoom example shows these “undefined” nodes.
2)Close and restart Armory
3)Update to latest git
4)Close and restart Armory
Blender needs to be restarted after running the SDK update. In case python files are added/updated a restart is needed, Blender reads them during startup.
Did you install git first then sdk update?
I managed to rotate the camera placed under two objects, combine mouse down and keyboard, this is as far as I can go, the middle mouse don’t seems to work at all.
But material does not render in the preview also light and environment won’t publish in HTML, any idea what I missed?
Here are the changes I did:
- Use ArcBall script for camera rotation since this script is already available and built in. See setup with CameraArm + Camera objects.
- Put zoom logic node tree on camera
- Adjusted materials: removed connection to UV node on plane, enabled shadows for ball material
- Adjusted sun lamp strength
- Adjusted sky texture strength
To move the camera around hold down left mouse button. To zoom hold down middle mouse button.
Thank you so much for your help, here are the issues:
- Chrome local browser does not display but online does.
- Firefox does not show sun light, only global.
Here is the build: http://www.1catalogue.com/build_untitled/html5/index.html
Already had git installed and it picked it up, saw it going through console. It was the restart that was needed as guzzard said. Material was displaying properly but Firefox was just showing global.
It was the restart. Working great. Thanks.
You should do some video tut about this stuff.
Thanks Tumira. It was the restart that was needed. Already had git.
Sigh… too bad, mobile cannot view at all. Hope it can deliver cross platform and device soon, 3D web or VR is blooming, I plan to teach the advertising agencies to adopt the technology, other Blender addons are a bit pricey or under development, been planing for years so I can’t wait, I’ll begin with the simplest game engine.
Thanks for the help and hope to see Armory as open source game changer!
I think it is broken, the build is empty, Blender hang when play in preview.
Updated SDK, started from a clean project out of the github downloaded .zip, played. Got this on FF:
EDIT 1: Sorry not at you @guzzard, wrong reply to.