Town Populations
- Interkarma
- Posts: 7236
- Joined: Sun Mar 22, 2015 1:51 am
Town Populations
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.
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.
- Biboran
- Posts: 277
- Joined: Thu Jun 25, 2015 8:26 pm
Re: Town Populations
Good choise for a adityional feature for 0.4
This really mske game much more alive and make du look much more finished
This really mske game much more alive and make du look much more finished
- Nystul
- Posts: 1501
- Joined: Mon Mar 23, 2015 8:31 am
Re: Town Populations
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
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
- Interkarma
- Posts: 7236
- Joined: Sun Mar 22, 2015 1:51 am
Re: Town Populations
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).
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).
- jman0war
- Posts: 315
- Joined: Fri Jan 22, 2016 2:41 am
- Contact:
Re: Town Populations
Wow.
How do you do it?
It's like you just figure this stuff out naturally.
How do you do it?
It's like you just figure this stuff out naturally.
Find my Vibrant Terrain Flats mod at Nexusmods: https://www.nexusmods.com/daggerfalluni ... ?tab=files
- Blue Footed Booby
- Posts: 17
- Joined: Wed Jun 14, 2017 4:32 pm
Re: Town Populations
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.
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.jman0war wrote:Wow.
How do you do it?
It's like you just figure this stuff out naturally.
-
- Posts: 833
- Joined: Mon Nov 30, 2015 6:32 pm
Re: Town Populations
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.
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.
- King of Worms
- Posts: 4752
- Joined: Mon Oct 17, 2016 11:18 pm
- Location: Scourg Barrow (CZ)
- Contact:
Re: Town Populations
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.
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.
DREAM Nexus https://www.nexusmods.com/users/73250038?tab=user+files
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
- Interkarma
- Posts: 7236
- Joined: Sun Mar 22, 2015 1:51 am
Re: Town Populations
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.
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.
- pango
- Posts: 3347
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Town Populations
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)
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 210 times
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart