Show Posts
|
|
Pages: 1 2 [3] 4 5 ... 8
|
|
41
|
Developer / Technical / Re: Terrain rendering methods
|
on: December 27, 2012, 10:41:28 AM
|
You can use texture masking. So, you have a texture (RGBA), each channel = diffrent texture type. So, for example a red channel = grass texture. Then in the shader you sample the mask texture, with a texture atlas. Like : //pseudocode vec4 mask = texture2D(maskTex,coords); vec4 grass = texture2D(grassTex,coords * vec2(100.0)); grass.alpha = mask.r; vec4 dirt = texture2D(dirtTex,coords * vec2(100.0)); dirt.alpha = mask.b; /// add other textures (up to 4 supported) out = mix_colors(grass,dirt,...);
This way you can easily edit how the terrain will be textured, using any image editor. This method supports only 4 diffrent texture types, but it shouldnt be a problem to support more. I multiply the tex coords * 100.0 for the terrain textures - this way the textures are tiled, so they kinda look like they have high resolution.
|
|
|
|
|
43
|
Developer / Technical / Re: The happy programmer room
|
on: December 25, 2012, 04:06:50 AM
|
Game.ply.moving = !(!(l ^ r) & !(u ^ d)); I made this crazy little thing that only moves you when you... idk how to explain it You won't need an obfuscator it seems  It's shorter than many if conditiors, definately faster too some meaningful names on those variables could help Left right up and down for player, pretty much what it does is it prevents you from moving left and right or up and down at the same time but it also allows you to move up or down when you are holding both left and right at the same time and vice versa ah sweet! that's pretty awesome I might be stupid but Game.ply.moving = !(!(l ^ r) & !(u ^ d)); shouldn't it be : Game.ply.moving = ((l ^ r) & (u ^ d)); Like the negations kinda do nothing.
|
|
|
|
|
46
|
Developer / Business / Re: Is there a free solution to deliver personal download links?
|
on: December 11, 2012, 12:57:58 PM
|
|
Well, you could write a system that generates an one time download link, and sends it via email.
edit: Having a limited downloads is really simple to write. Like in php : get number of downloads from somewhere, and ++ it, if its > x - redirect to some page if the number < x : set content-type/disposition to attachment/whatever include the .exe
|
|
|
|
|
53
|
Player / General / Re: Fight Thread Pollution! Post here if it's not worth a new thread!!!
|
on: December 06, 2012, 04:33:44 AM
|
I'm thinking of buying a second monitor to my computer. Is there anything I should know? I think I should buy one with same resolution as my main monitor.
Just use whatever monitor you'd like, that shouldn't be a problem. Resolution doesn't matter. Dependant on what you need it for, my favourite setup is 3 monitors : 2 monitors are small, panoramic but rotated 90degrees (so they are perfect for documents / internets etc) and 1 monitor, in the center is my main monitor for games / whatever im doing.
|
|
|
|
|
54
|
Developer / Art / Re: 3D thread
|
on: December 06, 2012, 02:04:36 AM
|
It's blenders post processing -> edge. The game I'm writing probably won't have outlines, as I aim for android and I want it to work on crappy phones. Here's a screen from the game : 
|
|
|
|
|
57
|
Developer / Art / Re: 3D thread
|
on: December 01, 2012, 03:23:18 PM
|
 A quick and crappy blockout for a level I'm making for a crappy generic android zombie killing game. Needs more variety though. like a banana tree.
|
|
|
|
|
58
|
Developer / Art / Re: 3D thread
|
on: November 27, 2012, 11:28:51 AM
|
|
Wow it looks like models from goldeneye 64 have more triangles than mine.
|
|
|
|
|
60
|
Developer / Art / Re: 3D thread
|
on: November 15, 2012, 11:57:55 PM
|
(..)
Wow, thats glorious ! What are the models for ? some sort of zeppelin?
|
|
|
|
|