Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
Stooq now requires an API key
by VHX. 06/08/26 20:14
ZorroGPT
by TipmyPip. 06/06/26 12:36
Zorro 3.01 recoded MMI function issue
by TipmyPip. 06/04/26 05:44
SGT_FW
by Aku_Aku. 05/31/26 11:05
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
XTB
by pr0logic. 05/18/26 12:27
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 2,372 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Seraphinang, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
view backgroundpicture possible? #392770
01/27/12 12:45
01/27/12 12:45
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline OP
Senior Member
Benni003  Offline OP
Senior Member

Joined: Aug 2008
Posts: 394
Germany
Hello, I know that I can change the background color of a view with view.bg=...;. Is it also possible to set a backgroundpicture for a view? I want to use this view to preview an entity, but it's not looking good, if I just set a background color.

Re: view backgroundpicture possible? [Re: Benni003] #392771
01/27/12 13:17
01/27/12 13:17
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
use a Sky, or show a PANEL behind the Scene (-999999999...0 and sky_color/sreen_color to <0,0,0>)

or as alternative idea: set a Sprite behind the Entity ^^


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: view backgroundpicture possible? [Re: Espér] #392777
01/27/12 13:51
01/27/12 13:51
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline OP
Senior Member
Benni003  Offline OP
Senior Member

Joined: Aug 2008
Posts: 394
Germany
I wanted to set a panel behind the view, but if I set the layer to -1 it was behind the Camera view. The camera view layer is -2 !

Re: view backgroundpicture possible? [Re: Benni003] #392783
01/27/12 14:50
01/27/12 14:50
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Why is the camera layer negative?


Always learn from history, to be sure you make the same mistakes again...
Re: view backgroundpicture possible? [Re: Uhrwerk] #392790
01/27/12 15:38
01/27/12 15:38
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline OP
Senior Member
Benni003  Offline OP
Senior Member

Joined: Aug 2008
Posts: 394
Germany
Originally Posted By: Uhrwerk
Why is the camera layer negative?


It was just for experimental negative. Now it's positive, but not working:

layer_sort(camera,1);
layer_sort(view_object,3);
layer_sort(panel_test,2);

panel_test is on top!!!
Also if I set the layer in the object definition it's not working. So I thought that Panels can't be behind a view, so I tried with negative layers for the camera view and then the panel was behind the camera view.
But just turn back to my point.. I want to render one entity with the view_object. NOSKY flag is set, so that the background is transparent. But to have a background I wanted to set a panel with bmap behind this view.

Last edited by Benni003; 01/27/12 15:41.
Re: view backgroundpicture possible? [Re: Benni003] #392792
01/27/12 15:42
01/27/12 15:42
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
You can delete posts, no need for a "." wink

The solution is easy - panel always render above views, so you need to set the rendertarget of a view to a panel's bmap.

Re: view backgroundpicture possible? [Re: Benni003] #392794
01/27/12 15:46
01/27/12 15:46
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Did you remembet do set the view_objects SHOW flag?

I don't think the NOSKY flag will do here. You should set sky_color and sreen_color to 0, as Esper said.

Rei, that's not true:
Originally Posted By: Mighty Manual
A7.06 Panels, texts, and view entities with a positive layer value are placed above any view; with a negative layer value they are placed below any view. This can be used to define an image visible in the background of a view that has no sky and a transparent sky_color.



Always learn from history, to be sure you make the same mistakes again...
Re: view backgroundpicture possible? [Re: Uhrwerk] #392801
01/27/12 16:16
01/27/12 16:16
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline OP
Senior Member
Benni003  Offline OP
Senior Member

Joined: Aug 2008
Posts: 394
Germany
Originally Posted By: Uhrwerk
Did you remembet do set the view_objects SHOW flag?

I don't think the NOSKY flag will do here. You should set sky_color and sreen_color to 0, as Esper said.

Rei, that's not true:
Originally Posted By: Mighty Manual
A7.06 Panels, texts, and view entities with a positive layer value are placed above any view; with a negative layer value they are placed below any view. This can be used to define an image visible in the background of a view that has no sky and a transparent sky_color.


Yes, sure I set the flag SHOW. The panel and the view_objects are visible. I moved the view half over the panel to see if it works or not, but tghe panel is on top. And yes I can set a negative layer value for my panel, but then it's also behind the camera view.

Re: view backgroundpicture possible? [Re: Benni003] #392803
01/27/12 16:21
01/27/12 16:21
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Eventually you have to post your code. Doing wild guesses won't probably help to much...


Always learn from history, to be sure you make the same mistakes again...
Re: view backgroundpicture possible? [Re: Uhrwerk] #392805
01/27/12 16:35
01/27/12 16:35
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
I based my answer on experience, as I had the same problem not too long ago but well, probably this was longer ago than I thought.

Page 1 of 2 1 2

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

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