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
3 registered members (AndrewAMD, Quad, 1 invisible), 721 guests, and 7 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 1 of 4 1 2 3 4
Use draw_quad outside the window / render on bmap #454956
09/30/15 16:36
09/30/15 16:36
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline OP
Senior Member
Benni003  Offline OP
Senior Member

Joined: Aug 2008
Posts: 394
Germany
Hi, I am working on a 2d strategy Game!
For rendering the Graphics I use draw_quad(), because its faster than with panels for my purpose.
Now I want to include a zoom function. First I tried with scaling through the draw_quad() function, but if I scale the grapfics smaller i have an aliasing effect, the graphics don't look good. I think I need a filter, but how...?
I tried with rendering the pgraphics on a bmap... creating a bmap, useing bmap_rendertarget() and set the bmap to a panel with Filter flag. Now I am able to scale the Panel and with it the whole rendering. but the problem is, that draw_quad() is not working outside the window... if I zoom out I have following problem:



Does Anyone have an Idea to work around?

Re: Use draw_quad outside the window / render on bmap [Re: Benni003] #454957
09/30/15 16:55
09/30/15 16:55
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I don't have a direct solution for your problem but have you thought about using sprites and ISOMETRIC rendering?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Use draw_quad outside the window / render on bmap [Re: Superku] #454961
09/30/15 19:01
09/30/15 19:01
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline OP
Senior Member
Benni003  Offline OP
Senior Member

Joined: Aug 2008
Posts: 394
Germany
Yes I have throught about it. I want to make a traditional 2d game and there should be a possibility to transfer it to other platforms and Browser without a 3d engine. I've not planned it yet, but I want to have the option. This are the two reasons.

So I'm serching a solution for my problem...

Re: Use draw_quad outside the window / render on bmap [Re: Benni003] #454964
09/30/15 19:32
09/30/15 19:32

M
Malice
Unregistered
Malice
Unregistered
M



Can you run a scene-screen anti-aliasing.
d3d_antialias = 4 or 9; // activate scene antialiasing

or
Postprocessing shader

Was it Helix that posted a scene space AA shader with his bloom shader long ago?

So that's me guessing. Maybe it will be helpful
Mal

Re: Use draw_quad outside the window / render on bmap [Re: ] #454966
09/30/15 19:42
09/30/15 19:42
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline OP
Senior Member
Benni003  Offline OP
Senior Member

Joined: Aug 2008
Posts: 394
Germany
I think this is not working. d3d_antialias I tried also, but not working. I have no Level loaded so Im not using a view.
I have just the engine window.
But how is the FILTER flag of Panels working? Is it possible to have something like the Panel FILTER flag for the whole window?

Re: Use draw_quad outside the window / render on bmap [Re: Benni003] #454967
09/30/15 20:20
09/30/15 20:20

M
Malice
Unregistered
Malice
Unregistered
M



Ok some more info I should have looked up

Manual
Quote:
Global antialiasing settings in the 3D card settings menu will make panels and bitmap fonts look blurry, depending on the 3D hardware and driver version. Use only d3d_antialias for scene antialiasing.

http://www.conitec.net/beta/apanel.htm

Now I can assume somethings. Panels are created with dx9 function. Direct_3d because direct_draw was removed. To get a good understand I'd have to ask the dev. There are some flag like settings I found looking up d3dx9 and maybe this filter flag is just on of them. I assume we can access dx9 so should be able to it turn a anti aliasing for d3d quid. But I'm all guessing
This 'doesn't seem to apply https://msdn.microsoft.com/en-us/library/windows/desktop/bb173422(v=vs.85).aspx
Possibly helpful -> http://www.gamedev.net/topic/504543-antialiased-text-rendering-d3dx9/
possibly helpful ->http://stackoverflow.com/questions/13912482/turn-on-anti-aliasing-in-d3d9
Helpful??->https://msdn.microsoft.com/en-us/library/bb219690(VS.85).aspx
Maybe HelpFul -> http://sofb.developer-works.com/article/24817283/turn+on+anti+aliasing+in+d3d9%3F

Re: Use draw_quad outside the window / render on bmap [Re: ] #455003
10/01/15 15:25
10/01/15 15:25
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
@^: Antialiasing doesn't affect texture quality. Anisotropic filtering does, but I'm afraid you can't get draw_quad to use a specific texture filtering method (or a custom shader which would allow even more possibilities).


POTATO-MAN saves the day! - Random
Re: Use draw_quad outside the window / render on bmap [Re: Kartoffel] #455009
10/01/15 16:51
10/01/15 16:51

M
Malice
Unregistered
Malice
Unregistered
M



@Kartoffel - Thanks for bring this out the muddy water of my guessing.
If this is a as you say
Quote:
Antialiasing doesn't affect texture quality


Does that make the quad surface a texture in the nature of engine entities? So can his quad use some kind of manipulation of the mip-map system to blur the texture when he "zooms - out" or rather scales down the quad?

Of course that would not give great results.

@O.P> bmap_rendertarget leads to view.bmap http://www.conitec.net/beta/aview-bmap.htm
which leads to bmap_zbuffer(BMAP*)
http://www.conitec.net/beta/bmap_zbuffer.htm
which leads to render_zbuffer
http://www.conitec.net/beta/render_zbuffer.htm

This chain, as I understand is a way to create a render target larger then the screen and render into a bmap larger then screen. However this my just be my confusion.

Also not sure how you create a engine-ambiguous 2d game using any 3dgs engine commands. Wouldn't you need to write it directly in openGl. also is it even possible to create a web based game and windows game with the same code in any library?

But ok, Have fun!

Re: Use draw_quad outside the window / render on bmap [Re: ] #455032
10/03/15 12:47
10/03/15 12:47
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline OP
Senior Member
Benni003  Offline OP
Senior Member

Joined: Aug 2008
Posts: 394
Germany
hm I'm looking into the possibilities of unity :-)

Re: Use draw_quad outside the window / render on bmap [Re: Benni003] #455147
10/11/15 09:57
10/11/15 09:57
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline OP
Senior Member
Benni003  Offline OP
Senior Member

Joined: Aug 2008
Posts: 394
Germany
I am back. Really used to A8... tongue

I tried with increasing the zbuffer, but its still not working frown

Page 1 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