WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-09-2006, 03:28 PM
jrodman jrodman is offline
Member
 
Join Date: Jun 2003
Posts: 21
Image blur

We're trying to simulate visual degredation in humans.

Is there a way to blur the image that the user sees in Vizard? We tried fog and placing a semi-transparent sheet in front of the camera, but neither of those are quite right. We want something that looks like the camera is out of focus. Something that merges adjacent pixels together.
Reply With Quote
  #2  
Old 11-09-2006, 10:12 PM
k_iwan k_iwan is offline
Member
 
Join Date: May 2006
Posts: 115
Red face ...vizard plugins?

If I'm not mistaken...You need to create a custom renderer plug ins for Vizard to do this, or by using OpenGL Shader Language.

Since I'm only a 3d modeler, I don't have the head show you how this is done :P


Regards,
k_iwan
Reply With Quote
  #3  
Old 11-10-2006, 09:29 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
I have a sample script that performs a uniform blur over the entire screen. Is this what you are looking for? The script only works with the latest version of Vizard 3.0 and requires a decent graphics card that supports shaders. Are you able to use 3.0? Also, do you need this effect to work in stereo, or just mono?
Reply With Quote
  #4  
Old 11-15-2006, 01:43 PM
jrodman jrodman is offline
Member
 
Join Date: Jun 2003
Posts: 21
Quote:
Originally Posted by farshizzo
I have a sample script that performs a uniform blur over the entire screen. Is this what you are looking for? The script only works with the latest version of Vizard 3.0 and requires a decent graphics card that supports shaders. Are you able to use 3.0? Also, do you need this effect to work in stereo, or just mono?
Yes, we are using 3.0. I'm not sure if we have a decent graphics card, but I'd certainly like to try it. We only need mono.
Thanks!
Reply With Quote
  #5  
Old 11-15-2006, 02:40 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
I've attached a zip file which contains a script testBlur.py. This script depends on the included vizblur.py module. This example will only run on Vizard 3.00.1723 and above. You will need a graphics card that supports shaders.

Also, in the future please post Vizard 3.0 related questions in the Vizard 3.0 forum.
Attached Files
File Type: zip VizardBlur.zip (2.0 KB, 2037 views)
Reply With Quote
  #6  
Old 11-16-2006, 01:07 AM
k_iwan k_iwan is offline
Member
 
Join Date: May 2006
Posts: 115
Hi,

I tried it, but did not run.. seems like something is missing?!?

-------------------------------------------------------
FRAGMENT glCompileShader "" FAILED
FRAGMENT Shader "" infolog:
ERROR: 0:4: '{' : syntax error parse error
ERROR: 1 compilation errors. No code generated.
glLinkProgram "" FAILED
Program "" infolog:
Link failed. All shader objects have not been successfully compiled.
FRAGMENT glCompileShader "" FAILED
FRAGMENT Shader "" infolog:
ERROR: 0:4: '{' : syntax error parse error
ERROR: 1 compilation errors. No code generated.
glLinkProgram "" FAILED
Program "" infolog:
Link failed. All shader objects have not been successfully compiled.
-----------------------------------------------------------
a "vizblur.pyc" was created in the same folder after executing this demo.

I'll try again tonight. (I'm running on latest beta version... VizardR3 b3)... next time I will post under Vizard 3 forum.

Regards,
Iwan

Last edited by k_iwan; 11-16-2006 at 01:09 AM.
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 03:00 PM.


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