Gamestudio Links
Zorro Links
Newest Posts
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
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
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Rendering both sides #309353
02/08/10 20:48
02/08/10 20:48
Joined: Jan 2004
Posts: 439
G
Gamesaint762 Offline OP
Senior Member
Gamesaint762  Offline OP
Senior Member
G

Joined: Jan 2004
Posts: 439
Ive made some trees and use single planes for leaves and branches. They have an alpha channel on the texture. Now some of the planes dont render in game, is there a script or something I can do to fix this with out making more planes? Please help!

Re: Rendering both sides [Re: Gamesaint762] #309357
02/08/10 21:05
02/08/10 21:05
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Put this into an .fx file and assign it to your trees:

technique t0
{
pass p0
{
CullMode = None;
}
}

Re: Rendering both sides [Re: Slin] #309375
02/08/10 22:50
02/08/10 22:50
Joined: Jan 2004
Posts: 439
G
Gamesaint762 Offline OP
Senior Member
Gamesaint762  Offline OP
Senior Member
G

Joined: Jan 2004
Posts: 439
Thanks Slin but what i did doesnt seem to wor. Here is my code....

Quote:
action treefix()
{
effect = "trees.fx";
}

technique t0
{
pass p0
{
CullMode = None;
}
}


Re: Rendering both sides [Re: Gamesaint762] #309379
02/08/10 23:00
02/08/10 23:00
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
You have to open your "trees.fx" and search there for "pass p0" or something. It should be near the end of the file. Include there only this line:
"CullMode = None;"

should be looks like the following:
....
....
....
technique xxx
{
pass xxx
{
CullMode = None;
....
....
}
}




Last edited by Widi; 02/08/10 23:04.
Re: Rendering both sides [Re: Widi] #309381
02/08/10 23:06
02/08/10 23:06
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
You also need to create a MATERIAL* which will load the effect file. You can then apply this entity in your player action by using

'my.material = (material name).

Re: Rendering both sides [Re: DJBMASTER] #309382
02/08/10 23:09
02/08/10 23:09
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
You`re right, don`t see that. Here is the code:

MATERIAL* mtl_tree =
{
effect = "trees.fx";

}
action treefix()
{
my.material = mtl_tree;
}



Last edited by Widi; 02/08/10 23:10.
Re: Rendering both sides [Re: Widi] #309386
02/08/10 23:50
02/08/10 23:50
Joined: Jan 2004
Posts: 439
G
Gamesaint762 Offline OP
Senior Member
Gamesaint762  Offline OP
Senior Member
G

Joined: Jan 2004
Posts: 439
Oh I didnt post that part sorry... but it was my fault anyway cause I forgot to assign the action to the trees. Works now, thanks guys!


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