WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Fading/lightening-Problem and viz.go in module (https://forum.worldviz.com/showthread.php?t=405)

Johannes 09-02-2005 01:10 PM

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

farshizzo 09-02-2005 01:20 PM

Hi,

Try disabling lighting on the grid:
Code:

grid.disable(viz.LIGHTING)
Are you calling viz.go() in your main script and your module? viz.go() should only be called in the main script.

I got your email, but didn't have time to respond. I'll look at it again now.

Johannes 09-02-2005 02:22 PM

1 Attachment(s)
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

farshizzo 09-02-2005 02:56 PM

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)
If this doesn't help then you might just need to make the grid a brighter color.

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()

Johannes 09-02-2005 03:42 PM

1 Attachment(s)
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

farshizzo 09-02-2005 04:11 PM

1 Attachment(s)
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.

Johannes 09-02-2005 04:28 PM

1 Attachment(s)
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


All times are GMT -7. The time now is 11:53 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC