|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hello! My name is Sergey.
How to translate a texture of object to absolute coordinates? For example,
to beginning of coordinates.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 02/11/2011 01:59 AM, Sergey wrote:
> Hello! My name is Sergey.
>
> How to translate a texture of object to absolute coordinates? For example,
> to beginning of coordinates.
>
the texture elements (pigment and normal) are subject to same
transformations as objects (scale, translate, rotate) the exception with
texture elements is finish ... it's not individually transformable like
pigment and normal are, but moves with the texture block.
for instance:
box {<0,0,0>, <1,1,1>
texture {T_Wood1
translate <0.5,0.5,0>
scale <0.5,0.5,1>
rotate x*90
}
for more details see the reference section 3.5 Textures
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Function "Translate" moves a texture concerning current coordinates. I want
to move a texture on the specified absolute coordinates, to specified place.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 02/11/2011 09:41 AM, Sergey wrote:
> Function "Translate" moves a texture concerning current coordinates. I want
> to move a texture on the specified absolute coordinates, to specified place.
>
>
hmmm ... perhaps I'm misunderstanding. From my previous example, the
texture applied to the box (once it's positioned on the box the way you
want it) it's "glued" to the object ... it moves with the box. If the
area of the texture isn't viewable after the box is transformed, again
scale, rotate, translate in the texture definition to reposition ...
maybe uv_mapping is really what you want. Only certain shapes support
uv_mapping ... Reference-> Textures -> UV Mapping
sorry if I'm confusing the issue
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> Hello! My name is Sergey.
>
> How to translate a texture of object to absolute coordinates? For example,
> to beginning of coordinates.
>
>
ALL textures originate from the origin and fill space to infinity.
ALL texture always follow the object to whitch it's applyed as that
object is transformed, as long as the transformation appens AFTER the
texture is applyed.
If you apply a texture to an object that is defined at the origin,
around coordinate <0,0,0>, then the texture is also from around the origin.
In this case, absolute and relative are the same.
If you then rotate, scale or translate the object, the texture will follow.
If the texture is applyed to an object that is not created at the
origin, you should do the following:
- Evaluate the position of the object relative to the origin.
- Translate the texture by minus that position: the texture is now
centered at <0,0,0>, or translate the object to the origin.
- Apply any other transformation you want to the texture.
- Translate it back to the desired location.
If you apply an image_map to an object, it's lower left corner is at
<0,0> and it extent to <1,1> and repeats to fill that plane. It extend
along the Z axis from minus infinity to infinity. You can then scale the
texture as needed.
In that case, place the object to witch it's applied accordingly.
If you use any maping option other than planar, the object MUST reside
centered at coordinate <0,0,0> when you apply the image_map.
Generaly, you should apply the texture to the object before you rotate
ant translate it. That way, if you then rotate or move the object, it's
texture will stay identical. It will also stretch with the object is you
scale it after the texture is applyed.
It's also a goo idea to create all your objects at or around the origin
then translate them to the desired location. It's particularly important
if you want to rotate or scale the object without those affecting the
location of the object.
A chair, table or lamp with it's base on the X-Z plane, a door with it's
hinge on the Y axis, a gear or wheel with it rotation axis along one of
the axis, a shelving unit or cabinet with it's back on the Y-Z or Y-X
plane,...
Alain
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thank you Alain and Jim!
You have correctly understood my problem. I am sorry, I badly understand
English. I use PROMT. But I have understood that direct function of moving
of a texture in absolute coordinates isn't present. To move a texture to the
beginning of coordinates, it is necessary to subtract from coordinates of a
texture of coordinate of object.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|