rotation and resizing relative points (and then some)

Flesh out your ideas for new or improved Inkscape features before submitting a request.
bass
Posts: 7
Joined: Fri Nov 15, 2013 12:04 am

rotation and resizing relative points (and then some)

Postby bass » Fri Nov 15, 2013 11:15 pm

@the Inkscape community, for your judgement if it's missing or not, or leading to something else maybe better
---
indeed; not a request: I'll reserve this for other users. Just an idea:
---


kudo's kudo's kudo's kudo's donations, and..

- no resize centre point (as there is with rotating)
(as is possible with {copy-paste test (op prtscr) - Klembord-2 (op schaal).png})
- no relative rotate memory
(same with perspective handles reverting back to rectangle, and maybe
size persentages (aspect ratio/original size memory))
- no constraints, in the sense of
{trailer back-wheels angle = -33% of truck angle (negative/opposite)}
{kingpin point-on-point}
{maybe a drag function based on the wheels! fun.. maybe a game :)}
(I have added a layer in the svg for the steering wheel angles.)
- no double click to rotate a group within a group
- relocate/replace/reposition a modified part according to a corner, the cross, or a var, or array (with translations based on..)
- I know explorer doesn't feature window stack (un-)interlocking (freely move/reposition individual windows) and interact through see-through holes (a bit like 'ole'), but Inkscape maybe can project on other Inkscape (or partner, such as Gimp?) window behind it, so that it looks like the window in front has a hole (/mask) in it (designated area). (Skinned windows you can look around, here you can see through, to see what I mean.) With some sort of/a bit more (mutual) data sharing than image alone of course, initially getting image data* in a certain resolution. - We'll see about a Blender window behind an Inkscape window would make, but, I guess the (modified) *X-window system (Linux) is the place of implementation..

- yes (kudo's) to everything else!

Perhaps this is more a CAD thing (though), as music is for music programmes. (First few points.)

And a smiley.

Best wishes with everything practical and impractical,
B.

“Python rules! And/but I don't.”


1.jpg
pasting in place (actually, a bit off;)
1.jpg (72.8 KiB) Viewed 12676 times


Screenshot(s) credits:
- Inkscape
- Google Maps (old map)
- ARISTO-GEO_DREIECK_1550_indiziert_transparent (commons.wikimedia.org).png
- e.a.
- the pin in the mock-up I got from iconfinder.com (no relations/sponsoring).

Infinite Screen is great too (not used). As is Microsoft.
http://ynea.futureware.at/cgi-bin/index.pl
(link Inkscape relation: virtual screens/high resolution maps larger than screen resolution when openstreetmap is not available. But not used in this case.)
Attachments
3.jpg
stage 3; keeping a backup truck (it might crash..;) -har
3.jpg (61.1 KiB) Viewed 12676 times
2.jpg
resizing (on the cross), matching scale in this case
2.jpg (81.29 KiB) Viewed 12676 times

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: rotation and resizing relative points (and then some)

Postby Lazur » Sun Nov 17, 2013 11:11 am

Hi.

Some parts that I could understand in your description are already implemented.

You can move the centre of the resizing as described here by Ragnar:
http://www.inkscapeforum.com/viewtopic.php?f=5&t=16397

If you open the xml editor, you can see if transformation values are added or not.
If the object has some transformation values, by deleting those from the lines, it will get back to it's original shape.

By double clicking, you can enter a group, and rotate it's parts as you want if you click them on twice, if they are groups or not.

bass
Posts: 7
Joined: Fri Nov 15, 2013 12:04 am

Re: rotation and resizing relative points (and then some)

Postby bass » Wed Nov 20, 2013 12:38 am

That's fantastic! Thank you for your time and effort to respond to my post Lazur URH. I was a bit economical by not checking the latest (sub)version*, sparing the server..

I'll try your suggestion, and I hope others benefit immensly with this as well.

Thank you for your tip; I find the xml editor (/source editor) very useful, and I'll investigate the instructions you've provided.

In the meantime, I'm pretty sure some aspects goes beyond Inkscape itself (into x-window/OS), but I'm happy to post them here if you want them. While patiently waiting for my post to be approved, I had this ready (not a problem if it possibly leads to completely something else;), with..

{
Apologies if adding more than three attachments is not allowed, there is a three limit (on your forum server bar external links),
/*I've also combined images 4 and 5, because I had 7..*/
and the fact there's no gate yet on the picture is not relevant (for me). (There already is a gate; this is a photo without gate workers;)

One other thing:
Resizing with the opposite handle may also be too far, ie. you'd have to zoom out to see the two points reaches/nearing destination. But I'll check it out.

(The trailer is a 'Heiwo HZCT 32', the truck is a Scania R 420 A 4x2)

Only if you think the resize cross, or source-destination point(s)* is a good idea. (*And creating a transformation based on these points; as in 'paste formatting')
}

I'll now look into the link you gave me. *It appears it's provided with [version 0.48 Dev version - 12685]. I'll try to update, and hope that the cross position can be saved or aligned, oi I'm asking too much.. way to much. Thanks again Lazur URH! Best inspiration, and "hope this helps" positively.

I'm talking too much.

Yours,
truly and sincere,
IANM (I am not Messi) B.

“Some thing's better to have now than have to wait for it; give prevailance to something better!”

Resources:
- LecternCourt (Wikimedia Commons).jpg
- a picture of a music stand from a webshop
Attachments
'see-through' x-window system mock-up.jpg
mock-up of a window-on-window (not interacting;), Inkscape window with a hole in it (probably x-window business). Thank you. Drive through!
'see-through' x-window system mock-up.jpg (74.09 KiB) Viewed 12619 times
truck 1h, new mesurements.svgz
svg file of the truck (always keep an 'Inkscape (layered, non-zip) svg' backup of your work)
(8.28 KiB) Downloaded 257 times
4 - resize cross mock-up (ea).jpg
There is a cross! Just use Ctrl + Shift (v12685). And trying to punch a new hole (busy yet still picture) (has some more ideas added, just for inspiration if you like what you see)
4 - resize cross mock-up (ea).jpg (173.77 KiB) Viewed 12619 times

bass
Posts: 7
Joined: Fri Nov 15, 2013 12:04 am

Re: rotation and resizing relative points (and then some)

Postby bass » Thu Nov 21, 2013 10:39 pm

Allow me to correct a (two, three) grammar issues (I made):
(as is possible with {copy-paste test (op prtscr) - Klembord-2 (op schaal).png})

• the {(..).png} was actually renamed: being second attached screenshot '2.jpg'
• "as is /technically/ feasable", sure, but as it shows and was pointed out, was already (made) available (possible) in the version I was using (0.48.4 r9939) :) (rotate cross will magically appear where the rotation cross was set, and works; 'cross' snaps to its object, and 'object' snaps externally:)
I keep smiling.
O, now I remember what I meant by "possible"; as long as one point is planned/put/placed at the edge.. so, that is for older installed Inkscape versions a work-around.

(6th attachment:)
There is a cross! Just use Ctrl + Shift (v12685).

• I pointed to v12685, that is: not "v", but (version) R12685

As for CAD: I came accross a great (IMO) toy, also exporting SVG: Rick Parris' WinGeom, of math.exeter.edu (http://math.exeter.edu/rparris/wingeom.html). Speaking of points; It's based on working with points. A tip for playing with just a great toy. Nice! (Viewport is also bounding box, as shown in the attachments..)

Don't worry; I'll leave it here, and I won't update the truck.svg with another version, to avoid clouding your server ánd this reader space!

"as for drag" {maybe a drag function based on the wheels! fun.. maybe a game :)}

with drag resistance side-ways in relation to forwards (without brakes), without icy roads.. just a thought in or out of the box ;)

- no viewport, but command-line:
for music notation there is Jef Moine's abcm2ps, also producing directly to .svg, with binaries available at abcplus.sourceforge.net/#abcm2ps
(Historically requires recalculation for the entire sheet, if a note is modified or added.)

Yours,
B. Aside

“Surely some punctuation but you seem forgiving people.”
Attachments
WinGeom export test.svg - Schermafdruk-1.png
WinGeom export test.svg - Schermafdruk-1.png (46.87 KiB) Viewed 12609 times
WinGeom export test.svg
(8.88 KiB) Downloaded 291 times

bass
Posts: 7
Joined: Fri Nov 15, 2013 12:04 am

Re: rotation and resizing relative points (and then some)

Postby bass » Sun Dec 08, 2013 10:15 am

Here's a view of a camera facing backwards. I'll post this so you'll get the full picture. I hope not to bother you more, and that I can leave the subject with this.
Pioneer AVIC D3 screen.png
note: it's not 480×254 though; more likely it's 480×234 (× rgb), so it's probably not pixel-perfect.
Pioneer AVIC D3 screen.png (14.65 KiB) Viewed 12375 times


Nice feature! As you can see this can already be achieved. :)

I'll include the new truck compressed svg file which I used to thouroughly draw a line of view, and to find a place of origine (mount point). Very well done.

Above all, have a lot of fun. With anything fun.

Yours,
some guy.

Credits:
- Parent Dad Hold Child Hand - 11954220501933863587liftarn_Adult_and_child (clker.com, by ocal).svg
Attachments
truck with hielcamera.svgz
(17.03 KiB) Downloaded 241 times

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: rotation and resizing relative points (and then some)

Postby Lazur » Sun Dec 08, 2013 11:24 am

Hi!

Image


There is a perspective extension and an envelope extension for path.
To distort raster images alike, you would need to use a raster editor program, like gimp.




I changed my os to linux and not so familiar with how to run that program.
Know about geogebra that can construct in 2D quite good.
Now I'm curious what's that "high-precision geometric constructions in both two and three dimensions" is referring.
Most of the 3D programs I know about are polygon based, and even autodesk's solid modelling lacks the power of that.
I guess that is still largely based on polygon modelling, at least at the rendering.


Image


Are you after creating drawings that are being displayed exactly in their original scale on screen?
There are some screen sizes in pixels (usually named as screen resolution incorrectly), and
the size of the display size in inches can vary even more.
It is possible to scale the drawing for one screen being used with no problem.
Or did I missed something?


On that truck template
do you want to put a camera below the truck?
Isn't most of the view blocked by the wheels?

bass
Posts: 7
Joined: Fri Nov 15, 2013 12:04 am

Re: rotation and resizing relative points (and then some)

Postby bass » Sun Dec 15, 2013 11:10 am

Hello Lazur URH,

first thank you for your prompt reply, I'm a bit late, and for your comments.

I must note that I may not represent the direction that is good for Inkscape, and that I'm not using it for production. The idea was also a bit out of the box and out of its scope, but you pointed me kindly to the Gimp. When put into perspective, the handles get back into rectangle (perhaps a bit related to fractal), but indeed it can be done. Thanks for the two perspective pointers you gave me. I'll try them. (There's so much in Inkscape.)

The wheels
The camera view is a one-off, and indeed the wheels are (maximally..) blocking the view, but I expect that in practice the pedestrians would actually have to hide (behind the wheels) for me not to see them, because the view sweeps as the truck changes sustained positions like a security camera. As I think I prefer 145°, the view is tiny, contrast may be low, infrared may be out of reach, and I may not be looking; I expect success based on earlier experiments with visibility 'enhancements' ;) (I like to use expensive word-combinations). Like a 'front metal wooden-spoon'. The irony. (Dutch: Pollepel.)

Everything open
Indeed even though I'm a warn about everything kind of guy, I'm using Windows (gave up the fight convincing everybody to detect open source..*). The geometry program may be trusted, but Windows-only it appears. This one is then for Windows users to play with. I've recently (re)discoverd Pi, because circles came up, as it is derived from. I consider it to be "almost four". Three-dim. is a little bit off my scope, but I like how SketchUp takes on it. I think "high-precision" refers to almost-exact, in that it can't straighten-up triangles in the way Inkscape can, namely exactly parallel to something else. A bit like physics, where 4.000 and 4 is not the same. Anyway, it's a great toy, but, come to think of it, the author may put it open source eventually. Or take on Inkscape.. (I think I'm not helping.. I'm babbling on like a professor gone loose.) (I'm not a professor though:) (More like a trucker.)

I know so little about 3D modelling..

Shrunk, er, stretched
The 480×234 situation came along as an extra (not sure why vertical dpi is that way); I expect it not to be crucial, getting about two pixels less (not shorter but stretched pixelated) legs, so for me it's okey, but, as with everything above; perhaps I've helped anyone formulation anything they need. It's not possible to adjust screen hor. and vert. dpi to match other displays, perhaps the effect/deception/experience can be simulated, the only thing possible is to connect the two displays, but that goes way beyond the purpose of investigating a back-camera (a bit lower, heel-camera..:)

I haven't decided on considering placing a camera, but if possible get eye contact, don't hesitate to alarm, and drivers turn off the radio to actually hear anything.

* :)

Peace. Pace.

Most of the view will be the underside of the trailer, and unfortunately the tires, but hopefully gives a nice contrast to everything around it.

Hey, GeoGebra looks quite good! I might play with this one later. I overlooked this one you mentioned. That's probably because I talk to much. But the camera, lastly, I want to put there, as I think that is best. As long as lens protection and contrast is good night and day..

Scale
The overall scale I've found in [Preferences, Interface, Zoom correction], but (and) it would be nice if the monitor provides dpi information, so Inkscape could lock into that information. Maybe I should say, use that information, but that's then something for companies like Samsung. And 'lock' sounds a lot better! And more glamorous. Indeed I needed the camera view to be representing the display in the truck, but an estimate of around 7.2 by 13.6 on my Samsung SyncMaster was enough to get an impression to look at.

I think it works.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: rotation and resizing relative points (and then some)

Postby Lazur » Mon Dec 16, 2013 12:18 am

Hi!

So it was about simulating how it would look on a different screen.
I wouldn't suggest to scale the image down as with that not only the size changes, but how it get's rendered to screen pixels.
Instead, woud change the view from the screen with the exact same image.


The basic shape of the truck could be modelled in any 3D program with a little work.
And by that, you can have a way to preview the camera in a live way.


On precision with exact parrallels, you can do that too in inkscape.
As, you can turn an object to guide lines (Shift+G), you can use a duplicant to make guides,
then use the snap feature to snap nodes to it.
Or by double clicking on a guide line, you can measure exact angles,
which then you could use on rotating objects with the transformation panel (Shift+Ctrl+M).

bass
Posts: 7
Joined: Fri Nov 15, 2013 12:04 am

Re: rotation and resizing relative points (and then some)

Postby bass » Mon Dec 16, 2013 5:57 am

What I would see
Your suggestion to leave the image in tact seems the right thing to do, as it is possible, as you say, to change the view of the screen. I'll look a few times at the result, with the time interfalls, to make up my mind!

The most important part was to get an 'artistic impression', in service of safety. (I did miscalculate a few times though, being overworked and all, not my fault ;) but after verification it [the scales] did prove correct eventually.)
Off topic: I can't but interpret those smilies look like guitar plectrums! Rocking! (Classical music naturally.)

3D model
It's (definitively and rightly so) too much asked so incorporate 3D functionality into Inkscape, in the first place because we have Blender et all. So Inkscape may be linked to Blender, maybe prohibited by x-windows, for example for more detailed calculated and filled 'heel (back)-camera' views with available data.

The latter may be preferable, but only by the distinguished and modest 'experts of Inkscape'*. I cannot decide on that matter.

* off course this includes you Lazur URH!)

Double checking that I didn't mistakenly say the opposite.., nope. Verification code: I'll leave the judgement to you Lazur URH!

Maybe I will model the Inkscape model into a programme like Blender, but it's unlikely that I will: I expect to go off limits; like me programming, the model probably never finishes.. Still I thank you for your convidence in me, and kudo's for developers for making it possible with tools and such to begin with.

howto ..
Sometimes I do things in Inkscape the hard way, so I thank you for pointing me to the guide lines guide lines! It's all very useful.

I salute you.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: rotation and resizing relative points (and then some)

Postby Lazur » Mon Dec 16, 2013 7:28 am

Here is a rough model based on your svg in blender:
Image

link to the 3D model

You can move the view around with the scrollwheel of the mouse.
Zoom by scrolling, Shift+drag with scrollwheel to pan,
numpad keys for named views.
Select objects by right mouse button.


Modelled from the sideview, at the end of the truck there appeared parts that are blocking more view.https://dl.dropbox.com/s/3b3dabzr9i9b4xu/truck2.png?m=


Blender may seem too complicated at first, but it suits testing camera views in a 3D space much better.
Cheers!

bass
Posts: 7
Joined: Fri Nov 15, 2013 12:04 am

Re: rotation and resizing relative points (and then some)

Postby bass » Mon Dec 16, 2013 8:51 am

Cheers mate! I've got the model (.blend file) and the screenshot, and renamed it with this site ("truck (inkscapeforum.com).blend"). And a smile, seeing my own sharp front edges. It's a whole new look at it. It still looks complicated, but to be fair, one should always try first, experience maybe, before judging ..

I can't promise you to take it up, but you make a good point. Already looks impressive though, and very familiar.

I think that concludes another plectrum with good teeth: :D

Cheers!


Return to “Inkscape Ideas”