WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-16-2010, 08:46 AM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
Question Glow effect on a texture?

Is there a way of obtaining a glow effect on a texture?
Reply With Quote
  #2  
Old 10-18-2010, 06:20 PM
Veleno Veleno is offline
WorldViz Team Member
 
Join Date: Sep 2005
Posts: 148
Hi Renato Lima,

Can you elaborate a little on what kind of effect you are looking for? Specifically, are you asking primarily about making an object look self-illuminated, or do you want a more complex effect? Can you post an image of what you are trying to achieve?
Reply With Quote
  #3  
Old 10-18-2010, 08:00 PM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
Hello Veleno, I am trying to produce something similar to the Bloom Filter (which creates a glowing halo around bright objects) which is provided by PANDA3D. I don't know if Vizard has a plugin for doing this out of the box though.
Reply With Quote
  #4  
Old 10-19-2010, 12:10 PM
Veleno Veleno is offline
WorldViz Team Member
 
Join Date: Sep 2005
Posts: 148
Hi Renato,

This sort of effect is typically done though shaders (occasionally it is also done through billboarded sprites). Vizard has support for GLSL vertex and fragment shaders. I don't have such a shader on hand, but you may be able to find one online if you don't want to program one yourself.

Info on how glow shaders are implemented:
http://www.gamasutra.com/view/featur...ltime_glow.php

Info on writing shaders:
http://www.opengl.org/code/category/C20
Reply With Quote
  #5  
Old 10-24-2010, 10:57 AM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
Thank you. In other words: Vizard does not support glow effects out of the box.
Reply With Quote
  #6  
Old 10-25-2010, 04:27 AM
Veleno Veleno is offline
WorldViz Team Member
 
Join Date: Sep 2005
Posts: 148
I can see you didn't like my answer. Vizard provides a set of tools for the user to work with, but it is up to the user to supply the raw materials. It has support for any GLSL pixel shader you wish to use. It is up to you to provide them much as you would a texture, environment, or the coding for your application.

Alternatively, for simple objects like lightbulbs, you can create a billboarded quad textured with a white map with a circular gradient in the alpha channel, and place these around the scene where you want the glow. You need to be careful to avoid having the glow intersect with other transparent objects as this can cause draw order problems. This was the method used in most games before complex shaders were around.

Last edited by Veleno; 10-25-2010 at 04:31 AM.
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to render a texture of the transparent object and then blur it whj Vizard 1 09-25-2012 03:15 PM
How to apply shader and render texture to an object whj Vizard 0 04-23-2010 12:23 PM
Translating a texture and its Alpha shivanangel Vizard 5 12-02-2008 04:52 PM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 12:14 PM
how I can get my texture to appear exactly as is defined mspusch Vizard 1 04-23-2005 12:12 PM


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


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