Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Untitled (Zombienation) - 2D survival zombie shooter  (Read 43711 times)

0 Members and 1 Guest are viewing this topic.

Estivo

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Email
Re: Zombination - 2D survival zombie shooter
« Reply #30 on: December 15, 2013, 11:02:04 pm »
http://www.youtube.com/watch?v=2mjra328SWc&feature=youtu.be

Grimsh look at that ;) It's near if you know what I mean ;)

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Re: Zombination - 2D survival zombie shooter
« Reply #31 on: December 16, 2013, 02:56:47 am »
Aw yeah, love when you talk dirty! I want to see some putrefactive meat :D

KarmaPolice

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Zombination - 2D survival zombie shooter
« Reply #32 on: December 26, 2013, 10:59:58 pm »
It looks really nice. Are you using vanilla SFML, without manual OpenGL? What are you using for that sexy lightning?

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Zombination - 2D survival zombie shooter
« Reply #33 on: December 26, 2013, 11:52:00 pm »
What are you using for that sexy lightning?

I do believe he is using a custom version of LTBL.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Estivo

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Email
Re: Zombination - 2D survival zombie shooter
« Reply #34 on: December 27, 2013, 01:04:16 am »
What are you using for that sexy lightning?

I do believe he is using a custom version of LTBL.

Yep. It's LTBL with some minor modifications in blending mode.

Estivo

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Email
Re: Zombination - 2D survival zombie shooter
« Reply #35 on: December 27, 2013, 08:19:32 pm »
http://i.imgur.com/YGOoaP9.jpg



Texture splatting inside editor. Little thing that made me happy ;) Everything looks ugly ;/ Sorry but I have to find graphic.

Estivo

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Email
Re: Zombination - 2D survival zombie shooter
« Reply #36 on: December 28, 2013, 06:17:32 pm »


7 terrain sectors (512x512 each). Poor preformance because I used 14 renderTextures. I'll fix it and maybe I will post video from editor.

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Re: Zombination - 2D survival zombie shooter
« Reply #37 on: December 28, 2013, 06:25:48 pm »
When can we shoot some zombies? :p

Estivo

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Email
Re: Zombination - 2D survival zombie shooter
« Reply #38 on: December 28, 2013, 07:09:45 pm »
Never!  when I decide how to implement path finding and write it ;)

Estivo

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Email
Re: Zombination - 2D survival zombie shooter
« Reply #39 on: December 30, 2013, 12:04:30 am »
https://www.youtube.com/watch?v=4A_sFggNczw

Hah optimized texture splatting. 4 terrains with 4 render textures each 1024 x 1024. Now only export and ingame import ;D

OutlawLee

  • Jr. Member
  • **
  • Posts: 50
  • This is my personal text. Dont read it.
    • View Profile
    • Email
Re: Zombination - 2D survival zombie shooter
« Reply #40 on: December 30, 2013, 03:47:50 pm »
game looks awesome, those lighting/lights are really cool, im just starting so i dont know how to do it, i just add tiles, thats all. anyways, good job :D any time releasing soon ?

Estivo

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Email
Re: Zombination - 2D survival zombie shooter
« Reply #41 on: December 30, 2013, 04:57:07 pm »
As soon as possible ;)
It's not hard as it looks like. You only have to write shader which will splat your textures.

uniform sampler2D texMap;
uniform sampler2D terrainTex1;
uniform sampler2D terrainTex2;
uniform sampler2D terrainTex3;
uniform sampler2D terrainTex4;
uniform float overlap;

void main()
{
        vec4 map = texture2D(texMap, vec2(gl_TexCoord[0].x,gl_TexCoord[0].y));
        vec4 tRed = texture2D(terrainTex1, gl_TexCoord[0].xy*overlap);
        vec4 tGreen = texture2D(terrainTex2, gl_TexCoord[0].xy*overlap);
        vec4 tBlue = texture2D(terrainTex3, gl_TexCoord[0].xy*overlap);
        vec4 tAlpha = texture2D(terrainTex4, gl_TexCoord[0].xy*overlap);
        vec4 t;
        t.rgb = (tRed.rgb * map.r) + (tGreen.rgb * map.g) + (tBlue.rgb * map.b));
        t.a = 1.0;
        gl_FragColor = t;
}

As you can see I don't use alpha channel. I made global terrainTex[3] nad add it at begine to shader. Each terrain sector have one texMap and when I draw terrains in editor I set texMap for actual terrain's texMap and draw it with shader. This is how it goes

        shader.setParameter("texMap", finalTexture.getTexture());
        target->draw(finalSpr,&shader);
I think I made it clear for you ;)

Estivo

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Email
Re: Zombination - 2D survival zombie shooter
« Reply #42 on: January 04, 2014, 11:16:22 pm »
https://www.youtube.com/watch?v=wVJQlENKEN4

Huge step in Zombienation development ;) Grimshaw when I add "brain" to zombies, then you will be able to play demo :D

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Re: Zombination - 2D survival zombie shooter
« Reply #43 on: January 04, 2014, 11:56:51 pm »
Brainify please!! :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10846
    • View Profile
    • development blog
    • Email
Re: Zombination - 2D survival zombie shooter
« Reply #44 on: January 05, 2014, 12:32:04 am »
Oh wow! This looks really amazing, especially seeing what you've all done with the editor! :o
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything