![]() |
How to draw a circle?
Hi,
I'm trying to draw two flat circles side by side on which I need to put textures on (a sphere is no good due to the curvature). Is there a simple command to create a circle in Vizard (I have looked but the nearest so far is a sphere) or would I have to use an mathematical operator to do this? Thanks |
You could create circular images in an image editor and apply those to a texture quad. Use an image format that supports alpha channels to make the areas outside the circle transparent.
The Python Imaging Library has functions to draw 2D shapes but I'm not sure if you can easily add textures to them. |
|
Hi Jeff,
thanks for that, I've decided to use to quads and apply the textures to them instead. I'm trying to code for the textures in these two quads to both move at independent speeds in a downward motion (like lines moving down a page). In the past I've used the viz.MainView.move command but obviously that moves the whole viewpoint and so the whole quad moves (and then disappears) rather than the textures inside them. Here is the code written so far: Code:
import viz Thanks |
You can try changing the texture coordinates to move the image on the quad. In the Textures section of Vizard Teacher in a Book, available from our downloads page, there is an example that moves clouds across a window by manipulating the texture coordinates of the window object.
|
All times are GMT -7. The time now is 10:04 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC