WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-16-2016, 02:15 PM
Eugene Eugene is offline
Member
 
Join Date: Jun 2016
Posts: 6
Gradient of color

Hi, I'm trying to create a gradient shade for a sphere with alpha(0.1). May I know how can it be done in vizard? Currently, the shade is constant throughout the sphere.

My objective is to create a blue atmosphere around the earth that is darker on both ends.

Alternatively, I'm also trying to generate a glowing effect around the earth to improve but not sure how can I do it. Appreciate your advice.

The Earth object is a OSGB file created in 3ds Max.

code:

import viz
import vizshape
import vizfx

viz.setMultiSample(8)
viz.fov(60)
viz.go()

earth = viz.addChild('earth.osgb')
earth.setScale(0.01,0.01,0.01)
earth.setPosition(0,1,0)
earth.addAction( vizact.spin(0,1,0,20) )
vizfx.addDirectionalLight(euler=(-45,90,45), color=viz.WHITE)


earthAT = vizshape.addSphere(radius=2.2,slices=60,stacks=60, axis=vizshape.AXIS_Y)
earthAT.setPosition([0, 1, 0])
earthAT.color(viz.AZURE)
earthAT.alpha(0.15)


Thank you.
Attached Thumbnails
Click image for larger version

Name:	earth.JPG
Views:	713
Size:	86.0 KB
ID:	858  

Last edited by Eugene; 11-16-2016 at 02:18 PM.
Reply With Quote
 


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
Change the color of button Eugene Vizard 1 06-23-2016 05:25 AM
Color roobert Vizard 4 07-26-2014 12:45 PM
Change textbox color? renama Vizard 2 10-19-2010 07:44 PM
trouble changing subnode (child node) color, alpha, etc. michaelrepucci Vizard 7 01-14-2009 08:38 PM
Changing the Color of On-the-Fly Objects vjosh Vizard 1 01-04-2005 11:48 PM


All times are GMT -7. The time now is 10:18 AM.


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