Issues with deformVertexes autosprite2 and alphashadow - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10) +--- Forum: Xonotic - Editing and Concept Art (https://forums.xonotic.org/forumdisplay.php?fid=11) +--- Thread: Issues with deformVertexes autosprite2 and alphashadow (/showthread.php?tid=6191) |
Issues with deformVertexes autosprite2 and alphashadow - kristus - 05-14-2016 Hi there. I was wondering if anyone could clue me in on what is the issue for me. This is not for Xonotic. But the game I am making it for is working on Darkplaces all the same. So I was hoping you all could share some of your expertise. I'm working on a map and I got these light shafts that are meant to use "deformVertexes autosprite2". And they work, sort of. But when I move around the map. They tend to spaz out and reorient themselves violently. I can't seem to find any information on this and I know it should work because the map I am working on is a conversion project. So the material and actual function has worked previously. But not when I make the compile myself. (That being said, I don't have the source files so I had to make a decompile before, so it's possible something is missing, but rest assured I do have the permission of the original author to make this conversion). Here they are in place. But at some points, they flick out of position and loose orientation. Here is the material declaration for the light shaft. Code: textures/toxicity/beam1 Another similar issue, is alphashadows. I just can't get them to work. Doesn't look like the textures which are intended to do it is letting through the light at all. But they are as far as I know properly alpha shaded. All I can think of right now is that they are in TGA, and possibly it would require them to be in JPG? Here is the material declaration for the alpha mapped texture. Code: textures/decals/grid2b RE: Issues with deformVertexes autosprite2 and alphashadow - Maddin - 05-15-2016 Can you provide some screenshots of those light shafts inside NetRadiant? Or even better post the map-file (if you are allowed to)? Same for the brush which should cast alpha-shadows. Make some screenshots inside NetRadiant. Which textures has the brush? You need a TGA file to allow for transparency. JPG files do not support transparency. This is a shader from Xonotic which produces alphashadows, for reference: Code: textures/ex2x/base-chainlink RE: Issues with deformVertexes autosprite2 and alphashadow - kristus - 05-17-2016 Thanks for taking time to help. I figured out the issue with the alpha shadows. It was apparently the editortexture that was being used as alpha map. And my texture didn't have that in the editor image. So no alpha shadows. Still not sure what I am doing wrong with the sprites though. Those I haven't even done anything with from the original. They are just simple brushes with nodraw on all sides but one. Then the sprite texture on the last side. RE: Issues with deformVertexes autosprite2 and alphashadow - Maddin - 05-17-2016 Ok, nice. Can you still post some screenshots? I'd like to know how the brushes are shaped and angled before I make any suggestions. Also, this is worth sharing if you haven't already read it, from the Q3Map2 shader manual: Quote:deformVertexes autosprite RE: Issues with deformVertexes autosprite2 and alphashadow - kristus - 06-03-2016 Sorry for not responding earlier. But it turned out to be a compiler bug with my version of Net Radiant. I updated and the issue was resolved. RE: Issues with deformVertexes autosprite2 and alphashadow - kristus - 06-04-2016 My mistake. Seem like I am having the same issue still. Only not as prevalent as before. You can download a copy of the map here: http://www.doglike.org/temp/toxicity.map RE: Issues with deformVertexes autosprite2 and alphashadow - Maddin - 06-05-2016 I had a look at your map and I'm having the exact same problem. Though I can't reproduce this in another map. I have to admit I have no idea what causes this... Removing some sprites doesn't solve it (thought it may be a limitation, but it isn't). For some reason the view position and angle matters. Depending on what your view-angle to the sprite is it deforms weirdly or behaves as expected. Important to note, the sprite geometry doesn't change then (in the case of not working correctly), it is the texture that spins around. RE: Issues with deformVertexes autosprite2 and alphashadow - kristus - 06-06-2016 Ok. That is interesting. Not the first time I have had map specific issues where something happens with a certain map just because. Maybe if I remake the brushes from scratch. |