Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 14,540 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Multiple Render-To-Texture Problem #199708
04/01/08 06:27
04/01/08 06:27
Joined: Apr 2008
Posts: 6
California, United States
hawkster Offline OP
Newbie
hawkster  Offline OP
Newbie

Joined: Apr 2008
Posts: 6
California, United States
I've been running into a problem and it has been driving me crazy. When I'm using the render-to-texture feature in A7 Commercial by setting a view's "bmap" property and I only use one sprite, it works just fine. However, if I want to display two sprites with different views, the view with the higher layer number is displayed on BOTH sprites.

Basically what I mean is that I would like to have two remote views that I can display at the same time, one view for each sprite.

How can I go about displaying each sprite's correct view instead of having one view displayed on both sprites?

Last edited by hawkster; 04/01/08 06:35.

If it don't fit, force it wink
Re: Multiple Render-To-Texture Problem [Re: hawkster] #199710
04/01/08 06:50
04/01/08 06:50
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
dunno, but maybe com edition only supports one rendertarget?


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
(FIXED) Multiple Render-To-Texture Problem [Re: ello] #199719
04/01/08 07:15
04/01/08 07:15
Joined: Apr 2008
Posts: 6
California, United States
hawkster Offline OP
Newbie
hawkster  Offline OP
Newbie

Joined: Apr 2008
Posts: 6
California, United States
I just figured out what the problem was, and oddly enough it had nothing to do with the code.

ello, I actually started thinking that before I looked at the documentation of the "bmap" property, especially this line that caught my eye:

"Most 3D hardware can not use the same texture as render source and render target. Thus you shouldn't render directly on a entity texture that is visible in the same view."

Apparently what this means is "use a different sprite file for each render-to-texture view you want to use".

All I had to do was make another copy of the sprite file I was using, give it a different name, and add it to the level, then everything worked perfectly and both of my views render just fine. I was about ready to run my head through a wall over this thing ;\)

Last edited by hawkster; 04/01/08 07:29.

If it don't fit, force it wink

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