Jump to content
ToniBartoli

Pixelated render at first

Recommended Posts

Hello there,

i found a little bug when a run my game, at first it's pixelated but when i press "Escape" to do a pause and then > Options and click on "Apply", the render become ok, and no longer pixelated.

He is two screenshots for comparison:

 

Before click on "Apply".

01.jpg

After "Apply" is clicked.

02.jpg

Can you explain me why? :)

 

It's like when the game is started, the options (Antialias etc...) are not enabled until we click on "Apply".

 

Thank You

 

Share this post


Link to post

Yeah, it looks like the MSAA mode is not set at start.

Share this post


Link to post

Okay, camera mutlisample mode is a per-camera setting. So this needs to be applied when the camera is created. I inserted this code into the FPSPlayer, VRPlayer, and Spectator scripts:

local aamode = System:GetProperty("antialias")
if aamode ~= nil then
	self.camera:SetMultisampleMode(aamode)
end

 

  • Like 3

Share this post


Link to post
Guest
This topic is now closed to further replies.
×
×
  • Create New...