Jump to content
The Dark Mod Forums

Recommended Posts

Posted

I'm trying to get some SEED grass to grow, with no luck.

 

I looked at Knighton's manor and Builder Roads, and if I copy a couple SEED entities from each into an otherwise bare room, none of the grass appears.

 

Is there something required beyond creating a brush and converting it to an atdm:seed_random_grass_sparse entity?

Posted

I forgot to mention that the patch is from Builder Roads, the small brush is from Knighton Manor, and the long brush is one I created from scratch.

 

Builder Roads and Knighton display the SEED just fine, but I can't get the same entities to display in my map or the test map.

Posted

Had a look -

  • you were missing "combine" "1"
  • I removed the "Map" arg from the SEED entity - dont know what that does.
  • I dont know if this has any effect but the texture scale on some of the SEED brush/box was very small, set it to 0.5

There was something weird about your map so I created a new one and put some plain SEED entities in there along with the random_grass one you had been using. I forgot how cool SEED is, gonna have to start using it more!

 

- seed.map.txt

 

post-496-0-19622200-1427135135_thumb.jpg

Posted

Hmm. I think you might need a general SEED brush encapsulating those entities but that seems like it would defeat the purpose of

making pre-built entities...

You can use both the random_grass seed entity aswell as the plain seed entity, the above above has both examples for people to play with.

Posted

Had a look -

  • you were missing "combine" "1"
  • I removed the "Map" arg from the SEED entity - dont know what that does.
  • I dont know if this has any effect but the texture scale on some of the SEED brush/box was very small, set it to 0.5

There was something weird about your map so I created a new one and put some plain SEED entities in there along with the random_grass one you had been using. I forgot how cool SEED is, gonna have to start using it more!

 

- attachicon.gifseed.map.txt

 

attachicon.gifseed.jpg

 

- "combine" "1" is default, so it wasn't missing on any of the three test entities

 

- how did you remove the "map" spawnarg, since it's a default spawnarg?

 

Your test map works for me.

 

However, I copied your random grass entity into my test map and it fails to spawn grass.

 

What's weird about my test map? It's just a box with some lights.

Posted

Okay, quite strange.

 

All of a sudden my test map started working, and the only thing I can think of is that dmap decided to wake up and create a new .cm file.

  • Like 1
Posted

I think I've figured it out.

 

The random grass SEED entities need to have a grass texture (or some grass-friendly texture) to plant their grass on. I seem to remember this requirement from a long long time ago because I was trying then to grow clumps of SEED grass on brick floors and it wouldn't work so I gave up.

 

The cm connection is that my test map started with a tile floor (just chose a random texture), so SEED refused to grow the grass. After I changed to a grass texture, it still refused to grow, but that was because dmap didn't update the cm file. Once dmap deigned to update the cm file, SEED saw the grass texture beneath it and started working.

 

The grass is now working in my WIP.

 

Thanks for the help!

Posted

  • The random grass SEED entities need to have a grass texture (or some grass-friendly texture) to plant their grass on.

Once dmap deigned to update the cm file

  • Hmm, interesting is this in the wiki for the SEED entry/tut..?

This sounds like a bug that needs a tracker..?

Posted

On the subject of using SEED for big things like tree's, I assume thats not avisable where AI want to path find as because the mapper cant place MC due to not being able to predict where the tree's will spawn...?

Posted

Yeah SEED can be used for decorative Trees as long as you block-off the whole area with monster clip. I suppose the Tree LOD entities could

also include monsterclip models (one box for the trunk and one box for the branches)?

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Posted

Yeah SEED can be used for decorative Trees as long as you block-off the whole area with monster clip. I suppose the Tree LOD entities could

also include monsterclip models (one box for the trunk and one box for the branches)?

How would you make sure the MC brush is spawned in the same location as the tree though..?

Posted

If they are all part of the same entity def, they should all spawn in the same place just like an AI is made of multiple models.

I'm pretty sure anything you can texture can have the monsterclip surface attribute in the material def. So that's all the parts

of the equation other than making the cubes and adding them to the entity def.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Posted

 

  • Hmm, interesting is this in the wiki for the SEED entry/tut..?
  • This sounds like a bug that needs a tracker..?

 

 

- I can't find in the code where a random grass SEED entity requires a grass texture beneath it, but further testing shows that's the case. There might be more textures that act like grass (I would expect 'dirt' to work, but it doesn't). I'll update the WIKI so it at least mentions grass.

 

- Already exists: #3311.

Posted

 

I'll update the WIKI so it at least mentions grass.

 

 

 

There's no appropriate spot for it. The closest I can get is some vague comment about SEED disallowing certain combinations, like "trees on metal". But there's no list of inappropriate combinations, or how the mapper can overcome them (like putting a random grass SEED on dirt). (The SEED wiki pages are full of "TODO" comments, so the whole topic is incomplete.)

 

As a consolation prize, I added a blurb to the editor note for these things that the random grass SEED entities have to have grass on the brushes/patches beneath them.

Posted

@Gman, hmm, it shoud work on all grass & dirt textures. Might be another one for Steve to have a look at it.

If they are all part of the same entity def, they should all spawn in the same place just like an AI is made of multiple models.

Models don't come with an MC brush by default and I have no idea how you would even accomplish that either. The mapper has to place MC after placing a model etc.

Posted

Create a custom material def and add monsterclip where you would add other surface attributes:

 

 

 
textures/darkmod/stone/brick/rough_blocks02
{
    stone
    monsterclip
    description    "vine_friendly"

    qer_editorimage textures/darkmod/stone/brick/rough_blocks02_ed
    diffusemap      textures/darkmod/stone/brick/rough_blocks02
    bumpmap         textures/darkmod/stone/brick/rough_blocks02_local

    {
        if ( parm11 > 0 )
        blend       gl_dst_color, gl_one
        map         _white
        rgb         0.40 * parm11
    }
    {
        if ( parm11 > 0 )
        blend       add
        map         textures/darkmod/stone/brick/rough_blocks02
        rgb         0.15 * parm11
    }

    // TDM Ambient Method Related
    {
        if (global5 == 1)
        blend add
        map                textures/darkmod/stone/brick/rough_blocks02
        scale            1, 1
        red                global2
        green            global3
        blue            global4
    }
    {
        if (global5 == 2)
        blend add
        program    ambientEnvironment.vfp
        vertexParm        0        1, 1, 1, 1        // UV Scales for Diffuse and Bump
        vertexParm        1        1, 1, 1, 1    // (X,Y) UV Scale for specular
        vertexParm        2        global2, global3, global4, 1

        fragmentMap        0        cubeMap env/gen1
        fragmentMap        1        textures/darkmod/stone/brick/rough_blocks02_local            // Bump
        fragmentMap        2        textures/darkmod/stone/brick/rough_blocks02            // Diffuse
        fragmentMap        3        _black            // Specular
    }
}
 

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Posted

If that worked, shouldn't we be doing that to all our models by default...?

+1 on that, but one thing I have noticed is that in DR half the time the MC brush is much larger than the model or wrong orientated.

Posted

The point of monsterclip is to "simplify" so that the AI doesn't have to figure out complex geometry. So if you're saying,

"should we surround all models with monsterclip cubes to reduce pathfinding overhead?" I would say "yes". If you're

saying "should we texture all models with materials with the monsterclip attribute?" I would say "no" because the model

will have the same collision complexity. Of course, the simplified collision model also does this... but it's usually still more

complex than you'd want monsterclip.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Posted

Another problem with automatically adding m/c to models is that m/c should extend up to the ceiling to reduce the number of horizontal surfaces that generate AAS areas. The only way to do this is manually, because ceiling heights vary.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Frost_Salamander

      @taaaki Wiki seems broken. Main page works but click any link and:

      · 2 replies
    • Goblin of Akenash

      Another goblin secrets episode on the way with the new update
      Focuses are:
      supporting 100% runs on shadow playstyles
      fixing the softlock
      and a tiny visual upgrade

      · 0 replies
    • STiFU

      Sorry for not being around enough lately. I am extremely busy at the moment. We are trying to build a home and the German bureaucracy is killing me! Meanwhile, child number 2 is underway. 🙂
      · 0 replies
    • cvlw

      Yo TDMers.
      It has been a while.  This past year or so I have encountered some tough family issues, became a grandfather, had a job change, and then Steam offered Dishonored and Dishonored 2 along with all DLC for like 5 dollars.  So... have played that.  What a game; highly recommend.
      I am looking to resume TDM activity soon.
      Clint
      · 2 replies
    • Airship-Ballet

      If anyone would like some ambient sounds for any of their work please do hit me up - I've tons of strings both physical and sampled that I love making loops with
      · 2 replies
×
×
  • Create New...