Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411283 Posts in 69325 Topics- by 58380 Members - Latest Member: bob1029

March 29, 2024, 05:40:47 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
  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 :

Code:
//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.
42  Player / General / Re: Fight Thread Pollution! Post here if it's not worth a new thread!!! on: December 27, 2012, 10:30:28 AM

As wrong as it is using joysticks to move around (ergo console FPSes). How do kids even do it?
Meh, you can get used to it.
Also, auto-aim/aim assist.
43  Developer / Technical / Re: The happy programmer room on: December 25, 2012, 04:06:50 AM
Code:
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 Tongue

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
Code:
Game.ply.moving = !(!(l ^ r) & !(u ^ d));
shouldn't it be :
Code:
Game.ply.moving = ((l ^ r) & (u ^ d));
Like the negations kinda do nothing.
44  Developer / Technical / Re: The happy programmer room on: December 25, 2012, 03:13:15 AM
This is awesome (works in java ):
Code:

int r;
while( (r=reader.read())!=-1){

}

45  Developer / Technical / Re: The happy programmer room on: December 13, 2012, 08:18:08 AM
omg the google GSON is just AWESOME.

Loading json entity,weapon and level descriptions done Smiley
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
47  Player / General / Re: Something you JUST did thread on: December 11, 2012, 11:22:01 AM
Wrote a collision detection system for my generic zombie killing game.
48  Developer / Business / Re: Is there a free solution to deliver personal download links? on: December 11, 2012, 11:21:19 AM
I don't think that writing such system would be hard.

But links like the ones on humblebundle don't prevent piracy.
If you buy a bundle - you can share your link to other people, and they can download it too.
(steam keys are redeemable once, but it's a diffrent story)
49  Player / General / Re: Fight Thread Pollution! Post here if it's not worth a new thread!!! on: December 09, 2012, 02:15:53 PM
http://www.gamasutra.com/view/news/183065/Great_Big_War_Game_makes_83_in_first_week_on_Windows_RT.php#.UMTrbHfhisE

I knew that RT was going to take some time to get an user base, but $83 for a game that is pretty popular on other platforms is pathetic Sad
Well, this is sad Sad

Oh, I even have that game on my android, going to check it out right now.
50  Player / General / Re: Fight Thread Pollution! Post here if it's not worth a new thread!!! on: December 07, 2012, 10:53:36 PM
(...)
you're late to the party. There's a prequel by another actor that acted in Ip Man 2.
Ip Man 2 wasn't that great though.
Thanks, I'll watch it today.
The Ip Man 2 wasn't as good as Ip Man 1, but I still liked it very much.
51  Player / General / Re: Fight Thread Pollution! Post here if it's not worth a new thread!!! on: December 07, 2012, 04:28:31 PM
I've just watched Ip Man, and Ip man 2.

The movie is awesome.
Like awesome awesome awesome.

It's a chinese movie about the person who trained Bruce Lee.
52  Player / General / Re: Fight Thread Pollution! Post here if it's not worth a new thread!!! on: December 06, 2012, 12:01:13 PM
I would like one, I can pay you via paypal.

It's an awesome game btw
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 :
55  Developer / Art / Re: 3D thread on: December 05, 2012, 02:59:59 PM


Some random props I'm working on.
56  Player / General / Re: Fight Thread Pollution! Post here if it's not worth a new thread!!! on: December 03, 2012, 12:49:23 PM
I've bought an old, used PSP today.

I have replaced the analog stick AND didn't break the psp.

Great success.

pata pata pata pon.
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.
59  Developer / Art / Re: 3D thread on: November 20, 2012, 05:39:42 AM


derp
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?
Pages: 1 2 [3] 4 5 ... 8
Theme orange-lt created by panic