R Soul on 19/7/2016 at 23:29
Quote Posted by Cardia
funny every plant texture i use in this object model leaves always a thin white line on the top.
The line at the top is caused by the transparent pixels at the top beginning to blend with the opaque pixels at the bottom. When you look at a texture you'll see that each pixel is drawn as a soft square that smoothly blends with all the pixels around it. That blending also happens at the edges because the game has no way of knowing if you're trying to stretch a texture to fit a face, or if you want to repeat it.
The easiest solution is to edit the texture and make the bottom row of pixels completely transparent. That might give the objects a floating appearance so you'll need to check them in Dromed and sink them into the ground if necessary.
ZylonBane on 20/7/2016 at 01:30
Quote Posted by qolelis
Instead of a model name one can use the name of a bitmap. This will of course make the bitmap always face the camera, so it might not be good for wide groups of straws (unless maybe they are sufficiently far from the camera).
NewDark adds the ability to render bitmaps axially locked, so you can look up or down at them but they still always face the player. Just like Half-Life 2's grass sprites.
qolelis on 20/7/2016 at 05:26
Aah, yes, I forgot about the sprite "rotating" (for a lack of a better word) around the pitch axis as well; for the intended use (in this thread) one would probably want only the yaw axis, so what you are suggesting is that that can be done now!? I didn't know that.
LarryG on 20/7/2016 at 05:40
And the cost for putting 100 in-game is the same as putting 1? At least as far as the rendering engine? The 100 would chew up 100 object slots of course.
qolelis on 20/7/2016 at 06:00
That's something I ask myself too. When you first suggested sprites, what were your thoughts behind it?
Also, if using individual straws, placing a hundred of them could quickly become tedious (maybe groups of straws would work fine; the best way to find out is to try it out (and ideally compare with the alternatives)). My input is mostly theoretical, since I haven't done anything with sprites on this scale in Dark (New or not).
Cardia on 20/7/2016 at 10:27
Thank you Robin and others for suggestions, honestly i´m not a big fan of sprites, if you create a bunch of plants all together you hardly notice their thin size:
Inline Image:
https://s32.postimg.org/jdph1f1z9/dump035.jpghere i´m using 35 objects, the grass by Dale D_kaka2 using Daraan plant texture which again leaves a thin white line on the top, but luckily hardly visible.
GORT on 22/7/2016 at 04:20
Hmmm... If you want, I could take a look at the texture to see if I can get that line out. Nice looking grass by the way.
Cardia on 22/7/2016 at 08:03
Quote Posted by GORT
Hmmm... If you want, I could take a look at the texture to see if I can get that line out. Nice looking grass by the way.
Thank you Gort, i can send you some pics via pm of the wheat plants for you to check which one are suitable.
GORT on 22/7/2016 at 08:34
OK, cool. It may be just the texture itself. I'll have to check it out to know for sure.
Cardia on 22/7/2016 at 09:32
Check your pm Gort