Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (AndrewAMD, TipmyPip, VoroneTZ, Quad), 8,552 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
tritom, sheliepaley, Blueguy, blobplayintennis, someone2
19178 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 | 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