Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: 1 [2]
  Print  
Author Topic: Meadow 4  (Read 8483 times)
AriusEso
Customers
Community Member
*****
Posts: 940

Esoteric


« Reply #20 on: January 11, 2009, 05:40:04 PM »

WOW! Great landscape and grass! how did you manage to make that grass?? I dont seem to know how to make good looking grass :s can you send me the grass texture to see it and try to make one that looks like it? (I presume that the model used for grass is a crossplane) It'll be very kind. and btw how many minimeshes are rendered in that screenshot?

Thanks in advance AriusEso.  Smiley

In that screenshot, I dunno. In total there are 3000 grass meshes and 30 flowers. The flowers are simple planes, the grass is not cross-hatch but rather a cylinder( because I am going to be per-pixel lighting and cross-hatch does not work so well ).

You can get the textures for both in the Meadow v1 download: http://tv3dsamples.blogspot.com/2008/04/arius-meadow-demo-c.html
Logged

-...-

nadjibus
Community Member
*
Posts: 250

Heavy Dev Process


« Reply #21 on: January 12, 2009, 06:27:33 AM »

Thanks alot Arius  Smiley
Logged

AriusEso
Customers
Community Member
*****
Posts: 940

Esoteric


« Reply #22 on: January 12, 2009, 12:24:59 PM »

Here is a short video of the grass( now windy, but still not per-pixel lit ). As you can see I am having problems with some of the things being screen-space and post( like the shadows ). It overlays the shadows of objects covered by grass on top of the grass, ugh, it kind of spoils the visuals. But well, you can see in the vid. It's all running on an 8500GT, so please ignore the slight jolts etc etc. It should perform much better on a gaming card instead of this office crap.

Video: http://uk.youtube.com/watch?v=SN7IwC7HJfs

Here is the current version of the shader, of course, the final version will have normal mapping also.

Code:
float4x3 World[52] : MINIMESH_WORLD;
float4x4 ViewProj  : VIEWPROJECTION;
float4   Colour[52]: MINIMESH_COLOR;
float    Time      : TIME;
texture  Diffuse   : TEXTURE0;

float    WindSpeed = 2.0f;
float2   WindDir   = float2(1, 0.4f);

sampler2D DiffuseSample = sampler_state
{
Texture   = (Diffuse);
MINFILTER = LINEAR;
MAGFILTER = LINEAR;
MIPFILTER = LINEAR;
};

struct VertexIN
{
float4 Position: POSITION;
float3 Normal  : NORMAL;
float2 UV      : TEXCOORD0;
float2 Index   : TEXCOORD3; //This is ALWAYS on 3.
};

struct FragmentIN
{
float4 Position: POSITION;
float2 UV      : TEXCOORD0;
float4 Colour  : COLOR0;
};

void VertexProgram(in VertexIN IN, out FragmentIN OUT)
{
float Sine           = sin(Time * WindSpeed);
float4x3 WorldMatrix = World[IN.Index.x];
float3   WorldPos    = mul(IN.Position, WorldMatrix);
WorldPos.xz         += Sine * (IN.Position.y * 0.5f) * WindDir;
OUT.Position         = mul(float4(WorldPos, 1), ViewProj);
OUT.UV               = IN.UV;
OUT.Colour           = Colour[IN.Index.x];
}

float4 FragmentProgram(in FragmentIN IN): COLOR0
{
float4 Pixel   = IN.Colour * tex2D(DiffuseSample, IN.UV);
Pixel.a        = tex2D(DiffuseSample, IN.UV).a;
return Pixel;
}

technique render
{
pass pass0
{
VertexShader = compile vs_2_0 VertexProgram();
PixelShader  = compile ps_1_1 FragmentProgram();
}
}

Logged

-...-

AriusEso
Customers
Community Member
*****
Posts: 940

Esoteric


« Reply #23 on: January 12, 2009, 03:22:58 PM »

Well, I can't fix that visual bug without starting again really Sad. Anyway, I've decided to release this now as I'm kind of bored of it and I want to do things like depth-based soft particles and screen-space global illumination. So here it is, the code has no license on it at all - you can do whatever you want with it.

[click for 1920x1080]


Code:
Keys:

WASD  = Move.
Mouse = Look.

C     = Pick up glow ball.
Space = Throw glow ball.

You will need the C++ DLL installed and registered.

http://esoteric-float.co.uk/releases/meadow4/mdo4.rar
Logged

-...-

Shargot
Customers
Community Member
*****
Posts: 166


WWW
« Reply #24 on: January 12, 2009, 05:48:52 PM »

Many thanks! It is wonderful)
Logged

" width="130" height="45" border="0
Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #25 on: January 12, 2009, 06:39:22 PM »

Looks cool, but as usual (and as expected) it runs at like 2 FPS on my machine.
A venerable GeForce 7600Go. Embarrassed
Logged

rootsage
Customers
Community Member
*****
Posts: 444

Gamer Enthusiast


WWW
« Reply #26 on: January 12, 2009, 07:14:08 PM »

Yay Cheesy This is cool, thanks Arius, I am going to use your SSAO code for my editor Cheesy
Logged

while( !( succeed = try_again()) );
------
10 print "Is this recursive?"
20 goto 10
AriusEso
Customers
Community Member
*****
Posts: 940

Esoteric


« Reply #27 on: January 12, 2009, 07:26:58 PM »

Yay Cheesy This is cool, thanks Arius, I am going to use your SSAO code for my editor Cheesy

Sweet, though, be a bit weary of it. It's a little buggy. Smiley
Logged

-...-

Pages: 1 [2]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks