Flexman Posted May 8, 2010 Share Posted May 8, 2010 I was wondering if anyone had any ideas on how to blend walls of an impact crater against different terrain textures. Alpha test/blending doesn't work so well as you can see 'under' the crater mesh. Using the vertex shader to contour it to the terrain works fine (below used as "mesh_contour.vert") #define LW_DIFFUSE texture0 #define LW_UPNORMALS #define LW_MESHLAYER Include "mesh.vert" It's the texture blending that's got me a bit stumped. Any suggestions folks? Quote 6600 2.4G / GTX 460 280.26 / 4GB Windows 7 Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT Tricubic Studios Ltd. ~ Combat Helo Link to comment Share on other sites More sharing options...
Canardia Posted May 8, 2010 Share Posted May 8, 2010 You can make a seperate mesh for the outer side of the crater with an alpha transparent texture so that it blends with anything. The transparent mesh needs to be put into the transparent world. I've done the same for character hairs and furry clothes, and it works fine. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
wailingmonkey Posted May 8, 2010 Share Posted May 8, 2010 I'd probably try something like this: I've shared a UV-mapped version of the above if you want it here: blast crater (no .gmf ... just the .obj) Quote Vista Ultimate SP1 64bit | Q6600 2.40 GHZ | 8GB RAM | 320MB Nvidia 8800GTS Link to comment Share on other sites More sharing options...
Flexman Posted May 9, 2010 Author Share Posted May 9, 2010 Thanks gentlemen for both interesting suggestions. Anything that's co-planer is out of the question you get a lot of zbuffer issues around the outer regions of the map. Lot of flickering around the base. We did find a compromise that works quite well. Using mesh_contor.vert with mesh_diffuse_alphatest_terrainnormals_terraincolor.frag. It blends the base reasonably well and fits it to the terrain without much flicker. Adding some rocks and other relief debris around it is a good idea. Thanks all. 1 Quote 6600 2.4G / GTX 460 280.26 / 4GB Windows 7 Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT Tricubic Studios Ltd. ~ Combat Helo Link to comment Share on other sites More sharing options...
Jardar Posted May 9, 2010 Share Posted May 9, 2010 nice looking craters that Quote Win7: 3.4GHz i7, 16Gb RAM DDR3, Radeon HD 6970 2048MB Link to comment Share on other sites More sharing options...
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.