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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, Power_P), 1,065 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Grass - House Blend #78323
06/17/06 21:57
06/17/06 21:57
Joined: Jul 2002
Posts: 161
N
nifty Offline OP
Member
nifty  Offline OP
Member
N

Joined: Jul 2002
Posts: 161
You're probably asking "why make another grass script?" Well, I couldn't find one that addressed all of my needs. So, I made this one. It took me over a week to accomplish, and I am happy with it. Since there may be others that need it, I thought I'd share it. The features in this one include:
*Grass on an MDL terrain.
*Grass on hilly terrain.
*Grass only plants on terrain, and not on top of other objects.
*Grass created automatically on level start. No need to model in WED.
*Use a colormap to define where grass can/cannot be planted.
*You can tweak the script a little to improve framerate performance.
*The grass fades in smoothly. No pop ups.

The limitations are:
*Works with only 1 terrain. You have to reprogram if for multi terrains.
*Not tested with HMPs. I've never used HMPs before.

Info from the script:
//GRASS SCRIPT - HOUSE BLEND. Works with A6.40.5 and above.
//This is a script for placing grass models on an MDL terrain. It has not been tested on an HMP.
//It only works with a single terrain. You must modify the script if using multiple terrains.
//The MDL terrain uses JCL's multitexture shader from the wiki.
//A color map is used to specify the areas where grass can/cannot be placed.
//This script was created by nifty, using many different scripts and resources from 3DGS community, thus the
//term house blend. I have added some secret ingredients of my own
//to make it a complete solution for most projects.
//The author wishes to thank the following people for their contributions:
//JCL, Matt Aufderheide, Loopix, Sourcerer, Lolek, and George. Long live AUM!
//You may use this script in commercial games without restrictions.

Instructions are in the grass.wdl file.

DOWNLOAD

SCREENSHOT:
Note - The white box is to show that the grass will not plant on top of other objects.


Re: Grass - House Blend [Re: nifty] #78324
06/18/06 05:23
06/18/06 05:23
Joined: Apr 2005
Posts: 1,058
Luzern
Nicolas_B Offline
Serious User
Nicolas_B  Offline
Serious User

Joined: Apr 2005
Posts: 1,058
Luzern
Wow. Its very nice. Good lod.
Thanks for the good Contribut.

GG Nicolas

Re: Grass - House Blend [Re: nifty] #78325
06/18/06 05:29
06/18/06 05:29
Joined: Sep 2003
Posts: 1,037
Budapest, Hungary
DEX Offline
Serious User
DEX  Offline
Serious User

Joined: Sep 2003
Posts: 1,037
Budapest, Hungary
Demo looks great. Could you make it to work for HMP terrains? I could send you one terrain with same shader from wiki.


DEXSOFT-GAMES.COM
Re: Grass - House Blend [Re: DEX] #78326
06/18/06 08:31
06/18/06 08:31
Joined: Feb 2006
Posts: 616
Netherlands
cartoon_baboon Offline
User
cartoon_baboon  Offline
User

Joined: Feb 2006
Posts: 616
Netherlands
Man, this is really cool!!! seems to be exactly what I was looking for.

Re: Grass - House Blend [Re: cartoon_baboon] #78327
06/18/06 10:36
06/18/06 10:36
Joined: Sep 2004
Posts: 1,214
Austin, Texas
Josh_Arldt Offline
Senior Developer
Josh_Arldt  Offline
Senior Developer

Joined: Sep 2004
Posts: 1,214
Austin, Texas
Do you think you could post the script here so that we don't have to download it from rapidshare?
Thanks a bunch man.

Re: Grass - House Blend [Re: nifty] #78328
06/18/06 10:55
06/18/06 10:55
Joined: Aug 2002
Posts: 375
Germany
Salva Offline
Senior Member
Salva  Offline
Senior Member

Joined: Aug 2002
Posts: 375
Germany
Yes is really excellent! also I looked for this script from so much time
But I must ask a thing: if it is possible use this code, but without use the terrainmultitexturing shader, because I don't want to change the texture that my terrain has. I have created the texture with freeworld3d. however thank you for the contribution!

salva

Re: Grass - House Blend [Re: Salva] #78329
06/18/06 13:44
06/18/06 13:44
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
why will it work only with 6.4 and above? what did you put in that it doesn't run with 6.3?
however, well done!

Re: Grass - House Blend [Re: broozar] #78330
06/18/06 18:04
06/18/06 18:04
Joined: Jul 2002
Posts: 161
N
nifty Offline OP
Member
nifty  Offline OP
Member
N

Joined: Jul 2002
Posts: 161
Glad it's useful to some.
If you want to know whether or not it will work with your particular model or hmp, my advice is to copy and paste the grass stuff into your terrain action. The grass script is at the top of the terrain action. I kept it separate from JCLs script. Then follow the instructions and let the grass script do its thing.

Although I don't like rapidshare myself, I can't just post the script here. You'll need the grass models too. You may need the terrain and colormap to see how the script works, and adapt it to your game. If anyone can host the file, feel free to do so. It's over 5MB.

I see no reason why it should not work with 6.3, but since I don't have it, I make no guarantees.

Re: Grass - House Blend [Re: nifty] #78331
06/18/06 18:22
06/18/06 18:22
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
Could you make it work with more than one terrain (hmp).
But for the rest it's really amazing job in only one week.
Congratz

Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: Grass - House Blend [Re: frazzle] #78332
06/18/06 23:25
06/18/06 23:25
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Cool thing, nifty!
You did great script. Thank you, man.

Page 1 of 3 1 2 3

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