Gamestudio Links
Zorro Links
Newest Posts
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
2 registered members (alibaba, vicknick), 1,492 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Enable post processing for view entities #298394
11/14/09 17:09
11/14/09 17:09
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
If view entities are used for such things as first person weapons or sun flares, you can not use post processing effects or the view entities will not be visible. So currently you must choose between having postprocessing effects or view entities.

It would be slightly better if view entities would be rendered on top of the post processing so at least they would be visible.

Ideally, it would be nice to set a flag for each view entity as to whether it will be rendered with the view (post processed) or after postprocessing (no pp effects, but visible).

Thanks for considering my suggestion.


Not two, not one.
Re: Enable post processing for view entities [Re: Grafton] #298529
11/15/09 19:47
11/15/09 19:47
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
seconed. we've had the same problem and it took ages to find out why the entities weren't showing. very annoying.


~"I never let school interfere with my education"~
-Mark Twain
Re: Enable post processing for view entities [Re: Germanunkol] #298600
11/16/09 10:32
11/16/09 10:32
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
If a view entity does not show, check the view parameters, like angle, arc, flags and so on. I don't think that this can be related to post processing - view entities are rendered together with panels and should not be affected by the view material at all.

Re: Enable post processing for view entities [Re: jcl] #298616
11/16/09 14:06
11/16/09 14:06
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
It had something to do with shaders... if I enabled them I had no view entities and then, without changing anything else except for disabling the shaders, i couldn't see the models any more. It wasn't angles or flags...

I have no clue about shaders, but I'll ask someone from my team to post.


~"I never let school interfere with my education"~
-Mark Twain
Re: Enable post processing for view entities [Re: Germanunkol] #298639
11/16/09 16:36
11/16/09 16:36
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
How did you enable the shaders? Can you post the code?

Re: Enable post processing for view entities [Re: jcl] #298786
11/17/09 21:31
11/17/09 21:31
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
In much post processing the original view or subsequent views are blended with a view or views that are processed. Such as in a multipass bloom effect.

However it seems that currently if a bitmap is assigned to the camera view, for later processing, view entities will not appear.

The code below uses the workshop emboss example modified with a blob view entity and two lines that set up a bitmap for the camera view. As is, the view entity appears, but uncomment the lines to create the camera bitmap, and the view entity is not rendered.

Code:
ENTITY* blob =
{
  type = "blob.mdl";
  flags2 = SHOW;  
  x = 150; 
  y = 35; 
}
 
BMAP* camera_scene;
 
MATERIAL* mtlEmboss = {effect = "pp_emboss.fx"; }
VIEW* viewEmboss = {material = mtlEmboss; flags = PROCESS_TARGET;}
 
function main()
{
  //camera_scene = bmap_createblack(screen_size.x, screen_size.y,32);
  //camera.bmap = camera_scene; 
 
  camera.stage = viewEmboss;
  level_load("");
  ent_create("blob.mdl",vector(150,0,0),NULL);
}



This is also the reason why a user of shade-c's DOF, HDR or bloom effect find that their view entities are no longer visible with any of shade-c's effects enabled.




Not two, not one.
Re: Enable post processing for view entities [Re: Grafton] #298788
11/17/09 23:24
11/17/09 23:24
Joined: Jun 2004
Posts: 655
to your left
BoH_Havoc Offline
User
BoH_Havoc  Offline
User

Joined: Jun 2004
Posts: 655
to your left
I have the exact same problem.
As described by Grafton, when using shade-c, view entities will not be visible, as soon as i render the scene into a bmap.
Tried everything i could think of to solve this problem so i can release a fix for shade-c, but so far i didn't have any luck.

If rendering view entities into render targets isn't possible at all at the moment, please consider releasing a fix in the future. It's not urgent as you can use workarounds, but it would be nice to have that feature some day laugh


Shade-C EVO Lite-C Shader Framework
Re: Enable post processing for view entities [Re: BoH_Havoc] #298824
11/18/09 08:33
11/18/09 08:33
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I'll look into this. Probably it's some side effect. We'll make sure that view entities at least stay visible when postprocessing is active.

Re: Enable post processing for view entities [Re: jcl] #298855
11/18/09 13:56
11/18/09 13:56
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
Thanks JCL, I hope you also consider creating the ability to add view entities to the post processing via a flag. A first person weapon or sun flares might look strange if they were the only parts of the scene without DOF, HDR, bloom etc.


Not two, not one.
Re: Enable post processing for view entities [Re: Grafton] #299483
11/24/09 11:38
11/24/09 11:38
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I could not see anything wrong with your example, or any side effect that would make view entities invisible when postprocessing views are active. Of course you must not assign the entity to the postprocessing view, but to the real view.

Page 1 of 3 1 2 3

Moderated by  aztec, 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