Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,251 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 2 of 2 1 2
Re: Another grass solution [Re: JimFox] #58274
11/03/05 15:38
11/03/05 15:38
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Hi Jim, thanks for your comment

Allright, sorry for the confusion. What I meant concerning level blocks is that I only create them in a level which I later edit in MED (not WED!) to be able to see where the grass should "grow" so that the grass model, from the top, is shaped so it fits exactly into the level. In the demo, for example, I positioned blocks in a half-circle among the rocky walls and used them to determine in MED where to place grass and where not.

Just to clarify: In the final level, the blocks have been deleted and they have nothing to do with the script.

In deed, the script does take a grass model (which has to fit the requirements as listed above) and deforms it so it is adapted to the ground. This way, you can use few grass models (as each model has lots and lots of grass "bushes" in it) instead of hundreds of individual models - which obviously dramatically increases performance.

Last edited by The Matrix; 11/03/05 15:40.

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: Another grass solution [Re: Thomas_Nitschke] #58275
11/03/05 17:46
11/03/05 17:46
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Yes, this shape thing is a good method to deal with it as a blueprint.

During work today I thought that your code can easily be used as a fake projection script. For example when you want to add blood splatters on a non.planar surface you could have a grid (lets say 5x5) with the blood splatter as skin and then you apply it easily. It is not a real decal substitution (since it is a very dirty workaround), but a great deal for now.

Re: Another grass solution [Re: HeelX] #58276
11/03/05 19:13
11/03/05 19:13
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
I also thought of that - though I was on the "maybe an easy way to have softer shadows" trip

For now I've got another issue to solve with this one but, at the moment, I don't have a clue on how to do it.
I'd like to as well implement a section in the function that takes care of wide vertical gaps between the vertices. That is, if you place a grass model on a high cliff or sth. similar, but the model does not exactly fit the cliff's shape but is hanging over, the grass on the floor will be connected with the grass on the cliff via strangely stretched polygons, as the model can not be sliced in half. I thought that maybe you could measure the z-distances between the -already adapted- vertices to find such cases and then... well, I have to waste another thought on how to make the appropriate vertices somewhat invisible. If anyone has got a clue on how to do this, any hint is welcome!


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: Another grass solution [Re: Thomas_Nitschke] #58277
11/03/05 21:19
11/03/05 21:19
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Mhn, the easiest solution would be to take care about where you place the grass on the blueprint, so you have to avoid these places with high angle environmental decrease. But this doesnt solve your problem, I admit.

Another workaround could be the following: you said, you do your grass-placing by using adapted blocks from within WED. So, when working on cliffs, etc., you could place the grass sprites manually on the right z-position, save this unique mdl and place it as standard mdl in WED.

From a programmers point of view I would recommend to check connections from one vertex to another to identify closed groups as objects (grass bunches). So we would have not only single vertices but a row of vertices which are connected -> here it is our grass spike. So we could easily determine the upper and lower border and place the whole thing on the z axis so that there is no stretch/crouch behavior. Unfortunately we are not able to do that now. This could be a feature for one of the next updates.. but you know.. personally I would be glad if the update would release soon. Anyway.. I hope you've got some ideas.

ciao
Christian

Re: Another grass solution [Re: HeelX] #58278
11/04/05 12:35
11/04/05 12:35
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
I'm glad you're still on it. This is getting more and more interesting with every new idea! Maybe the script should not only check for the highest and lowest vertex, but also for others in between and process them otherwise, in "slope mode", so to say. I got no idea on how to process them exactly, though, but I'll start experimenting with this when I get some free time.

Edit: Oh well, as for the update, just have a look at my signature lol

Last edited by The Matrix; 11/04/05 12:36.

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: Another grass solution [Re: Thomas_Nitschke] #58279
11/04/05 15:29
11/04/05 15:29
Joined: Aug 2002
Posts: 673
Las Cruces, NM
JimFox Offline
User
JimFox  Offline
User

Joined: Aug 2002
Posts: 673
Las Cruces, NM
You are very welcome, Matrix. This is a helpful thread, since your idea of using blocks in WED to edit in MED is also innovative. It is something that I never though of, but now I can see all sorts of uses for.....
So thanks again!
Best regards,


Jim
Re: Another grass solution [Re: JimFox] #58280
11/04/05 18:34
11/04/05 18:34
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Nice to see this is useful for you
Still on it... if there happen to be any new ideas, please let me know as I unfortunately cannot count myself as mathematically talented

Last edited by The Matrix; 11/04/05 18:35.

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: Another grass solution [Re: Thomas_Nitschke] #58281
11/08/05 19:45
11/08/05 19:45
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline
User
Bright  Offline
User

Joined: Jan 2003
Posts: 798
New Zealand
I remember making a Grass'O'Matic. Take a search for that if you like...


KAIN - Coming soon...
Re: Another grass solution [Re: Bright] #58282
11/09/05 06:03
11/09/05 06:03
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Thanks for your hint, I'll look at it. As for now, I don't hve the time to do anything about all this, but when I get some, I'll do


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 2 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

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