Alienhead Posted March 9 Share Posted March 9 Seems to be absent, tested in code and with one-liner ( cam = CreateCamera(world) ; cam:SetRefraction(false) ) Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Josh Posted March 10 Share Posted March 10 If I run that code in the editor console it works: cam = CreateCamera(world) cam:SetRefraction(false) Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted March 10 Author Share Posted March 10 Hmmm but in code it drops out at this command. cam:SetRefraction(false) Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Josh Posted March 10 Share Posted March 10 Are you sure that cam is a camera? Maybe it is an entity that needs to be cast to a camera? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted March 10 Author Share Posted March 10 I cant explain it Josh, just moved it to the top of the stack and it worked. Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Solution Alienhead Posted March 10 Author Solution Share Posted March 10 this worked cam:SetRefraction(false) cam:SetFov(60) cam:SetSsr(false) this didnt cam:SetFov(60) cam:SetSsr(false) cam:SetRefraction(false) Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Josh Posted March 10 Share Posted March 10 You are using Visual Studio code and launching the game from the IDE, right? If so, it should be stopping on the line that causes the problem. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted March 10 Author Share Posted March 10 I am.. using fast debug. Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Josh Posted March 10 Share Posted March 10 3 minutes ago, Alienhead said: this worked cam:SetRefraction(false) cam:SetFov(60) cam:SetSsr(false) this didnt cam:SetFov(60) cam:SetSsr(false) cam:SetRefraction(false) This does not make any sense to me. There's nothing in the engine that would cause this to occur. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.