WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Antialiasing polygons (https://forum.worldviz.com/showthread.php?t=338)

tavaksai 05-03-2005 08:41 AM

Antialiasing polygons
 
Hello,

I want to enable antialiasing for all the vrml objects in my application.

I have been able to enable this for simple lines with the commands:

viz.enable(viz.LINE_SMOOTH)
viz.enable(viz.BLEND)

but the polygon equivalent

viz.enable(viz.POLYGON_SMOOTH)
viz.enable(viz.BLEND)

works only partially. That is, the vrml
objects do seem to get antialiased
but there are transparent lines in all
the objects making the scene look bad.

To see this, try loading the room and table that come with Vizard and enabling antialias.

How could I correctly enable antialiasing for vrml objects?

Thanks,
Max

farshizzo 05-03-2005 10:16 AM

Hi Max,

If you want to anti-alias your entire scene then I recommend using Full Screen Anti Aliasing (FSAA). Most graphics cards support this feature and it is built-in. Just go to your graphics card settings and set the FSAA value to 2x or 4x. You don't have to change any code in your script and it should make your scene look a lot nicer. Let me know if you need any help getting this working.

tavaksai 05-03-2005 01:21 PM

Hey Farshizzo,

Thanks for the tip. I enabled antialiasing
on my graphics card without any
problems.

Max


All times are GMT -7. The time now is 02:00 PM.

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