4 registered members (ozgur, Ayumi, VHX, monarch),
1,161
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
Serious User
|
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.
|
|
|
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
Serious User
|
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: cbw]
#17743
01/27/04 00:52
01/27/04 00:52
|
Joined: Jun 2003
Posts: 1,017 Germany
Thomas_Nitschke
Senior Developer
|
Senior Developer
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
Thomas_Nitschke
Senior Developer
|
Senior Developer
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: ventilator]
#17746
01/29/04 22:12
01/29/04 22:12
|
Joined: Jun 2003
Posts: 1,017 Germany
Thomas_Nitschke
Senior Developer
|
Senior Developer
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: ventilator]
#17748
01/29/04 23:15
01/29/04 23:15
|
Joined: Jun 2003
Posts: 1,017 Germany
Thomas_Nitschke
Senior Developer
|
Senior Developer
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?
|
|
|
|