Rekindled Phoenix Posted June 27, 2011 Share Posted June 27, 2011 Are there examples within the community that draw a circle using the cameras perspective? Like the sandbox paintbrush, I need to display a radius around an object using DrawLine() or something similar. I've looked at how this wiki link does it, possibly transpose the vectors. How would you draw a circle aligned to the terrain? Quote Link to comment Share on other sites More sharing options...
Canardia Posted June 27, 2011 Share Posted June 27, 2011 I would use CreateSphere and paint it with a semi-transparent material, or make a ring mesh if it must be flat and hollow. 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...
macklebee Posted June 27, 2011 Share Posted June 27, 2011 you could use a decal that follows the shape of the terrain. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Flexman Posted June 27, 2011 Share Posted June 27, 2011 A circular 'ring' mesh that uses the same vert shader as vegetation to keep it aligned to terrain. Offset it above the origin a bit. There used to be a terrain decal in downloads somewhere that might be good enough. Another approach is to use a spotlight with a material to project a texture image (might need to replace the spotlight.gmf model with something that is invisible). Good for RPG style spell effects. 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...
macklebee Posted June 27, 2011 Share Posted June 27, 2011 A circular 'ring' mesh that uses the same vert shader as vegetation to keep it aligned to terrain. Offset it above the origin a bit. There used to be a terrain decal in downloads somewhere that might be good enough. yes, Gandi's decal in the script asset was what i was referring to... unfortunately, the link is dead at the moment. Hopefully Gandi can upload it again. It works nicely. Unfortunately, it will not work without modifying it slightly due to this bug:http://www.leadwerks.com/werkspace/tracker/issue-187-terrain-resolution-not-working/page__gopid__859#entry859. You would just have to hardcode the terrain resolution into the script to get it to work. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted June 27, 2011 Author Share Posted June 27, 2011 Thanks everyone for the suggestions! I will have to experiment to see what gives the best results Anyone know how Josh accomplishes this within the editor? Quote Link to comment Share on other sites More sharing options...
Rick Posted June 27, 2011 Share Posted June 27, 2011 http://www.leadwerks.com/werkspace/topic/1250-plane-to-hug-terrain/page__hl__mesh+terrain__st__60 Here is a big giant thread talking about ways of doing it. Quote 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.