1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  4. The Secrets of Warcraft 3 have revealed interesting works. The RESULTS for Abelhawk's Mini-Mapping Contest #15 have come out!
    Dismiss Notice
  5. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  6. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  7. Night Rider gained several songs for his journey. The poll for the 12th Music Contest has started. Check it out!
    Dismiss Notice
  8. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  9. Join other hivers in a friendly concept-art contest. The contestants have to create a genie coming out of its container. We wish you the best of luck!
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Dynamic DNC

Discussion in 'Requests' started by Strydhaizer, Aug 10, 2019.

  1. Strydhaizer

    Strydhaizer

    Joined:
    Feb 28, 2013
    Messages:
    1,386
    Resources:
    4
    Models:
    1
    Maps:
    1
    Template:
    2
    Resources:
    4
    Hello, I'm looking for someone who can make a "dynamic" DNC for my map. I will really appreciate it if someone can help. :)
     
    Last edited: Aug 10, 2019
  2. ThisPOT

    ThisPOT

    Joined:
    Feb 23, 2009
    Messages:
    561
    Resources:
    3
    Spells:
    3
    Resources:
    3
    Just curious, what is a DNC?
     
  3. Strydhaizer

    Strydhaizer

    Joined:
    Feb 28, 2013
    Messages:
    1,386
    Resources:
    4
    Models:
    1
    Maps:
    1
    Template:
    2
    Resources:
    4
    Day - Night Cycle, it's the lighting that changes depending on what time it is ingame.
     
  4. ThisPOT

    ThisPOT

    Joined:
    Feb 23, 2009
    Messages:
    561
    Resources:
    3
    Spells:
    3
    Resources:
    3
    What are you trying to get done? I can probably help with that.

    Just some system where you can manipulate the timers or day and night during game?
     
  5. Strydhaizer

    Strydhaizer

    Joined:
    Feb 28, 2013
    Messages:
    1,386
    Resources:
    4
    Models:
    1
    Maps:
    1
    Template:
    2
    Resources:
    4
    No not a system, I want someone to make me a modified version of the default DNC with the preference I need for my map.

    In the Warcraft 3 CASC/MPQ (depending on which version you have), explore Environment / DNC / DNCAshenvale (for example) then you can edit either the Terrain or the Unit (since both are the same anyway).

    By default we have Dawn, Dusk, Noon and Midnight, the Noon emits white ambient color while midnight emits the blue color.

    Now these are the specifics/preference I need for the custom DNC.

    Noon - RGB (45, 45, 45)
    Dusk - RGB (30, 25, 25)
    Night - RGB (15, 15, 15)
    Dawn - RGB (30, 35, 35)
    Intensity and Ambient Intensity - 200
    Attenuation Start and Attenuation End is not necessary to be edited because it does nothing special anyway.

    It's a complicated work (at least for me), it requires someone who has skill in modifiying hex data (based on the tutorials I've read) and I can't follow it myself (even the author of the tutorial admitted that most of the reader may not understand it, and I am one of it) which is why I am asking favors to someone else who can. :)
     
    Last edited: Aug 10, 2019
  6. ThisPOT

    ThisPOT

    Joined:
    Feb 23, 2009
    Messages:
    561
    Resources:
    3
    Spells:
    3
    Resources:
    3
    Hmm I'm not sure I understand what you need, but I will try to help (I'm all right with color codes and lighting wether its hex or RGB or w/e). What is it exactly that you are trying to do though?

    PS: Sorry for the long wait was on the phone, also I can't find this MPQ, can you upload it? (I'm using the newer version so I don't think its there by default unless you extract it?)

    PPS: By dynamic you are saying that it will update/adapt according to certain factors, I believe all this can be done better via triggers (I think)

    I understand better what you are trying to do after doing some research.

    I believe the best way to do dynamic lighting would be a combination of triggers and editing the DNC.
    Design each DNC have a different "time of day" effect, and make timer with triggers to go through them to give the feel of the day actually going by (not just day and night, but the whole feel).

    What is Dynamic Lighting ?

    Your desired colors converted to hex (trying to do your request atm, but that file is a mess):

    |cff2D2D2D
    |cff1E1919
    |cff0F0F0F
    |cff1E2323
     
    Last edited: Aug 10, 2019
  7. Strydhaizer

    Strydhaizer

    Joined:
    Feb 28, 2013
    Messages:
    1,386
    Resources:
    4
    Models:
    1
    Maps:
    1
    Template:
    2
    Resources:
    4
    No, I already tried making static DNC for each hour of time and it's not good, it shouldn't be that way, it is not the best way either. First, the transition of lighting is terrible if you change the DNC lighting when the time hits an hour (ex. call the DNC with 40,40,40 RGB at 12:00 using custom script, then call 35,35,35 RGB at 1:00). Second, I will have to make a lot of DNC with different colors just to make the transition smooth every hour.

    This is the reason why Im asking for someone who can edit the existing animated DNC instead of making alot of DNC just to recreate one animated DNC.

    That's not the hex I'm talking about, view the tutorial I've linked at my previous response and find 'Hex'.
     

    Attached Files:

    Last edited: Aug 10, 2019
  8. Hermit

    Hermit

    Joined:
    May 29, 2013
    Messages:
    1,126
    Resources:
    3
    Models:
    2
    Icons:
    1
    Resources:
    3
    I don't see why you can't do that with just War3 Model Editor. Just click the "Color" button and set the Interpolation Type at the bottom of the window to "linear" to create smooth, gradual color transitions.

    Color is animated in lines that look like this:
    The colors use values from 0 to 1.

    The animation lasts from 333 to 60333, so make sure those two frames are identical to make the animation loop seamlessly.

    You just have to figure out at what time of the day the animation starts (noon, midnight, etc.)
     
    Last edited: Aug 11, 2019
  9. Strydhaizer

    Strydhaizer

    Joined:
    Feb 28, 2013
    Messages:
    1,386
    Resources:
    4
    Models:
    1
    Maps:
    1
    Template:
    2
    Resources:
    4
    It doesn't work as easy as that sadly, I already tried editing the DNC's RGB colors (both color and ambient color) with my preference but when you try to edit it, save it and import it to my map it will all just pitch black even if you import it to the correct path or call it with custom script.

    This is what happens when you directly edit the colors using Magos Editor.

    upload_2019-8-11_4-21-46.png
     
    Last edited: Aug 10, 2019
  10. Hermit

    Hermit

    Joined:
    May 29, 2013
    Messages:
    1,126
    Resources:
    3
    Models:
    2
    Icons:
    1
    Resources:
    3
    It works, I just tested it. Magos has a few problems when it comes to saving models in the MDX format, so make sure to save the model as an MDL and then use MDLX Converter to convert it to MDX.
     

    Attached Files:

    • DNC.w3m
      File size:
      23.5 KB
      Views:
      1
  11. Strydhaizer

    Strydhaizer

    Joined:
    Feb 28, 2013
    Messages:
    1,386
    Resources:
    4
    Models:
    1
    Maps:
    1
    Template:
    2
    Resources:
    4
    I actually did the painful way (the triggers with lots of static DNCs) a week ago. I wish I learned that earlier, that's so much easier compared to the tutorial I've read and the triggers + lots of DNCs that I made.

    upload_2019-8-11_5-9-42.png
    upload_2019-8-11_5-10-1.png

    Your method actually works, I'm actually surprised, I've been trying to edit dynamic DNCs for years and I only learned to make it work from you. Thank you very much! :)

    WC3ScrnShot_081119_051313_02.png
    WC3ScrnShot_081119_051319_03.png