What does scale mean in PARALLEL_PROJECTION with SCALE_EXPLICIT policy?
Does anyone know how the parallel projection view is scaled?
I'm using:
view.setScreenScalePolicy(View.SCALE_EXPLICIT); / /specifies that the scale is taken directly from the user-provided screenScale attribute
First of all, I tried two ways of changing the scale:
1. Scaling in the view
view.setScreenScale(scale); // Sets the screen scale value for this view. This is used when the screen scale policy is SCALE_EXPLICIT. The default value is 1.0 (i.e., unscaled).
2. Scaling in the transform matrix
Transform3d t=new Transform3d();
t.lookAt(new Point3d(eye),new Point3d(center),new Vector3d(up));
t.setScale(scale);
objTrans.setTransform(t); // Sets the scale component of the current transform; any existing scale is first factored out of the existing transform before the new scale is applied.
Note: t.getScale() returns 1.0 by default, until a scale is applied.
Both seem to have the same result, and I'm not sure which is better.
Now what's weird is to figure out what the "default" scale is?
I made a cube model, centered on the origin, resized it until it fix well on the screen without any scale applied. I found a 0.2 length cube accomplished this. Then I measured the pixel size of the window and cube and I found this relation:
Cube_size (in pixels) = window width (in pixels) *0.55; // Measured factor varied only slightly from 0.5414 to 0.5544 depending on window size and aspect ratio.
I found the window height had no effect on the pixel size of the cube.
My 0.2 length cube filled 55% of the width, so a 0.36 length cube fills the full window width. I verified this.
This means if I want to assign the scale by the number of physical units wide I want visible, I need to include a 0.36 correction factor to the scale:
view.setScreenScale(0.36/width);
This works - my 0.2 length cube fills the full width when width=0.2. I verified this works for other sized models too.
Although this works, I really don't like mysteries, and I'm becoming convinced other problems (properly setting the FrontClipDistance and BackClipDistance for a given model and view) are related.
I really HATE that these transforms don't seem to be written out anywhere, in any documentation I can find.
Has anyone else worked with the SCALE_EXPLICIT policy in PARALLEL_PROJECTION view?
Any help is appreciated!
Tom Ruen
I'm trying to scale a 3d representation of the human body so that it always remains the same distance from a virtual camera regardless of resolution. I need it to be the same virtual distance from the virtual camera as a subject would be from a real 35mm camera.
I tried the following code:
GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
Canvas3D canvas = new Canvas3D(config);
SimpleUniverse universe = new SimpleUniverse(canvas);
canvas.getView().setScreenScalePolicy(View.SCALE_SCREEN_SIZE);
System.out.println(canvas.getScreen3D().getPhysicalScreenWidth());
System.out.println(canvas.getScreen3D().getPhysicalScreenHeight());
canvas.getScreen3D().setPhysicalScreenWidth(0.005);
canvas.getScreen3D().setPhysicalScreenHeight(0.005*0.8);And it does seem to "zoom out" ever so slightly (using 0.005). However, it appears that the boundingsphere is such that the objects begin to be not drawn as one "shrinks the scene", thus effectively zooming out. Scaling the scene up is fine, but i need to scale it down - ie shrink it.
The reason I am attempting to use this method rather than applying a transform on the viewingPlatform is because I purposefully did not want to have to adjust the bounding sphere.
Can you give me any help on why scaling up works really well with most values >actual screen size, but scaling down is very iffy, and only shrinks the scene with values MUCH less than the actual screen value. Even then, i start to get holes where polygons arent drawn anymore.
Thanks
Similar Messages
-
What does it mean missing camera with an exclamation sy in fcx
I get a clip in browser that says "missing camera" what is that
Its color red
When I find it in the finder and drag to my desktop i have good video
I dont know how to get it back
There are three clips
It doesnt say missing clip...says missing Camera Thanks for any helpI know its on another drive..I went through Sonys content browser..sent the file (BPAV) to 2 drives..camera is a Sony EX-1R
As far as optimized on import..It may have imported by default...that way...Is there a setting for that which I can look for Thanks -
Hello,
a webservice consumer-proxy does'nt work fine and I have no idea, what's wrong.
In SOAMANAGER I checked the tracefiles and a lot of errors occurs:
"CX_ST_GROUP_MISSING_CASE:XSLT Exception bei Offset 409, XPath n0...Element id fehlt (fault location is 1 )"
What does it mean ?
Problems with element 'id' , but what exactly ?
The response contained element 'id' but with value zero.
<soapenv:Body>
<createDeliveryNoteResponse xmlns="http://ws.common">
<createDeliveryNoteReturn>
<id>0</id>
</createDeliveryNoteReturn>
</createDeliveryNoteResponse>
</soapenv:Body>
</soapenv:Envelope>
thanks in advance.
best regards
Holger
- <
<Hello,
problem is solved.
What's the reason for this ?
Exception CX_ST_GROUP_MISSING_CASE is not correct, the transformation works fine, with STRANS you can check this.
But in SE80 you can check the client-proxy with the definition of wsdl and any objects are missing or must change. Why I have no idea, it seems like a bug after implementation support packages.
So after generating missing objects and activating the webservice works fine, no exception occurs.
best regards
Holger -
When I click to pay my songs in the library they will not play and it shows a circle with an exclamation point within it. What does that mean, how do I fix it, and how will it play my songs again? They used to play before on my Iphone4 with no problem, but since I upgraded to the Iphone4s there is an issue.
I am having the same problem. I have just tried this. Unplug iphone > open itunes > delete all music from itunes library > close itunes > re-open itunes > add music from original folder > plug in iphone > select songs > press sync > unplug iphone using eject button onscreen > checked phone .... still nothing in music folder on phone. On itunes the "On this iphone" tab the songs remain there but greyed out.
-
My iPod doesn't sync it keeps coming up with the message "The iPod 'iPod Nano' cannot be synced. An unknown error occurred (13019)." What does this mean and how can I fix it?
I am getting the same error message. Have you figured it out?
-
i plugged my iphone in for the first time to my itunes account and it now reads that this device is already associated with an apple id. what does that mean. i only have one apple id. and do i chose cancel or transfer?
Hello there, Shellywms09.
The following Knowledge Base article points out why you are receiving that message on your iPad:
iTunes Store: Associating a device or computer to your Apple ID
http://support.apple.com/kb/ht4627
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro -
I have an ipod mini. When it comes on it shows the battery with a ! What does that mean?
That just usually means the battery needs to be recharged. If you have already tried recharging it, see some of the troubleshooting steps in this Apple support document.
Charging your iPod battery
B-rock -
I want a song purchased on my ipad with my apple id downloaded onto our home mac mini. So i can listen to it via that computer. However the mac is registered to my husbands apple id and it comes up with a message about 90days wait needed or something. What does this mean? And how do I get one measly song downloaded?!
Welcome to the Apple Community.
It sounds like you are trying to change your login in the Tunes store through iTunes on your computer, which you can only do once in 90 days, which you don't need to do for this.
What does your iPad usually sync with. -
I have downloaded music to my phone through my Apple ID and it has this message that reads you can download purchases on this device with one Apple ID account every ninety days, what does this mean and how do I fix it?
Well, it doesn't mean that at all. You can download music purchased with an Apple ID to up to 10 devices. There is no 90 day wait. The wait is if you change the Apple ID.
-
iPhone not being recognized and cannot be activated for service--what does this mean? I can't sync with iTunes. Please help.
When I connect iPhone to USB iTunes is giving me the above message. Please advise if you know the fix.
Thanks,
Lina1116did you find a fix?
-
HT1710 What does it mean if the blue screen appears and stays on with no further activity?
My disk failed. Apple store replaced it with a disk with OS X. I tried to load from valid time machine backup. eventually I got a blue screen.
What does this mean and what should I do?
Here is more of this story:
When I picked up my computer after the disk was replaced, I was told I could do a time machine recovery. After about 6 hours the recovery said it had less than a minute to go and was transferring "your" network settings. at 9 hours it said the same thing.
I rebooted DVD to try to reload MAC OS X but it crashed with "INSTALL FAILED MAC OS X could not be installed on your computer Click restart and try again"
I did but it would not boot.
I reloaded the disk utility and and it showed no problems but the next OS X install failed (hung).
I then wrote zeros to all the disk (could not find a reformat command). This went tith out error.
I restarted the OSX install and it appeared to work.
I started the install from time machine again and it hung in the same place. (less than a minute remaining. The completion bar had a sliver of white at the end but was mostly blue)It just means it's hungup just before completing, we can get more info with Verbose boot...
CMD+v keys on bootup...
http://support.apple.com/kb/HT1492 -
What does this mean, and how do you fix it?
"There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vender."
Trying to install iTunes 10.7, first attempt; downloaded and ran with everything closed, seccond atttempt; just click on run, third attempt; ran upgrade with iTunes open. All of the results were the same.
Is there something wrong with the iTunes 10.7 Windows installer package?Try the following user tip:
"There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows -
What does it mean that "my iphone will no longer back up to my computer automatically when I sync with itunes", if I turn my icloud backup to "on"? This doesnt sound like something that will make things smoother? I just recently lost all my calendar events and I am hoping to recover them.
Welcome to the Apple Community.
You can either back up to iTunes or to iCloud, you you choose to back up to iCloud, back up to iTunes will be turned off. Personally, I'd always back up to iTunes unless there is a good reason not to you. -
My MacBookPro has a white screen with a grey file folder in the center of the screen with a white question mark blinking in it. What does this mean? And how can I get my computer back up and running normal?
Start up in Safe Mode.
http://support.apple.com/kb/PH14204?viewlocale=en_US
Repair Disk.
http://support.apple.com/kb/PH5836
Reset PRAM.
http://support.apple.com/kb/PH14222 -
Hi
I dropped my macbook yesterday and it turned itself off. When I tried to turn it back on all I got was a white/gray screen with a flash folder with a ? in the middle of it? What does this mean and how do I get it to stop so I can log onto my laptop?Deev
Normally the question mark on the gray screen means it can't find the operating system. Have you tried booting up from the installation DVD? Do that, and when you come to the screen where it wants to begin a system installation you'll notice in the menubar where it say's utilites. Click on that and choose disk utility. from there choose your disk and try to verify and repair the disk. If you can you may want to also try and new install of the system. I don't know how much critical data you have, but reinstalling is an option. did you purcahse you from an Apple store? If you did you may want them to look at it. Hope this helps.
Regards,
Joseph
Maybe you are looking for
-
Premiere CS6 not opening in OS X 10.9.1 Mavericks.
Hey guys. I'm so tired at this point...I spent almost two working days trying to make AE and Premiere work after updating OS X yesterday to 10.9.1. AE works, but Premiere CS6 doesn't even open. It starts but then I get the beach ball and after severa
-
The screen of my Lumia 920 doesn't turn automaticly anymore. Can I change the settings somewhere?
-
Firefox crashes getting more frequent - maybe associated with Symantec PGP?
In January Firefox crashed 6 times. On 1/22 I did a full reinstall of Firefox. Did not crash again until 2/25 but then crashed 3 times in 4 days. In March has crashed 5 times in first 12 days. Don't know if crash report is simply blocked from occurri
-
i can't start gwddomain, who can tell me how to restart gwtdomain.
-
E03 Program RSUSR003 Reports Security violation in SM21
Hello All, I am getting below error in SM21: "E03 Program RSUSR003 Reports Security violation" ============================================================ Documentation for system log message E03 : The specified program encountered a problem. A shor