hate stupid problems

Posted By: tompo

hate stupid problems - 04/30/08 18:16

Can someone tell me why it's not working?!
Still can see far far away from camera \:o
Only fog color is changing, fog and view distance - not

camera.clip_near = 10;
camera.clip_far = 1500; //nothing happened when changed
var clip_range 1500; //nothing happened when changed
d3d_fogcolor4.red = 155;
d3d_fogcolor4.green = 155;
d3d_fogcolor4.blue = 155;
fog_color = 4;
camera.fog_start = 1000; //nothing happened when changed
camera.fog_end = 1400; //nothing happened when changed


Posted By: Nems

Re: hate stupid problems - 05/01/08 01:35

Use % maybe, works for me like this

camera.fog_start = 0.05 * fog_range; // fog at 5% of fog_range
camera.fog_end = 0.8 * fog_range;// fog till 80% of fog_range
Posted By: Spirit

Re: hate stupid problems - 05/01/08 06:49

I think when he cant set the camera values, giving him the advice to set them to a percentage wont help him much.

Tompo, if you type some code and it does not work you should first check if your code is executed at all. Put a breakpoint or a beep() in your function and look if its running at all. If it is then the second possibility is that the camera values are reset at some other place in your code.




Posted By: tompo

Re: hate stupid problems - 05/01/08 08:13

 Quote:
Tompo, if you type some code and it does not work you should first check if your code is executed at all.

Already done... fog's color is changing.
And this code is without loop, so it's not about reset by another function
Posted By: tompo

Re: hate stupid problems - 05/01/08 12:45

Solved
Revraction shader creates second view
even not activated.
Posted By: testDummy

Re: hate stupid problems - 05/01/08 13:11

If self-solved, well done, tompo.
We are confident, that potentially, 'you' are a problem solver at least on par with the common segment, and pushing tense, on paths not yet traveled, a greater walking solvent than a larger slice of those, 'you' should be.
Posted By: tompo

Re: hate stupid problems - 05/02/08 07:32

Still have a problem / don't understand what's going on.
HERE is a link.
Posted By: Quad

Re: hate stupid problems - 05/02/08 09:58

try upgradin to 7.07, after playing with values it works, but 7.05 seems to be the problem.


© 2024 lite-C Forums