Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, Ayumi), 771 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
what do the SKY flag with sphere.mdl? #457920
02/07/16 08:51
02/07/16 08:51
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
if I use a model as a sky, I must scalieren it and move. that goes without SKY flag.
What exactly does the SKY falg at ball models?
Code:
ENTITY* skySphere =
{
	type = "sky1.mdl";
	layer = 3; 
	scale_x = 10; 
	scale_y = 10; 
	scale_z = 10; 
	flags2 = SKY  | SHOW;
}


Re: what do the SKY flag with sphere.mdl? [Re: CocaCola] #457922
02/07/16 11:20
02/07/16 11:20
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
If you want to use a sky- cube, scene, dome or cylinder -> add the SKY flag to it.

Anyway, you want to move/scale a sky object? Perhaps as a SCENE?
Iirc you can change sky objects in functions lateron:

function blablabla()
{
...
skySphere.scale_x = 5;
}

But dont quote me on this, never tried it except for hiding and showing sky objects.

Last edited by Reconnoiter; 02/07/16 12:26.
Re: what do the SKY flag with sphere.mdl? [Re: CocaCola] #457923
02/07/16 12:11
02/07/16 12:11
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
OK wink
but i dont want use sky cube, dome or cylinder.

Re: what do the SKY flag with sphere.mdl? [Re: CocaCola] #457924
02/07/16 12:30
02/07/16 12:30
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
What is it you are trying to do exactly?

Sky objects are mainly there if you dont want to let your sky objects cover other objects. But in some cases you could use a entity that is far away so it doesn't block other objects and e.g. set the NOFOG flag for it.

Last edited by Reconnoiter; 02/07/16 12:31.
Re: what do the SKY flag with sphere.mdl? [Re: CocaCola] #457925
02/07/16 13:29
02/07/16 13:29
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
I would like that a mdl object do not other objects obscuring.
now i will try the NOFOG flag
edit: i have no problems with fogs
edit2:
in the manual the example works only for sprites
Code:
ENTITY* skyMountain =
{
  type = "mountainsphere.mdl";
  layer = 3; 
  scale_x = 0.25; 
  flags2 = SKY | SCENE | SHOW;
}


Last edited by CocaCola; 02/07/16 13:32.
Re: what do the SKY flag with sphere.mdl? [Re: CocaCola] #457926
02/07/16 14:02
02/07/16 14:02
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
This seems to work for me for models too:

Code:
ENTITY* skyModel =
{
  type = "mymodel.mdl";
  layer = 3; 
  scale_x = 0.25; 
  flags2 = SKY | SCENE | SHOW;
}



However, normal entities do not seem to always cover the sky object , which they should. I think this a bug (?) and remember a thread of myself of it with a solution: http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Main=54891&Number=457187#Post457187

Last edited by Reconnoiter; 02/07/16 14:04.
Re: what do the SKY flag with sphere.mdl? [Re: CocaCola] #457927
02/07/16 14:16
02/07/16 14:16
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
i have realy enought about thinking about bugs.
I remember it was a fbx import in med and in wed, i have maked a video and oneday the future was not more.
but i have the same versions like everybody.

would You give me a demo Projekt? You can use my sky.mdl.
sky1.mdl

Re: what do the SKY flag with sphere.mdl? [Re: CocaCola] #457928
02/07/16 16:18
02/07/16 16:18
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
I am having a bit of trouble following you, and besides from the bug I mentioned in my previous post there seems to be nothing wrong with your sky1.mdl for this example. Except that its mesh is open, but that is not important now.

I think the easiest fix for you is to make it very big and far away so it doesn't cover anything else.

Or if you want to use the model as a sky sphere, than model a hollow sphere and let it move every frame with your camera xyz.

Last edited by Reconnoiter; 02/07/16 16:27.
Re: what do the SKY flag with sphere.mdl? [Re: CocaCola] #457929
02/07/16 16:49
02/07/16 16:49
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
i dont want move the Modell by the script by a while function.
But 1st i have to read waht you wrote in the link

Re: what do the SKY flag with sphere.mdl? [Re: CocaCola] #457934
02/08/16 14:40
02/08/16 14:40
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
use a simple shader with custom vertex shader and adjusted blend and z-pass modes. the vertex shader just doesn't apply any camera transformation (only matModel * matProjection) and renders only in the background (ZFunc = Greater)


Visit my site: www.masterq32.de
Page 1 of 2 1 2

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