![]() |
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
Hey Farshizzo,
Thanks for the tip. I enabled antialiasing on my graphics card without any problems. Max |
![]() |
|
|