{"id":540,"date":"2009-05-30T16:31:38","date_gmt":"2009-05-30T06:31:38","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=540"},"modified":"2009-05-30T16:31:38","modified_gmt":"2009-05-30T06:31:38","slug":"3d-cursor","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2009\/05\/30\/3d-cursor\/","title":{"rendered":"3D Cursor"},"content":{"rendered":"

\"terraindiscontinuity\"<\/a>So I’ve got the difficult bit of my 3D cursor model working.\u00a0 It works more or less as you’d expect;\u00a0 it finds the spot that your (hidden) mouse cursor is hovering over, and zips off into the distance to point at that spot.\u00a0 The current cursor behaviour is very much like that from the 1.1 development version of MMORPG Tycoon (so if you’ve played with that, you know the stretchy behaviour that’s being used here).\u00a0 Of course, the very first thing I did with this new cursor was to point out the shading discontinuity which currently occurs on the border between world zones.\u00a0 That’s been on my “to fix” list for an awfully long time, and I’ve still never gotten around to it.\u00a0 Probably because it shouldn’t be difficult to fix, so it’s not a particularly interesting problem to work on.. but it’s always annoying to spot one of those when I’m thinking about taking a screenshot.\u00a0 Maybe by putting it front stage like this, I’ll motivate myself to fix it sooner.<\/p>\n

While I’m on the topic.. while I do like the visual interest generated by the foliage effect, it becomes totally invisible only twenty or thirty meters from the camera.\u00a0 In this shot, the foliage effect is being rendered over absolutely everything in the scene (except for the hilltops in the far, far distance).. and you really don’t get any benefit from it beyond the two slopes in the foreground.\u00a0 And the color scheme being used here really isn’t working for me.\u00a0 I should really fix that up.<\/p>\n

But I seem to have derailed myself.\u00a0 The cursor picking is working, yay!\u00a0 Now I just need to fix the visible cursor’s behaviour.\u00a0 The real problem with the cursor’s current behaviour is that the cursor doesn’t try to orient itself to be visible from the camera;\u00a0 that is, the cursor is still a flat 2D object, and depending on how you’ve been moving it around, it can quite easily end up with its flat side facing the camera.\u00a0 It also tends to end up sitting directly on top of the ground;\u00a0 really, I’d like to have it hover a short distance above the ground, and perhaps cast a shadow down onto the ground, to help really show where it is in the scene.\u00a0 Finally, since it has to be visible so far off in the distance, the cursor model is actually about three meters long, which makes it absolutely massive on screen when you point at a surface which is near the camera.\u00a0 So it’ll need to change its size dynamically, so that it won’t end up using half the screen when it’s pointing at the ground right in front of the camera.<\/p>\n","protected":false},"excerpt":{"rendered":"

So I’ve got the difficult bit of my 3D cursor model working.\u00a0 It works more or less as you’d expect;\u00a0 it finds the spot that your (hidden) mouse cursor is hovering over, and zips off into the distance to point at that spot.\u00a0 The current cursor behaviour is very much like that from the 1.1…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-8I","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/540"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=540"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/540\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}