Town Populations

Discuss Daggerfall Workshop news articles.
User avatar
Interkarma
Posts: 3369
Joined: Sun Mar 22, 2015 1:51 am

Town Populations

Post by Interkarma » Thu Jul 06, 2017 4:26 am

I've posted a new article about implementing town populations in Daggerfall Unity.

http://www.dfworkshop.net/town-populations/

This is just a first pass for 0.4. I expect to refine this somewhat in 0.5 including the "talk" interface for wandering NPCs later in the 0.5 cycle.

User avatar
Biboran
Posts: 277
Joined: Thu Jun 25, 2015 8:26 pm

Re: Town Populations

Post by Biboran » Thu Jul 06, 2017 8:42 am

Good choise for a adityional feature for 0.4
This really mske game much more alive and make du look much more finished :D

User avatar
Nystul
Posts: 1128
Joined: Mon Mar 23, 2015 8:31 am

Re: Town Populations

Post by Nystul » Thu Jul 06, 2017 8:38 pm

excellent work.
maybe we could add some shadows one day (maybe I find some spare time, then I will give it a try), could be even improved billboard shadows since there are different rotations/views for town folk's sprites ;)
but it already looks great ;)

User avatar
Interkarma
Posts: 3369
Joined: Sun Mar 22, 2015 1:51 am

Re: Town Populations

Post by Interkarma » Thu Jul 06, 2017 10:37 pm

Yes, it would be nice. :) Because they're basic textured quads, the shadow will shrink as the player rotates quad towards a right-angle to the sun.

We really need to build a 8-directional sprite shader for these one day. Not only better performance, but will help us ensure the shadows are cast properly. With a bit more work, it should even be possible to cast shadow based on what sun would "see" from that angle (i.e cast shadow from whichever of the 8 directions are facing sun, rather than facing player).

User avatar
jman0war
Posts: 250
Joined: Fri Jan 22, 2016 2:41 am
Contact:

Re: Town Populations

Post by jman0war » Thu Jul 06, 2017 11:52 pm

Wow.
How do you do it?

It's like you just figure this stuff out naturally.
some of my Daggerfall work can be found here: http://www.thehungryartist.com/games.html

Blue Footed Booby
Posts: 8
Joined: Wed Jun 14, 2017 4:32 pm

Re: Town Populations

Post by Blue Footed Booby » Fri Jul 07, 2017 5:08 pm

I cackled when I saw the cutouts for the flats in your sea of white cubes. I think you're right: that's too perfect a solution to not be how Bethsoft did it.
jman0war wrote:Wow.
How do you do it?

It's like you just figure this stuff out naturally.
The secret to programming is the same as the secret to anything else: practice. You try to learn a little bit every time you fail, then keep failing until you don't. :)

Narf the Mouse
Posts: 444
Joined: Mon Nov 30, 2015 6:32 pm

Re: Town Populations

Post by Narf the Mouse » Sat Jul 08, 2017 1:51 pm

If you catch the time right, you can see NPCs just after spawning; *Daggerfall spawns a bunch of NPCs in one spot, then lets them wander off and separate.

So my own guess would be "spawn points". :)

But I actually like your solution better.

* It might also spawn them in other ways, but I have seen bunches of NPCs moving out of a single point.
Previous experience tells me it's very easy to misunderstand the tone, intent, or meaning of what I've posted. If you have questions, ask.

User avatar
King of Worms
Posts: 688
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow
Contact:

Re: Town Populations

Post by King of Worms » Tue Jul 11, 2017 8:28 am

Very interresting article and nice results indeed. Ad the NPC shadows... maybe it would be a good solution to use the old fashioned blob shadows (gradient circular spot directly under the NPCs feet). It might look even better than a classic detailed shadows, when you consider the animation of the NPCs is very rough 2 phase flat "switch" and so would be the detailed shadow of such a flat - resulting in a mixture of realistic shadow and unrealistic animation of that shadow. Blob shadows have no animation and they look good all the time. Maybe its worth trying.

PS: I reserve the right to be completely wrong, maybe the detailed shadows will look better than simple blobs. Maybe both option could be present and player could switch between them in graphic options, choosing the option which better suits his taste and a hardware he is using.

User avatar
Interkarma
Posts: 3369
Joined: Sun Mar 22, 2015 1:51 am

Re: Town Populations

Post by Interkarma » Tue Jul 11, 2017 8:58 am

Old-school blob shadows are a pretty good idea actually. I think they might look good as well, but never know until I try.

I probably won't get to this for a bit, but will definitely give it a shot and report back if someone doesn't beat me to it. :)

User avatar
pango
Posts: 169
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Town Populations

Post by pango » Mon Aug 27, 2018 5:46 pm

Hi,
Around dungeon entrances, random enemies can walk on water just fine though (and it seems consistent with classic game).
I assume that cannot be fixed by the same mechanism?

Regards,
Pierre.

(Example of dungeon entrance with ruins and pools of water in attachment)
Attachments
SAVE30.zip
(242.42 KiB) Downloaded 4 times
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Post Reply