View Issue Details

IDProjectCategoryView StatusLast Update
0002337DraftBugpublic2017-05-31 16:43
Reportercahlfors Assigned Toyorik  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
PlatformPCOSLinux MintOS Version17.1 Rebecca
Summary0002337: Rectangle texture image broken
DescriptionAdding an image to a rectangle no longer works.
Steps To Reproduce1 Goto draft wb.
2 Set working plane to XY.
3 Create rectangle. It becomes black.
4 Add an image to the rectangle (view - draft - texture image). Nothing happens.
5 View from below. Image is visible.
6 Try to rotate rectangle so image comes on top instead by changing sign on lengths. Becomes mirrored.
Additional InformationIt turns out that some objects are created face down. This applies to rectangle, circle, ellipse and regular polygon, but not closed dwire or bspline.
The rectangle does accept a texture image, but the face is down and impossible to turn right without mirroring the image.
Tagstransparency
FreeCAD Information

Activities

cahlfors

2015-11-12 19:18

reporter  

Markering_006.png (41,425 bytes)   
Markering_006.png (41,425 bytes)   

yorik

2015-11-13 00:03

administrator   ~0006539

It still works normally for me... Are you sure you didn't set your working plane backwards or something?

yorik

2015-11-13 00:04

administrator   ~0006540

Also, you didn't give your freecad version.

cahlfors

2015-11-13 09:20

reporter   ~0006541

Sorry about the version. 0.16 was not available for choice. Here is the full version information:

OS: Linux Mint 17.1 Rebecca
Version:
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.5900 (Git)
Build type: None
Branch: master
Hash: be5e79601a58e3f70194797acb8dd2f807a5f3ae
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

If I set the working plane backwards, it would apply to all geometries? I just set it to XY and after that it says "top" in the tool bar.

yorik

2015-11-13 12:42

administrator   ~0006542

The working plane only applies to the next draft objects you will create in that working plane. Once they are created, they become independent from workingplane settings. But setting the working plane to XY should be ok...

Can you attach a freecad file here which shows the problem?

cahlfors

2015-11-13 15:13

reporter  

DraftShapes.fcstd (8,626 bytes)

cahlfors

2015-11-13 15:14

reporter   ~0006543

File DraftShapes attached

yorik

2015-11-30 22:01

administrator   ~0006569

For me everything seems to work as expected.

I can place an image on the rectangle without problems on the attached file (see screenshot). They are not flipped or anything. BTW the shapes don't appear black like yours... I wonder if there isn't a problem with your 3D driver...

yorik

2015-11-30 22:02

administrator  

screenshot.jpg (95,539 bytes)   
screenshot.jpg (95,539 bytes)   

cahlfors

2015-12-04 21:59

reporter   ~0006581

Maybe. I am using nouveau v1:1.0.10-1ubuntu2. Tried nvidia-340 v340.96-0ubuntu0.14.04.1. Same result. No other graphics issues that I have noticed.

cahlfors

2015-12-21 18:25

reporter   ~0006626

I tried also on this installation. Still broken, but in a different way:
OS: Ubuntu 14.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6078 (Git)
Build type: None
Branch: master
Hash: eb5ec62ccb7bfc873abe08efdb0759e88cdd5c43
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

cahlfors

2015-12-21 18:25

reporter  

Markering_005.png (148,551 bytes)   
Markering_005.png (148,551 bytes)   

cahlfors

2015-12-21 18:27

reporter   ~0006627

See file Markering_005.png for result. The numeral "2" refuses to go on right.

yorik

2016-01-05 19:28

administrator   ~0006671

Ah okay... You might need to rotate the rectangle, it depends on how you created the rectangle. Unfortunately so far there aren't enough controls to precisely position the picture, and the orientation that the shape will get on creation is unpredictable. I'm afraid we'll have to live with it until someone decides to implement better image mapping tools...

But I don't get rotated image like yours unless it is marked as rotated inside the jpg file (as cameras do). You might want to try opening the image in an image editing app like gimp and check if there is any rotation...

cahlfors

2016-01-09 15:26

reporter   ~0006697

The rectangles with the "2" above were created pairwise starting upper left and lower right, respectively, to check if the way they were drawn had any effect on the orientation of the image. You will notice that in the horizontal rectangles, the "2" is mirrored, or applied to the underside of the rectangle, depending on how you choose to see it. In Ubuntu, they are transparent and can be viewed from either side, as opposed to Mint.

Interestingly, as you suggest, Gimp can be used to rotate and mirror the images to suit as a circumvention. Awkward, but it works. Mint is more cumbersome because of the non-transparency, but flipping the rectangle so the image comes face up, in combination with Gimp to orientate the image to suit, should be possible.

I still consider this a code defect (no one could possibly have designed it to work this way intentionally!), but please feel free to close the bug and mark it as a known error instead. There might well be more important things to fix.

Thanks! =)

Kunda1

2017-05-31 00:58

administrator   ~0009210

@yorik shall we rename this ticket then to 'implement better image mapping tool' ?

yorik

2017-05-31 16:42

administrator   ~0009226

@Kunda1, why not, but that's a much broader subject that just one tracker issue. It might actually be best to close this one as "won't fix" and start something on the forum. There would be a lot to define for such a project.

I'll close this issue now, feel free any of you to reopen if needed.

Issue History

Date Modified Username Field Change
2015-11-12 19:18 cahlfors New Issue
2015-11-12 19:18 cahlfors File Added: Markering_006.png
2015-11-13 00:03 yorik Note Added: 0006539
2015-11-13 00:04 yorik Assigned To => yorik
2015-11-13 00:04 yorik Status new => feedback
2015-11-13 00:04 yorik Note Added: 0006540
2015-11-13 09:20 cahlfors Note Added: 0006541
2015-11-13 09:20 cahlfors Status feedback => assigned
2015-11-13 12:42 yorik Note Added: 0006542
2015-11-13 12:42 yorik Status assigned => feedback
2015-11-13 15:13 cahlfors File Added: DraftShapes.fcstd
2015-11-13 15:14 cahlfors Note Added: 0006543
2015-11-13 15:14 cahlfors Status feedback => assigned
2015-11-30 22:01 yorik Note Added: 0006569
2015-11-30 22:02 yorik File Added: screenshot.jpg
2015-12-04 21:59 cahlfors Note Added: 0006581
2015-12-21 18:25 cahlfors Note Added: 0006626
2015-12-21 18:25 cahlfors File Added: Markering_005.png
2015-12-21 18:27 cahlfors Note Added: 0006627
2016-01-05 19:28 yorik Note Added: 0006671
2016-01-05 19:28 yorik Status assigned => feedback
2016-01-09 15:26 cahlfors Note Added: 0006697
2016-01-09 15:26 cahlfors Status feedback => assigned
2017-02-10 04:59 Kunda1 Tag Attached: transparency
2017-05-31 00:58 Kunda1 Note Added: 0009210
2017-05-31 16:42 yorik Note Added: 0009226
2017-05-31 16:43 yorik Status assigned => closed
2017-05-31 16:43 yorik Resolution open => won't fix