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, ozgur), 1,415 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
Rendering objects in front of others... #29761
07/01/04 08:37
07/01/04 08:37
Joined: Jan 2003
Posts: 47
Oklahoma
Blackberry Offline OP
Newbie
Blackberry  Offline OP
Newbie

Joined: Jan 2003
Posts: 47
Oklahoma
How would I make an object(sprite or model) apear in front of all others when it's really behind them in the 3d world?

Manull

Re: Rendering objects in front of others... [Re: Blackberry] #29762
07/01/04 11:23
07/01/04 11:23
Joined: Mar 2004
Posts: 1,201
Switzerland, Baselland
Bird Offline
Senior Developer
Bird  Offline
Senior Developer

Joined: Mar 2004
Posts: 1,201
Switzerland, Baselland


- A6pro 6.40.5
Re: Rendering objects in front of others... [Re: Bird] #29763
07/01/04 11:36
07/01/04 11:36
Joined: Jan 2003
Posts: 47
Oklahoma
Blackberry Offline OP
Newbie
Blackberry  Offline OP
Newbie

Joined: Jan 2003
Posts: 47
Oklahoma
Thanks, but I don't think you understood me. I have a sprite intentionally created behind an object at a vertex location and I want it to show up in front of the other objects that may cover it up. I was originally going to create a panel for each of the sprites but then I remembered that panels can't be created in real-time. Any ideas?

Manull

Re: Rendering objects in front of others... [Re: Blackberry] #29764
07/01/04 12:00
07/01/04 12:00
Joined: Mar 2004
Posts: 1,201
Switzerland, Baselland
Bird Offline
Senior Developer
Bird  Offline
Senior Developer

Joined: Mar 2004
Posts: 1,201
Switzerland, Baselland
Yes, you can use this material effect:
Code:
 
material mat_near
{
effect="
technique test
{
pass p0
{
ZWRITEENABLE =TRUE;
ZFUNC=ALWAYS;
}
}
";
}



once I asked the the same question in this tread


- A6pro 6.40.5
Re: Rendering objects in front of others... [Re: Bird] #29765
07/01/04 12:04
07/01/04 12:04
Joined: Jan 2003
Posts: 47
Oklahoma
Blackberry Offline OP
Newbie
Blackberry  Offline OP
Newbie

Joined: Jan 2003
Posts: 47
Oklahoma
Wow! Thanks. You have no idea how much you just helped me. Thanks!

Manull

Re: Rendering objects in front of others... [Re: Blackberry] #29766
07/01/04 12:04
07/01/04 12:04
Joined: May 2004
Posts: 94
United States
not_my_name Offline
Junior Member
not_my_name  Offline
Junior Member

Joined: May 2004
Posts: 94
United States
Use this script for a possible result. it may need fine tweaking.
Code:

entity object
{
type = <name.extension>;
layer = 2; // display above view entities with layer 1
flags = visible;// visible on screen from the start
view = CAMERA; // same camera parameters as the default view
albedo = 50; // gouraud shading from sun position
x = 0; // place 100 quants ahead of the view
y = 0; // 50 to the right
z = 0; // and center vertically
}
function overlap(pointer,model)
{
my = pointer;
object.type = model;
while(1)
{
object.x = my.x;
object.y = my.y;
object.z = my.z;
object.pan = my.pan;
object.tilt = my.tilt;
object.roll = my.roll;
object.scale_x = my.scale_x;
object.scale_y = my.scale_y;
object.scale_z = my.scale_z;
wait(1);
}
}


(paste code into a new script and include it, no other scripts needed)
One object at a time. fill in some things, like "file" and "extension"
type this in when you want to begin overlaping other 3d objects:
overlap(pointer, such as "my", entity filename, such as "fish.mdl" )
i can make more scripts if something goes wrong. i can fix these up if they don't work right.
I Don't Require Credits For ANY Scripts Given Out.

Re: Rendering objects in front of others... [Re: not_my_name] #29767
07/01/04 12:07
07/01/04 12:07
Joined: Jan 2003
Posts: 47
Oklahoma
Blackberry Offline OP
Newbie
Blackberry  Offline OP
Newbie

Joined: Jan 2003
Posts: 47
Oklahoma
Thanks not_my, but i need to create them in real-time. this wouldn't work because the parameters of ent_create don't take entity definitions.

manull


Moderated by  HeelX, Spirit 

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