besprutad Posted November 17, 2015 Report Posted November 17, 2015 (edited) Hello! Im working on a map and I have run into a problem. My skybox is glitching a bit. When I put transparent textures, such as trees, in front of displacement mountains the mountains get rendered first and i looks weird. I'm posting some images to show you what I mean.1) http://postimg.org/image/tty2vw9e1/ - Ingame CS:GO2) http://postimg.org/image/70idjg4wh/ - Ingame CS:GO3) http://postimg.org/image/l5fj27j49/ - Inside hammer / Normal vs displacement4) http://postimg.org/image/xwlw29dat/ - Inside hammer / overviewThanks__________Fixed: The clouds collided into the ground and glitched. Edited November 17, 2015 by besprutad Quote
hgn Posted November 17, 2015 Report Posted November 17, 2015 (edited) Hey, I believe the issue causing this error is the fog dome that intersects with the trees, I am assuming the tree layers are using the $translucent tag in the VMT, which can create some artifacts when intersecting other / same materials with the same $translucent tag. Here is an graphic from valves docs, illustrating the problems that can happen with it: To me, it doesn't look like the displacement mountains are being drawn over the trees, just the skydome model being buggy with the translucency in the trees.Just try and remove that fog skydome model thing, and test again. Edited November 17, 2015 by Teroust Grammatical Issues Quote
Klems Posted November 18, 2015 Report Posted November 18, 2015 (edited) I had so much troubles with this on the 3D sky of de_bourg, ffsMy skydome was a model at first but it showed through the trees. So I changed the skydome for a displacement dome and it fixed some issues. The trees (func_brush) worked fine but the high voltage line (displacement) didn't. So I switched the high voltage displacement with a bunch of func_brush hacked together and it works fine now.Use alphatest when you can ($alphatest 1, $translucent 0, don't forget $allowalphatocoverage 1). Alphatested textures have absolutely ZERO problems of Z-ordering and it WILL fix everything. However I wouldn't use alphatest on a tree textures like that, you use it when you need a well defined silhouette (esp behind your fog). Don't use translucent textures on displacement unless you're sure there isn't any alpha textures in front of/behind it. If you have translucent textures on a brush, transform your brush into a func_brush. Changing the origin, the number of func_brush or the brush tied to the entity MIGHT change the rendering order. It's probably best to use a brush cylinder rather than a displacement.There isn't any real "solution", the best way would be to convert the 3D skybox into a model and tweak the rendering order inside the model itself. You can't do that in hammer. All you can do is change stuff around until it fix itself, sorry. Edited November 18, 2015 by Klems Quote
besprutad Posted November 18, 2015 Author Report Posted November 18, 2015 Problem already solved but thanks anyway. I experimented for an hour and found out that the clouds were causing the problem, just like you say. Quote
Recommended Posts
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.