Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 735 guests, and 2 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 4 of 4 1 2 3 4
Re: Use draw_quad outside the window / render on bmap [Re: Benni003] #455239
10/14/15 16:47
10/14/15 16:47

M
Malice
Unregistered
Malice
Unregistered
M




You are rendering into view.bmap , this bmap is screen size.
bmap_rendertarget
Quote:
Render target 0 can only be set when the view has no own render target (view.bmap), and can be switched off through bmap_rendertarget(NULL,0,0) for resuming normal screen rendering.

Could your error be the num var,
bmap_rendertarget(BmpMap,1,0);
NOT
bmap_rendertarget(BmpMap,0,0);

Edit more view.bmap
Quote:
The bitmap is automatically converted to a render target format and not accessible anymore for pixel operations. The view's pos_x/pos_y and size_x/size_y parameters define an offset and target area on the bmap. A7.10 For rendering into an environment map, set the view pos_x parameter to the pixel position of the beginning of the face you want to render into.

Last edited by Malice; 10/14/15 16:55.
Re: Use draw_quad outside the window / render on bmap [Re: ] #455242
10/14/15 17:10
10/14/15 17:10
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline OP
Senior Member
Benni003  Offline OP
Senior Member

Joined: Aug 2008
Posts: 394
Germany
If I set bmap_rendertarget(BmpMap,1,0); nothing is drawn.

Re: Use draw_quad outside the window / render on bmap [Re: Benni003] #455243
10/14/15 18:11
10/14/15 18:11

M
Malice
Unregistered
Malice
Unregistered
M



@Benni003, Ok well I guess I'm no help. Good luck.

One question - I do not know if it work this way - Instead of rendering to the bmpMap, can you render to bmap_zbuffer.

bmap_rendertarget(render_zbuffer,0,0);

Yes I have no clue and am now just guessing. Sorry I'm not testing this stuff, I don't have the engine currently installed
Mal


Quote:
The LPDIRECT3DSURFACE9 pointer to the created z buffer is available through the render_zbuffer variable.


And the BMAP struct takes a LPDIRECT3DTEXTURE9

Info for moving LPDIRECT3DSURFACE9 into LPDIRECT3DTEXTURE9

http://stackoverflow.com/questions/14279843/directx9-surface-to-texture

And YES I'm just wild fishing

Last edited by Malice; 10/14/15 18:23.
Re: Use draw_quad outside the window / render on bmap [Re: ] #455250
10/14/15 19:53
10/14/15 19:53
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
i have an idea , what about if you split your map into 6 maps or more and in every part take a render target from it then in final add all parts to one .
and remove the olds parts.

Re: Use draw_quad outside the window / render on bmap [Re: Dico] #455251
10/14/15 19:55
10/14/15 19:55
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
and for render target i think it not work if you set it bigger than hwnd (dx9 limitation). im not sure but maybe im wrong

Re: Use draw_quad outside the window / render on bmap [Re: Dico] #455253
10/14/15 20:09
10/14/15 20:09
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
set your image as a texture on a plane or flat terrain... now use the camera or
the z offset of the model as the zoom ....

the added advantage is also , you can change the detail/image size depending on the zoom/z-offset as you need

Last edited by Wjbender; 10/14/15 20:11.

Compulsive compiler
Re: Use draw_quad outside the window / render on bmap [Re: Wjbender] #455296
10/16/15 13:05
10/16/15 13:05
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline OP
Senior Member
Benni003  Offline OP
Senior Member

Joined: Aug 2008
Posts: 394
Germany
Not so easy with this rendering problem. I think I will use the zoomin function (up to 25%) and that was it. Then I don't have to think about this problem and the detail is also still good. Thank you all

Page 4 of 4 1 2 3 4

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

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