Author Topic: What are you working on at the moment?  (Read 140878 times)

0 Members and 1 Guest are viewing this topic.

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1200
  • Karma: 230
    • View Profile
    • Homepage
Re: What are you working on at the moment?
« Reply #580 on: June 03, 2012 »
Nice effect though - I can only wonder how it was done. :o
It's a really simple technique! Just two similar transparant patterns layed over eachother, when you move, rotate or deform (like in this case) one of them out of alignment with the other you get these really cool moire patterns. The colors (which you toggle with alt) is the actual map I use for deforming one of the pattern layers (using the alpha values).

There's still some forgotten functions left in there which reveal the setup. You can rotate a layer with the sideways arrows (up and down adjust the deform strength).
« Last Edit: June 03, 2012 by Kirl »
www.kirl.nl
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: What are you working on at the moment?
« Reply #581 on: June 27, 2012 »
I'm working on a C# game involving jewels - here's an early alpha blending test:
You are our 9001st visitor.
Challenge Trophies Won:

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
Re: What are you working on at the moment?
« Reply #582 on: June 27, 2012 »
Nice looking gem, any hints on the type of game :D

I havent had much free time today, but made myself a new desktop background using blender, nothing to fancy just some dice. Was getting bored of the dwarf i had there before :P

might as well attach it as a pic  :)

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: What are you working on at the moment?
« Reply #583 on: June 27, 2012 »
It's a strategy / "board game" style game.

Cool looking dice - I'm not quite at that level yet.
You are our 9001st visitor.
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1150
  • Karma: 174
    • View Profile
    • Raizor's Dev Blog
Re: What are you working on at the moment?
« Reply #584 on: June 27, 2012 »
Coming along nicely CK. That would look lovely with some reflection/refraction :)
raizor

Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: What are you working on at the moment?
« Reply #585 on: June 27, 2012 »
I'm looking into reflection, but I didn't know OpenGL could do refraction. I need to do more research - in the meantime, I have upgraded the design to a "brilliant" cut:
« Last Edit: June 27, 2012 by combatking0 »
You are our 9001st visitor.
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: What are you working on at the moment?
« Reply #586 on: June 28, 2012 »
Reflection and refraction aren't 'built in' but there are lots of tricks to make things that look like that, including rendering the scene from different views and then using those outputs as textures with/without alpha in the main scene.

Jim
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: What are you working on at the moment?
« Reply #587 on: June 28, 2012 »
Cool tips Jim, they make sense. One day I'll be ready for graphical tricks like those. K++

I've managed to get the light source reflection working, and with the wireframe enabled, it looks close to what I want for this version.

Now to make it display a few hundred of them.
You are our 9001st visitor.
Challenge Trophies Won:

Offline Xetick

  • Atari ST
  • ***
  • Posts: 132
  • Karma: 80
    • View Profile
    • Plane9
Re: What are you working on at the moment?
« Reply #588 on: June 28, 2012 »
I'm working on a C# game involving jewels - here's an early alpha blending test:

Neat! I was working on a crystal when I noticed this old thread again. It's procedural. A proper cube map would however make mine a lot nicer. Ohh well. Now I just use the reflection vector in a perlin noise field.
Plane9 - Home of the Plane9 3d screensaver/music visualizer
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: What are you working on at the moment?
« Reply #589 on: June 29, 2012 »
Now that's the sort of effect I'm aiming for - pearlin noise you say? I've got more research to do.

I've been wrestling with the lighting settings - maybe I've been going the wrong way about it.
You are our 9001st visitor.
Challenge Trophies Won:

Offline Xetick

  • Atari ST
  • ***
  • Posts: 132
  • Karma: 80
    • View Profile
    • Plane9
Re: What are you working on at the moment?
« Reply #590 on: June 29, 2012 »
The lightning is torrance sparrow but I would guess for such a flat surface a simple blinn-phong would do. Adding in the reflection vector to "something" helped quite a bit with the effect. Something in my case was a 3d noise since I have that at hand. It's just to break up the completely flat uniform look. If you want it to look better however I would say go with a cubemap since that would be the proper way.
Plane9 - Home of the Plane9 3d screensaver/music visualizer
Challenge Trophies Won:

Offline Xetick

  • Atari ST
  • ***
  • Posts: 132
  • Karma: 80
    • View Profile
    • Plane9
Re: What are you working on at the moment?
« Reply #591 on: July 06, 2012 »
Now that's the sort of effect I'm aiming for - pearlin noise you say? I've got more research to do.

I found some code that maps a reflection vector to a 2d texture. Seems quite ok in most cases so this allows you to skip the cubemap if your lucky and just use some diffuse texture for reflections instead of a perlin noise or a cubemap.

Code: [Select]
float3 reflectV = reflect(viewdir, normal);
float yaw = 0.5 - atan( reflectV.z, -reflectV.x ) / PI2;
float pitch = 0.5 - asin( reflectV.y ) / PI;
float2 lookup = float2( yaw, pitch);
Plane9 - Home of the Plane9 3d screensaver/music visualizer
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17378
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: What are you working on at the moment?
« Reply #592 on: July 06, 2012 »
K+
Shockwave ^ Codigos
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: What are you working on at the moment?
« Reply #593 on: July 12, 2012 »
I'm still looking into Xetick's techniques for my gem game, but work has asked me to put together a semi-complicated texture map test - so here are the first results.

Demo and sources will follow in a dedicated topic soon:
You are our 9001st visitor.
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1150
  • Karma: 174
    • View Profile
    • Raizor's Dev Blog
Re: What are you working on at the moment?
« Reply #594 on: July 12, 2012 »
I'm still looking into Xetick's techniques for my gem game, but work has asked me to put together a semi-complicated texture map test - so here are the first results.

Demo and sources will follow in a dedicated topic soon:

Looking cool CK. Have you had a change to look at lights in OpenGL yet? They really can bring a scene to life.
raizor

Challenge Trophies Won:

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1200
  • Karma: 230
    • View Profile
    • Homepage
Re: What are you working on at the moment?
« Reply #595 on: July 13, 2012 »
Looks great CK!  :clap:
www.kirl.nl
Challenge Trophies Won:

Offline Xetick

  • Atari ST
  • ***
  • Posts: 132
  • Karma: 80
    • View Profile
    • Plane9
Re: What are you working on at the moment?
« Reply #596 on: July 14, 2012 »
Just completed some updated to my particle system and also found a rather simple shader to generate a classic 'star' shader particle.
Uses air damping, noise based flow field, glow, FXAA and no textures

[youtube]saDl6ayAXEs[/youtube]

Plane9 - Home of the Plane9 3d screensaver/music visualizer
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1150
  • Karma: 174
    • View Profile
    • Raizor's Dev Blog
Re: What are you working on at the moment?
« Reply #597 on: July 14, 2012 »
Looks very nice Xetick. Curious to know how many particles there are in that vid and what the maximum is.
raizor

Challenge Trophies Won:

Offline Xetick

  • Atari ST
  • ***
  • Posts: 132
  • Karma: 80
    • View Profile
    • Plane9
Re: What are you working on at the moment?
« Reply #598 on: July 14, 2012 »
Looks very nice Xetick. Curious to know how many particles there are in that vid and what the maximum is.

Thanks. In that video there are about 400 alive at any time. Max with that exact scene seems to be around 30000 while still being over 60Hz. The noise field that is being evaluated for every particle does use some cpu.
Plane9 - Home of the Plane9 3d screensaver/music visualizer
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1150
  • Karma: 174
    • View Profile
    • Raizor's Dev Blog
Re: What are you working on at the moment?
« Reply #599 on: July 14, 2012 »
Cool. Thanks Xetick :)
« Last Edit: July 15, 2012 by Raizor »
raizor

Challenge Trophies Won: