Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (TedMar), 1,420 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 3 of 4 1 2 3 4
Re: waving grass [Re: indiGLOW] #17739
11/21/03 05:45
11/21/03 05:45
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
thats a great idea
Maybe this will help (from latest betareadme)

effect_load(material,string name) (Commercial & Pro)
Loads an effect file in Microsoft .fx format from the work folder
into the given material, and applies to effect to all models and
terrain that have this material sssigned. This instruction can be
used to edit effects and shaders in real time and observe the result
immediately in the game.


Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: waving grass [Re: Drew] #17740
11/21/03 20:56
11/21/03 20:56
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline
Serious User
indiGLOW  Offline
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
That seems pretty good, so you can see how your changes effect the....effect....without having to relaunch it all the time. I would guess that you could link this to a image reader that maps the picture (above) from top left to bottom right and uses the alpha to calculate where to place the grass models....

i.e the models that the waving grass is attached too, is deployed according to the image...... The main problem I can see is the z position, i.e do the grass models have a -z until hit something, to place them on the terrain, of can you compare x,y position from the image with the z position of the terrain...and use them to deploy the grass/shrubb models?

I am sure I could get this to work, and may do so yet, but with my current work load it is likely to take some time....

This sounds like a job for the V man....


The Art of Conversation is dead : Discuss
Re: waving grass [Re: indiGLOW] #17741
01/09/04 13:57
01/09/04 13:57
Joined: Sep 2003
Posts: 6
sboyette Offline
Newbie
sboyette  Offline
Newbie

Joined: Sep 2003
Posts: 6
Sorry to post a new quesiton..
I have added the grass to my terrain, and I can see it moving..
however it is all black..
how do I, and where is the targa image that is to be used defined?

Regards,
Sean

Re: waving grass [Re: sboyette] #17742
01/10/04 10:35
01/10/04 10:35
Joined: Oct 2001
Posts: 395
Arlington Heights, IL USA
cbw Offline
Senior Member
cbw  Offline
Senior Member

Joined: Oct 2001
Posts: 395
Arlington Heights, IL USA
Hmm, I had this problem as well, I believe I removed these lines:

mul_x2 r0.rgb,r0,v0 // modulate with lighting

and

Texture[0]=<texSkin1>;

Just comment them out, it should work


Greg Szemiot, Lead Designer, Orb Crossbeam Studios Entertainment
Re: waving grass [Re: cbw] #17743
01/27/04 00:52
01/27/04 00:52
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Hi,
umm, because you were just talking about lighting problems there... what can I do to control the brightness of the model with the effect assigned? The effect works great (nice work ventilator ) but the models that use it don't seem to be influenced by any level lighting, ambient parameters oder dynamic lights. So what can I do if I simply want it to be a little darker?


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: waving grass [Re: Thomas_Nitschke] #17744
01/29/04 21:47
01/29/04 21:47
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Hey come on, noone!?
This is really important to me, doesn't anyone know how to control the brightness with this effect assigned?
To go a little off-topic, I guess the board's sloooow speed is most likely to be the reason for this massive "posting-break" but... come on let's keep the community alive!
Post it!
Back to bussiness:
ventilator, the matrix has you. In fact it's searching you, where are you? need help!



Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: waving grass [Re: Thomas_Nitschke] #17745
01/29/04 22:05
01/29/04 22:05
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
either do the wanted lighting calculations with <veclight> and everything taken into account in the vertex shader and pass it to the pixelshader as oD0 or (the easier solution) remove the pixelshader and use the directx settings from the second post of this thread instead:

http://www.conitecserver.com/ubbthreads/showflat.php?Cat=&Number=297998&page=1&view=collapsed&sb=5&o=&fpart=1

should work but i haven't tested this!

Re: waving grass [Re: ventilator] #17746
01/29/04 22:12
01/29/04 22:12
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Hi,
now the matrix has you
Nice quick answer, thanks a lot! Could you maybe explain this <veclight> thing? actually I'm quite new to shaders...
And, btw, I need the pixelshader for the waving effect.


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: waving grass [Re: Thomas_Nitschke] #17747
01/29/04 22:17
01/29/04 22:17
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
the vertex shader does the waving effect!

...i would have to experiment with the lighting calculation and don't have the time at the moment...

Re: waving grass [Re: ventilator] #17748
01/29/04 23:15
01/29/04 23:15
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Oh does it???
Well what then do you need the pixelshader for?


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Page 3 of 4 1 2 3 4

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1