WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-02-2005, 01:10 PM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
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
Reply With Quote
  #2  
Old 09-02-2005, 01:20 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
  #3  
Old 09-02-2005, 02:22 PM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
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
Attached Images
File Type: png grid.png (29.1 KB, 1628 views)
Reply With Quote
  #4  
Old 09-02-2005, 02:56 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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()
Reply With Quote
  #5  
Old 09-02-2005, 03:42 PM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
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
Attached Images
File Type: png grid1.png (17.0 KB, 1624 views)
Reply With Quote
  #6  
Old 09-02-2005, 04:11 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Attached Images
File Type: jpg screen.jpg (59.5 KB, 1625 views)
Reply With Quote
  #7  
Old 09-02-2005, 04:28 PM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
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
Attached Images
File Type: png grid2.png (77.8 KB, 1636 views)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:16 AM.


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