Jump to content

[decompiled] dz_blacksite | dz_sirocco


T-Rexer
 Share

Recommended Posts

  • 2 weeks later...
On ‎12‎/‎15‎/‎2018 at 6:32 AM, text_fish said:

Would it be possible to use this new detail sprite system on a vertical plane to make ivy on a wall, or will the masks only allow for horizontal(ish) detail?

I've played the HL2 Cinematic Mod, and some of the caves in that game have detail sprite grass on the walls and even the ceiling. So I'm certain it could be possible.

Edited by That50'sGuy
Link to comment
Share on other sites

On 12/10/2018 at 1:59 PM, untor said:

I think Valve used not anounced tools. Or Valve used Sprinkle tools, for .vbsp grass, but i don't know how it work. This tools EZ for prop_static and other entities.

  Reveal hidden contents

tAHVteL13go.jpg


 

Ohhh...wow, this tool looks very useful! mass placing props has always been time sink in hammer (even with 'expert'-mode), had no idea this existed until I read your post! :D

Link to comment
Share on other sites

  • 3 weeks later...
On 12/12/2018 at 8:33 PM, Yanzl said:

Alright, I did some testing with the new detail sprites and found out how more specifically how they work. @Mamorex was on the right track but there's a few key things you left out. 

Removing $alphatest from the material or adding $translucent

First, the detail sprites material - it's 2 detail sprite sheets side by side, so version A and version B. The different versions have to have same sprite positions and sizes. You only specify version A coordinates in the .vbsp.

image.png.5d7a0422742c4753f0888b226133250e.png

Next up, the detail sprites masks. Red and blue are for wind offset -- so you can have different parts of the sprites sway in the wind differently, you can see Valve isolated some blades of grass for this effect. The green channel is a tint mask and controls how much the sprites are affected by the $worldspacetint. 

That brings us to the world space textures. They seem to automatically get resized to fit the whole map area, so it you resize the map you'd have to resize the textures too.

The world space tint texture is pretty self explanatory, controls what color to tint the grass, 127 grey means no tint. 

The world space masks texture uses the red channel to select which version of the sprites to use -- 0 is version A and anything more is version B. 

The green channel of the texture controls the sprite size -- 127 is default, with darker making the sprites smaller and brighter making the sprites larger. The vmt command $minimumspritesize controls the cutoff point for the sprites, so the sprites smaller than the specified value don't get rendered which can act as a placement mask. 

I don't know what the blue channel of this texture does, changing it had no effect on the sprites for me. 

 

All this means sprites still get placed by vbsp on map compile, so they still use displacement alpha for the placement, but the new masks can manipulate sprites size and color after map compile.

unknown.png?width=1347&height=758

 

 

Hello Yanzl, what is the name of version B? In the detail-folder there is only: detailsprites_survival.vtf. Or must I draw a virtual line in the middle that cuts this sheet into two? And you wrote: The world space masks texture uses the red channel to select which version of the sprites to use -- 0 is version A and anything more is version B. - do you mean with world space mask texture: test_massive9_grass_type.vtf?

And my last question: If I make a small map that is for example only 1024*1024 in hammer,  what will the tint.vtf and type.vtf look like?  Is the hole hammer-grid the reference and I only can paint where my playable area will be? How does the game otherwise know, how big my map is? Thanks a lot.

Link to comment
Share on other sites

  • 2 weeks later...

Hi there,
I wanted to edit this map so it can be used in other game modes since its all physical spawn points (CT&T) are at the same location. I edited them did all new locations for CT and T but cant seem to get it compiled. I don't know whats the problem I don't even get an error message after trying. If some of you is willing to just compile the map for me I will be verry thankful. The log changed twice since the first try here is the latest.

log.txt

Link to comment
Share on other sites

  • 1 year later...
On 12/12/2018 at 8:33 PM, Yanzl said:

That brings us to the world space textures. They seem to automatically get resized to fit the whole map area, so it you resize the map you'd have to resize the textures too

Yanzl, can you create those world space textures from the radar? In other words, does the radar form a 1:1 reference for the worldspace textures, or do you need to calculate the size in a different way?

Link to comment
Share on other sites

I haven't found a reliable way to make it, when I last used it I took the radar image with some high visibility markers drawn on top and scaled it in photoshop, exported and tweaked until it lined up. 

It seems that it stretches the texture across all the displacements in the map, including the 3d skybox as if it was in the main part of the map. 

Link to comment
Share on other sites

  • 8 months later...

(sorry for necro, but me and I'm sure some other people sometimes refer back to this thread occasionally when doing detail stuff, since there's yet a page on the VDC.)

So I've done some testing on the world space masks and how exactly they line up with your hammer grid.

Scenario One: Square Map

This is pretty simple. Your tint/type mask is a square texture, and Source creates a bounding box around your map. If your map is square, this works out pretty simple and your world space mask will cover the entire map. It is aligned to the bottom left of the bounding box created (when looking down from the 2d top view in Hammer).

Scenario Two: 'L' shaped map

This is pretty similar to the square map - Hammer creates a bounding box around your map and aligns the world space mask to the bottom left. Even if your map has the corner of the 'L' in the top right, your world space mask is still aligned to the bottom left corner of your maps bounding box.

Scenario Three: Rectangular Map

The world space masks are still aligned to the bottom left of your maps bounding box, however it's important to note that they do not stretch aspect ratio!

Scenario Four: Unconnected sections

If your map has different sections (completely separated by void/skybox), a bounding box is created over your whole map and the tint mask is still aligned to the bottom left.

Scenario Five: Map with large amounts of 'void' at the borders.

So I've talked a lot about the bounding box of your map, however its also important to note that this bounding box is only created from the corners of textured displacements - the void does not count! This means if your map has a box skybox from one corner of the hammer grid to the other, but only has one small displacement in the middle, the bounding box only counts for that displacement.

Scenario Six: 3d skybox next to your main map (not above or below)

If there is a sky_camera in part of your level, that part of the level does not count towards the bounding box created. This means you don't have to put your 3d skybox under or below your level and it's perfectly fine being next to it. It's also important to note that I'm not sure exactly how the world space masks line up with 3d skybox, seems to be a bit different from a regular level (but who's gonna put detail sprites in the 3d sky anyway lol).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
 Share

  • MapCore on Discord

  • Our picks

    • Mapcore X Prodeus Winners Announced!
      The winners of Mapcore X2 Prodeus 
      1st place: Paws [ Retail Therapy ]
      P-link: m-MC0iuUs2j6

      - $1,500.00 USD 
      - One year of Humble Choice 
      - Excalibur Shotgun and Gauntlets (skins)
      - Biker Gloves (skin) 
      - Special winners role on the Prodeus Discord
       



       

      2nd Place: Grays [ Firebase Kodai ]
      P-link: m-5J9cCzaepH

      - $1000.00 USD 
      - 1 month to Humble Choice 
      - Excalibur Gauntlets + Biker Gloves (skins) 
      - Special winners role on the Prodeus Discord
       


       

      3rd Place: Vladd [ Maximum Menace ]
      P-link: m-9yZfaAliyx

      - $500.00 USD 
      - 1 month to Humble Choice 
      - Biker Gloves (skin)
      - Special winners role on the Prodeus Discord
       


       

      All of the winners will also be showcased on our Youtube channel, and because we had so many amazing entries, we’ll be showcasing parts of our Staff Picks too. 

      We want to thank the wonderful folks over at Mapcore for hosting this sick competition, and a big ol shoutout to our sponsor Humble Games (who publish Prodeus), for making a large contribution to our prize pool this time around. 

      Looking forward to the next competition already! Maybe will do a coop one with teams allowed? WHO KNOW!? Can't wait, see you then!
       
      • 2 replies
×
×
  • Create New...