Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006989opensim[REGION] OpenSim Corepublic2014-02-01 08:152015-04-11 04:27
Assigned ToRobert Adams 
PlatformPCOSWindowsOS Version8.1
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006989: Map Tiles: Prims with diagonal GREATER than TexturePrimSize do not have colour applied
DescriptionThere is a change in the Warp3D map tiles since the recent updates.

Some simple "blank" texture prims with a diagonal greater than the set "TexturePrimSize" new OpenSimDefaults.ini parameter are showing as pure white.

I changed various things like making the colour darker, changing shininess and taking away nearby "lights" features and that makes no difference.

I think it is the case that the prim colour is not being applied for larger prims that have the blank texture (perhaps all textures) for objects whose diagonal is GREATER than TexturePrimSize. Blank (or texture) AND colour should be applied.

Smaller prims do seem to be coloured correctly. I altered the TexturePrimSize and showed this is the case as the colour comes back when the prim diagonal is LESS than TexturePrimSize.
TagsNo tags attached.
Git Revision or version numberr/24317
Run Mode Grid (Multiple Regions per Sim)
Physics EngineODE
Script Engine
Environment.NET / Windows64
Mono VersionNone
Attached Filesjpg file icon Warp3D-Example-of-White-Textured-Objects.jpg [^] (29,391 bytes) 2014-02-25 02:38

jpg file icon Warp3D-Texture-on-40mx40m-Prim.jpg [^] (325,140 bytes) 2014-02-25 02:49

- Relationships

-  Notes
aiaustin (developer)
2014-02-24 02:43

The problem looks the worst with prims greater than TexturePrimSize which have a "Blank" applied texture. As those shows as pure white. Applying the prim color rather than the texture itself to blank textured larg prims would make the map look reasonable in most cases. But colour can be applied to any textured prim and may make a marked difference to the prims appearance in some cases.
Robert Adams (administrator)
2014-02-24 20:30

Are there any Warp3D error messages in the log?

The problem looks to be because of an enhancement to texture prims larger than TexturePrimSize. Before, such prims just got the color. Now it attempts to add the texture to the material and must be messing up surface material.
Robert Adams (administrator)
2014-02-24 21:11

My testing standalone shows the code is basically working. I'm thinking there is some problem with fetching and converting the texture in grid mode. The code looks like it should fall back correctly but something must be wrong.

For a short term fix, you can set
   TexturePrims = false

This will restore the previous operation of just coloring the prims rather than trying to apply the texture to large prims.
aiaustin (developer)
2014-02-25 02:37
edited on: 2014-02-25 02:39

Thanks Robert... and understood that I can make the colour come back by not texturing the prims. I can change the behaviour simply by changing the TexturePrimSize to be larger than the affected objects too.

I checked the OpenSim.log and no Warp3D errors show at all.

It looks to me like the texture is correctly applied (including texture "blank" but then the colour is not ADDED... so blank textured coloured surfaces such as flat roofs look bright white versus the normal muted grey colours we have.

See example image Warp3D map tile " Warp3D-Example-of-White-Textured-Objects.jpg" (attached) and the two buildings outlined in red with roof prims larger than the set TexturePrimSize which have a blank texture and grey colour. They should show in the grey colour but are simple white. the other builds show with grey roves as they are made up of a number of smaller prims each with a diagonal less than TexturePrimSize.

aiaustin (developer)
2014-02-25 02:49

A close look at the map tile parts that are textured also makes me wonder if the x and y repeats are being applied correctly? A large 40m round piece of cobblestones that should have 40 repeats of the texture each way seems to render with just one instance of the texture on the Warp3D map. See "Warp3D-Texture-on-40mx40m-Prim.jpg" (attached)
aiaustin (developer)
2014-04-03 12:42
edited on: 2014-04-03 12:43

I wonder if its possible to partially fix this in time for the 0.8.0 release by adding a check that if the texture to be applied to a face that is larger than the TexturePrimSize then IF the texture is the BLANK texture, then just add the face colour?

Ideally, texture AND colour should BOTH be applied.

aiaustin (developer)
2015-04-11 04:27
edited on: 2015-04-11 13:19

Just a note that this is still an issue as far as r/25920. Any prim or mesh with a diagonal larger than TexturePrimSize (default 48, but also tested at the lower value of 12 and a higher value) that has a blank texture but a colour applied shows as pure white. The colour is not being applied. I still wonder if my suggestion might be a fix of the code being changed to check if the face has a blank texture and if so only applying the colour and not trying to apply the texture in that special case.

As Robert suggested, to work around this issue, in my OpenSim.ini files I have set

    TexturePrims = false

- Issue History
Date Modified Username Field Change
2014-02-01 08:15 aiaustin New Issue
2014-02-01 08:18 aiaustin Description Updated View Revisions
2014-02-02 06:22 Robert Adams Assigned To => Robert Adams
2014-02-02 06:22 Robert Adams Status new => assigned
2014-02-23 14:25 aiaustin Note Added: 0025286
2014-02-24 02:22 aiaustin Note Edited: 0025286 View Revisions
2014-02-24 02:22 aiaustin Note Deleted: 0025286
2014-02-24 02:43 aiaustin Note Added: 0025294
2014-02-24 20:30 Robert Adams Note Added: 0025310
2014-02-24 21:11 Robert Adams Note Added: 0025311
2014-02-25 02:37 aiaustin Note Added: 0025312
2014-02-25 02:38 aiaustin File Added: Warp3D-Example-of-White-Textured-Objects.jpg
2014-02-25 02:39 aiaustin Note Edited: 0025312 View Revisions
2014-02-25 02:39 aiaustin Note Edited: 0025312 View Revisions
2014-02-25 02:49 aiaustin Note Added: 0025313
2014-02-25 02:49 aiaustin File Added: Warp3D-Texture-on-40mx40m-Prim.jpg
2014-02-25 02:52 aiaustin Description Updated View Revisions
2014-04-03 12:42 aiaustin Note Added: 0025668
2014-04-03 12:43 aiaustin Note Edited: 0025668 View Revisions
2015-04-11 04:27 aiaustin Note Added: 0027991
2015-04-11 13:19 aiaustin Note Edited: 0027991 View Revisions

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker