Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, Quad, VoroneTZ, 1 invisible), 623 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Problem with TargetMap [Re: pegamode] #467334
07/26/17 17:40
07/26/17 17:40
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Ok ... I replaced the shockwave_alpha.png and now the models are not disappearing any more. Really great ... thanks again.

Unfortunately it's not fixing the TargetMap issue. I hope it's not a bug in my project that overwrites the render_target pointer in some way.
But then again the render_target should be updated with every frame, shouldn't it. So I guess it would lead into an engine crash if something would write into its address.

Re: Problem with TargetMap [Re: pegamode] #467335
07/26/17 19:56
07/26/17 19:56
Joined: Aug 2003
Posts: 118
Deutschland
E
Ezzett Offline
Member
Ezzett  Offline
Member
E

Joined: Aug 2003
Posts: 118
Deutschland
The render target pointer should change for every view that renders into a render target. Maybe you are using some other shaders with multiple view stages that use render targets like shadow mapping.

Your problem is that your material doesn't belong to the second stage after the camera view. There is no sequential order. When your material is processed, the render target pointer could point to another/changed render target of another view that was calculated in the meantime.

I think you already did the right thing by rendering into a seperate bitmap and using this bitmap in your shader instead of TargetMap.

You can also draw the render_target bitmap onto the screen with help of the Debug_Bmap macro. Maybe do this and remove other views and shaders and check if its rendered content is correct.

Re: Problem with TargetMap [Re: Ezzett] #467337
07/26/17 21:11
07/26/17 21:11
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Actually there's no other view, but I will give Debug_Bmap a try tommorow.
I'm really happy that everything is working now inside my project ... though I would still like to know why I can't use the render_target bitmap.

Maybe Ezzett is right that the reason is that the material is not assigned to the view.

Page 2 of 2 1 2

Moderated by  Blink, Hummel, Superku 

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