Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,426 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Need help with mtl_terraintex shadows #390526
01/01/12 04:23
01/01/12 04:23
Joined: Jan 2012
Posts: 55
K
kmega99 Offline OP
Junior Member
kmega99  Offline OP
Junior Member
K

Joined: Jan 2012
Posts: 55
Hi all. I'm in need of some advice about shadows in A7.
I've been through the tutorials-level design & lite-c programming and I'm ready to build a game.

When I build the level in the level design tutorial, level blocks with rock texture will cast shadows onto the bottom surface of the textured hollowed skybox which looks good.

Problem:
When I create a chunked terrain and use it as a ground surface with material (mtl_terraintex), the level blocks will not auto cast a shadow.

Request:
Please tell me ways to get a level block to cast a shadow onto a chunked terrain with material (mtl_terraintex) attached. Thanks.

Last edited by kmega99; 01/03/12 21:56.
Re: Need help with mtl_terraintex shadows [Re: kmega99] #390528
01/01/12 05:11
01/01/12 05:11
Joined: Jan 2012
Posts: 55
K
kmega99 Offline OP
Junior Member
kmega99  Offline OP
Junior Member
K

Joined: Jan 2012
Posts: 55
The multi-textured terrain with mtl_terraintex:


The level block is not casting a shadow.

Re: Need help with mtl_terraintex shadows [Re: kmega99] #390539
01/01/12 14:03
01/01/12 14:03
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
have you checked "terrain lighting" in map compiler settings?


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Need help with mtl_terraintex shadows [Re: painkiller] #390547
01/01/12 18:26
01/01/12 18:26
Joined: Jan 2012
Posts: 55
K
kmega99 Offline OP
Junior Member
kmega99  Offline OP
Junior Member
K

Joined: Jan 2012
Posts: 55
yes.


Sun is set to: 200
Ambient is set to: 24

This is the A7 Pro Edition.

Re: Need help with mtl_terraintex shadows [Re: kmega99] #390564
01/02/12 02:47
01/02/12 02:47
Joined: Jan 2012
Posts: 55
K
kmega99 Offline OP
Junior Member
kmega99  Offline OP
Junior Member
K

Joined: Jan 2012
Posts: 55
Problem solved: cool

After upgrading to the latest A7 version the problem disappeared completely. Now I can create multitexture terrains to my hearts content.
Game Studio is awesome.
Thanks for replying.

Re: Need help with mtl_terraintex shadows [Re: kmega99] #390615
01/03/12 05:12
01/03/12 05:12
Joined: Jan 2012
Posts: 55
K
kmega99 Offline OP
Junior Member
kmega99  Offline OP
Junior Member
K

Joined: Jan 2012
Posts: 55
Can anyone please tell me how to create a decal shadow & have it move with a map entity?

Re: Need help with mtl_terraintex shadows [Re: kmega99] #390616
01/03/12 05:13
01/03/12 05:13
Joined: Jan 2012
Posts: 55
K
kmega99 Offline OP
Junior Member
kmega99  Offline OP
Junior Member
K

Joined: Jan 2012
Posts: 55
I need to know how to attach a decal shadow to a moving map entity.
Game Studio version A7.
Thanks.

Last edited by kmega99; 01/03/12 05:18.
Re: Need help with mtl_terraintex shadows [Re: kmega99] #390623
01/03/12 09:34
01/03/12 09:34
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
hi

// if you need unique decal shadow for the mapent:
// put it into mapent action:
set(me, SHADOW);
you = ent_create( "name_of_decal_shadow_image.dds", nullvector , NULL);
set( you , INVISIBLE | PASSABLE );
my.shadow = you;

// else if you need a general shadow
// put it among varialble declarations:
ENTITY* ent_shadow_rot =
{
type = "name_of_decal_shadow_image.dds";
}
// put it into mapent action:
set(me, SHADOW);
my.shadow = ent_shadow_rot;

Last edited by sivan; 01/03/12 09:42.

Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Need help with mtl_terraintex shadows [Re: sivan] #390684
01/03/12 21:36
01/03/12 21:36
Joined: Jan 2012
Posts: 55
K
kmega99 Offline OP
Junior Member
kmega99  Offline OP
Junior Member
K

Joined: Jan 2012
Posts: 55
It works well.
Thanks for the quick response. smile


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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