How to draw a circular(?) Texture (like the rings of Saturn)
How to draw a circular(?) Texture (like the rings of Saturn)
Hi,
I'm new here & to Irrlicht... just started working with this nice engine
2 weeks ago and my first project is a little solar system. Now I stuck
at the point, where I wanted to draw the rings of planets (such like saturn,
jupiter ect..). I have all the textures, but don't now how to draw them,
so that they appear circular on the surface. Would be very nice if someone
could tell me how to do that many thx in advance
bye
paddy
I'm new here & to Irrlicht... just started working with this nice engine
2 weeks ago and my first project is a little solar system. Now I stuck
at the point, where I wanted to draw the rings of planets (such like saturn,
jupiter ect..). I have all the textures, but don't now how to draw them,
so that they appear circular on the surface. Would be very nice if someone
could tell me how to do that many thx in advance
bye
paddy
You could do it this way:
Draw a single quad with the correct transformation so that it intersects with the planet as the rings would (flat surface going through the middle of the planet) and you texture that quad with an image which is a circle representing the ring with the required transparency so that when rendered it only shows the actual ring.
Does that make any sense? I don't blame you if it doesn't!
Draw a single quad with the correct transformation so that it intersects with the planet as the rings would (flat surface going through the middle of the planet) and you texture that quad with an image which is a circle representing the ring with the required transparency so that when rendered it only shows the actual ring.
Does that make any sense? I don't blame you if it doesn't!
hmpf.... i don't get it ... tried to create a rotated texture in Photoshop,
but i didn't find a tool there which does the rotation :/ ... could someone
help plz how to do that in photoshop ?
if i have this done, it leads me to another problem how do i create
a simple quad ? I think I can't use a Billboard, cause the rings-plane
should not rotate (BB's are always parallel to the viewers plane).
Do I have to set the vertices in a Meshbuffer by myself ? If so, it would
be very nice if you'd post an short example
many thx for that !!
greets
paddy
but i didn't find a tool there which does the rotation :/ ... could someone
help plz how to do that in photoshop ?
if i have this done, it leads me to another problem how do i create
a simple quad ? I think I can't use a Billboard, cause the rings-plane
should not rotate (BB's are always parallel to the viewers plane).
Do I have to set the vertices in a Meshbuffer by myself ? If so, it would
be very nice if you'd post an short example
many thx for that !!
greets
paddy
Check out the custom scene node example, i dont think it uses mesh buffers but it would do the trick for you, hybrid knows all about the ins and outs of mesh buffers so it's his place to chip in usually
What do you mean by rotated texture? You can rotate by pressing Ctrl-T and then right clicking and selecting rotate then pull round a corner of the selected area to rotate it, is that the sort of rotation you want?
What do you mean by rotated texture? You can rotate by pressing Ctrl-T and then right clicking and selecting rotate then pull round a corner of the selected area to rotate it, is that the sort of rotation you want?
Ah ok, I should be able to create a quad using a custom scene nodeJP wrote: What do you mean by rotated texture? You can rotate by pressing Ctrl-T and then right clicking and selecting rotate then pull round a corner of the selected area to rotate it, is that the sort of rotation you want?
thx for this hint
now to the rotated texture... I've made a little draw, so that you understand
what my problem is. I have this rectangular texture an have to rotate it
around an inner circle.
-->
i hope that this is understandable
I may could create an own brush with the given rect. and then rotate
it by hand, but isn't there any more comfortable way to do this ?!
many thx for your efforts JP
greets !
paddy[/img]
-
- Posts: 368
- Joined: Tue Aug 21, 2007 1:43 am
- Location: The Middle of Nowhere