Hi Michal,
On Tue, 2003-10-21 at 17:57, Michal Idziorek wrote:
> hi
> lets say i have already an object, (i.e, earth) that is simply a
> LatLongSphere with proper texturing.
> Is it possible(, and if yes, how ? ) to apply now a second texture (partly ,
> over the existing one, and apply it in a way,
> that it looks like a circular shadow on the earths surface. (i nedd to
> simulate a sun eclypse) ,
> i was told openSG supports mutlitexturing . (??) but i cant find anything
> on tis topic in the docs.
to use multi-texturing all you need to do is add another TextureChunk to
the Material. This works for everything derived from ChunkMaterial,
which right now fits all materials.
The problem I see is generating the texture coordinates. Without them
nothing is going to happen, so you definitely need them. I don't think
there's an automatic way of doing that, but that depends on what you do
with your sphere in terms of transformations.
The most generqal way would be to generate the texture coords yourself
and add them to the exisitng geometry, that would give you total
flexibility.
Hope it helps
Dirk
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users