Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002357opensim[REGION] Scripting Enginepublic2008-10-08 02:032011-12-12 07:04
Reportermirceakitsune 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformPentium 4OSWindows XP Media CenterOS VersionSP3 32bit
Product Version 
Target VersionFixed in Version 
Summary0002357: llOffsetTexture causes texture rotation to change
DescriptionI tried using llOffsetTexture on a primitive. Every time this function executes the texture offset does change accordingly but the rotation might also change. This only happens with certain rotations however, this is my case and steps to duplicate:

- Initial primitive settings:

Sphere, texture repeats / scaling = 0.5 x 0.5 , texture rotation = 270, texture offset = 0.25 x 0.25.

- Script:

default
{
   touch_start(integer X)
    {
        llOffsetTexture(0.75, 0.75, ALL_SIDES);
    }
}

- Result:

The texture offset changes correctly to 0.75 x 0.75 but the texture's rotation becomes -90 from the 270 it was set to. Now every time you touch the prim you will notice the texture rotation keeps increasing by 0.02. First time you re-touch it after it jumped to -90 it turns to -89.98, then to -89.96 and so on. Normally the texture rotation should be totally unaffected by llOffsetTexture. Also try other mixes similar to the above it you can't reproduce, it happened to me in many combinations of rotations and offsets.
Additional InformationNoticed and tested on xEngine script engine, same behavior may or may not occur on DotNetEngine.
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (1 Region per Sim)
Physics EngineODE
Script Engine
Environment.NET / Windows32
Mono VersionNone
Viewer
Attached Files

- Relationships
parent of 0003644confirmed Negatively rotated textures rotate slightly further whenever any texture-modifying function is applied to the face 
related to 0003535confirmed texture rotation changes when llSetTexture gets called. 
Not all the children of this issue are yet resolved or closed.

-  Notes
(0010924)
Michelle Argus (reporter)
2009-04-22 11:01

I can confirm this. When a Texture has a negativ rotation the rotation changes each time llOffsetTexture() is used towards 0. Once the rotation is posetiv again, the value doesnt change anymore.

svn 9206
Linux 32/64 bit
Mono 2.01
Grid (1+ Regions)
(0012735)
greg0254 (reporter)
2009-08-05 11:50

I also confirm that this is happening. Texture rotations of 0.00 to 179.99 degrees work fine, and stay constant. However, a texture rotation of 180.00 to 359.99 degrees will get translated into a negative rotation, which will then increase by approximately 0.022 each time llOffsetTexture is called. Rotations entered as negative values directly also experience the same effect. For example:

   -Setting rotation to 180.00 and calling llOffsetTexture causes rotation to change to -179.99; calling it again changes the rotation to -179.97, and so on.
   -Setting rotation to -15.00 and calling llOffsetTexture repeatedly causes rotation to change to -14.97, -14.95, -14.93, -14.91, -14.89, -14.86, etc.

Using latest git version, Windows 32-bit, XEngine
(0019118)
makopoppo (manager)
2011-07-26 05:17

This issue still exists in OpenSim 0.7.2-dev

- Issue History
Date Modified Username Field Change
2008-10-08 02:03 mirceakitsune New Issue
2008-10-08 02:03 mirceakitsune SVN Revision => 6711
2008-10-08 02:03 mirceakitsune Run Mode => Grid (1 Region per Sim)
2008-10-08 02:03 mirceakitsune Physics Engine => ODE
2008-10-08 02:03 mirceakitsune Environment => .NET / Windows32
2009-04-22 11:01 Michelle Argus Note Added: 0010924
2009-04-27 04:05 thomax Relationship added child of 0003535
2009-04-27 04:05 thomax Relationship deleted child of 0003535
2009-04-27 04:05 thomax Relationship added related to 0003535
2009-05-14 10:24 Michelle Argus Relationship added parent of 0003644
2009-08-05 11:50 greg0254 Note Added: 0012735
2011-07-26 05:17 makopoppo Mono Version => None
2011-07-26 05:17 makopoppo Note Added: 0019118
2011-07-26 05:17 makopoppo Status new => confirmed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker