Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Neverwinter Nights: Enhanced Edition has been released! Visit nwn.beamdog.com to make an order. NWN:EE FAQ is available.
Soundtracks for BG:EE, SoD, BG2:EE, IWD:EE, PST:EE are now available in the Beamdog store.
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

How to set a walkable path in landscape image?

brusbrus Member Posts: 944
edited November 2015 in General Modding
I've made a 3d landscape in 2d perspective. How to set a curve which tells in what direction player can go in game?

Does it have connection with CPU path tracking?

Post edited by brus on

Comments

  • elminsterelminster Member, Developer Posts: 15,748
    edited November 2015
    Brus PM'd me asking me a couple of questions about areas/area images. Unfortunately, I don't really have the technical knowledge to help (my strengths are in other areas :) ). So I'm going to tag some people who might be able to at least point you to a good guide if not provide some assistance.

    @argent77 @Cuv @CoM_Solaufein

  • argent77argent77 Member Posts: 2,697
    I'm not an expert in making areas, but I can still try to answer some questions.

    Walkable paths, obstacles as well as footstep sounds for various ground types are defined by a simple color-coded bitmap in 16-colors BMP format. Each palette index has a special meaning. You can find an overview on IESDP. The bitmap/map size ratio is 1/16 horizontally and 1/12 vertically, so, for example, a search map of 128x128 pixels can cover a TIS map of 2048x1536 pixels. The filename of the search map is always the ARE filename plus "SR" suffix.
    The game engine automatically calculates the path finding nodes based on the search map. There isn't much you can do to tweak the pathfinding process. Afaik, IWD:EE contains the file AREANODE.2DA, which can be used to modify the pathfinding precision of creatures on the map, but I don't know if it's supported in BG2:EE.

    You'll also need a height map and a light map (or two light maps if you're using separate day and night maps) of the same size as the search bitmap. Their BMP filename suffixes are "HT" and "LM" (or "LN" for night maps) respectively.

    To get an idea how search maps are connected to areas, you can start up Near Infinity, select a map (e.g. AR0046.ARE in BG2) and open it in the area viewer by clicking on the "View Area" button. There you can activate the search map overlay ("Display search map" checkbox on the right control bar).

    brusJuliusBorisovAstroBryGuy
Sign In or Register to comment.