#1
|
|||
|
|||
Fading/lightening-Problem and viz.go in module
Hi,
is there a command to turn off the "fading effect" the further the object is from the view. It is a problem, for the grid mode, as the grid is not very visible about a m from the view as it is not perpendicular to the view but parallel. I externalized some classes to a seperate module (the balls). The funny thing is, that the original program only works (meaning shows the balls) if I let viz.go at the beginning of the module. If I omit viz.go in the module it just does not show the ball but I get no error) Did you get my email on monday? Johannes |
#2
|
|||
|
|||
Hi,
Try disabling lighting on the grid: Code:
grid.disable(viz.LIGHTING) I got your email, but didn't have time to respond. I'll look at it again now. |
#3
|
|||
|
|||
Thank you!
1. As the grid is just a texture on a quad I did gridCoord= viz.add('../resources/joNew/gridLevel5.jpeg') quad.texture(gridCoord) quad.disable(viz.LIGHTING) But it did not help (see attached picture). 2. Are you calling viz.go() in your main script and your module? viz.go() should only be called in the main script. Yes, I know that I should call viz.go() only in the main script. But if I do not also call it in the module it will not show me the balls that should... If I do call viz.go() in the module it works fine but I know this is not correct! Johannes |
#4
|
|||
|
|||
1) I think it is an artifact of mipmapping, which causes the texture to become more blurry far away. See if disabling mipmapping will take care of the problem.
Code:
grid.appearance(viz.TEXNEAREST) 2) You are probably importing objects in the global scope of your module and importing the module before you call viz.go(). Remember that you can only add objects after viz.go() is called. So try importing your module after viz.go() |
#5
|
|||
|
|||
Problem two was exactly what you suggested, thank you.
Problem 1 still persists also it improved (see attached). Making it brighter is difficult, as it is white. It looses the horizontal lines. Johannes |
#6
|
|||
|
|||
Hi,
Instead of using viz.TEXNEAREST try something else. Go into your graphics card settings and turn on Anisotropic Filtering. I set it to 16x and it helped improve the image. I've attached a screenshot of how to change this setting using an nVidia card. |
#7
|
|||
|
|||
Thank you, that helped, the horizontal lines do not show great but that it is much better now than it was before.
I guess we can live with that. I attached a screenshot. Thank you and have a great weekend! Johannes |
|
|