[quote author=jonask84 link=topic=35050.msg793688#msg793688
Honored to meet you Impaler! Let me tell you straight away I love your code, and let me also extend my thanks for making it so clear and easy to understand
I was constantly looking to your Khazad code as I wrote my dfHack interface, it was a great help.
Im sure we have a lot to talk about heh, all kinds technical stuff. I'm using MSVC and their compiler, so I had to do some mad ugly hacking to get dfHack to compile (but now it does!). I like the IDE I guess... For rendering I the allegro 2D gaming library.
Speaking of navigating in a 3D world.. When I played 3D strategy/god games, I found it very useful when you could 'lock' the camera in an isometric perspective. Having full 3D is great for some purposes, but sometimes (esp in strategy top-down views) it can get a bit disorienting? Maybe it would be an idea to introduce a mode that locked the camera angel, and use the keys to pan around instead? I dunno
PS. This already seems like a great forum, glad to be here
[/quote]
Thanks for the complements on my coding style, I try to make it very readable. I've used MSVC in the past but prefer Code Blocks because it's free, that said we should make an effort to get a MSVC project file in Khazad to make it easy on people who use MSVC.
With regards to 3D navigation, as you know Khazad's camera can tilt changing the angle at which it looks at the ground. This is normally done with mouse motion in the vertical axis when the left mouse is pressed. But we have whats called a 'vertical lock mode' in which snaps the camera to looks strait down and ignores the mouse motion that would normally change the tilt, the intent is to somewhat replicate the feeding of playing DF in its current top down state.
It might be desirable to extend that in principle to locking the camera tilt at any angle, the player simply positioning to camera tilt to their liking and then locking it. Or a lock to 'equilateral' (when all three axis are of equal length as in your projection) or other similar angles could be included.
Panning is currently done by depressing (but not turning) the mouse wheel and then moving the mouse, this functions very much like a 'grab' on a pdf, moving the mouse the right pans leftward. It is probably not intuitive enough and having the directional keys pan is a good idea.
I'll give you a heads up when I get these changes made so you can test a snapshot and tell me what you think, likewise I look forward to testing your viewer (which really needs a name by the way).