Gamestudio Links
Zorro Links
Newest Posts
IG plugin initial release
by sodiumchloride. 09/22/20 20:53
Using STL in Zorro strategies
by AndrewAMD. 09/22/20 17:01
Rubbish data from Yahoo
by DanielX. 09/22/20 14:37
assert
by Grat. 09/22/20 12:14
MT4 - use more Zorro script
by Grat. 09/22/20 06:49
Single advise model for portfolio
by jmlocatelli. 09/21/20 19:41
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
9 registered members (AndrewAMD, ozgur, ZeiX, sodiumchloride, 3run, distribution, kvm, Zheka, 1 invisible), 440 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
NewBorn, 3dvg, secretagentman, distribution, EditeY
18515 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Pixel Shader Issue #481166
08/08/20 20:41
08/08/20 20:41
Joined: May 2005
Posts: 785
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 785
Chicago, IL
I am using the Oldschool Pixel Shader for my current project. I want to make a 64x64 pixel window, but allow it to be bigger on screen.

So I set the window to 640 x 640, then apply the Oldschool Pixel Shader at 64 x 64.

It works, and each "pixel" is 10 x 10 actual pixels. however it seems to start halfway through a "pixel," so the first "pixel" in each column or row is only 5 x 5 or 5 x 10 pixels.

[Linked Image]

Is there any way to remove this offset so the full pixel begins in the corner?

Re: Pixel Shader Issue [Re: Dooley] #481167
08/09/20 10:35
08/09/20 10:35
Joined: Jun 2007
Posts: 1,334
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,334
Hiporope and its pain
That happens on scaled up panels. If that is the case there is nothing you can do but change the drawing system.

I would render the level over a 64x64 bitmap and scale it up by a post process view.

Re: Pixel Shader Issue [Re: txesmi] #481168
08/09/20 13:19
08/09/20 13:19
Joined: May 2005
Posts: 785
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 785
Chicago, IL
That's a better idea. I ended up making it 650 x 650 and putting a 5 pixel wide frame around it. The game jam allowed for having frames, so that was an easy remedy laugh

[Linked Image]

Last edited by Dooley; 08/09/20 13:20.
Re: Pixel Shader Issue [Re: Dooley] #481336
08/28/20 11:46
08/28/20 11:46
Joined: Aug 2020
Posts: 2
R
Raveeshyui Offline
Guest
Raveeshyui  Offline
Guest
R

Joined: Aug 2020
Posts: 2
Thanks for the info!


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