perspective

Kepler RCP CoolBar + PerspectiveBar appearance

隐身守侯 提交于 2019-12-12 01:45:12
问题 The coolbars on all Kepler RCP applications look just terrible. This a project created from scratch on Windows 8. What is it with that thick black line sorrounding the coolbar? Can it be style-hacked with CSS? From my testing, it seems that it appears only when the perspective bar is present. 回答1: I think the CSS for this is the eclipse-perspective-keyline-color in the #PerspectiveSwitcher selector. 回答2: You can try to add this dependencies in your product file: org.eclipse.e4.ui.css.core ,

Eclipse RCP Can't Contribute to Main Toolbar

那年仲夏 提交于 2019-12-11 12:42:48
问题 My RCP app has the coolbar visible by setting configurer.setShowCoolBar(true) in WorkbenchWindowAdvisor#preWindowOpen . But when I contribute a toolbar to the main toolbar, it never shows up. Here's my contribution code: <extension point="org.eclipse.ui.menus"> <menuContribution allPopups="true" locationURI="toolbar:org.eclipse.ui.main.toolbar"> <toolbar id="toolbar.perspectivesDynamic"> <dynamic class="my.package.PerspectiveSwitcherToolbar" id="perspectiveSwitcherToolbar"> </dynamic> <

how to get a perspecitve look to an orthogonal tilemap

做~自己de王妃 提交于 2019-12-11 09:43:24
问题 I am currentliy using an orthogonal map, not an isometric. But I would like to get an perspective look. the first picuture shows, what I currently have, the second shows my goal. Isn't it possible to do it with a transform matrix somehow? I did only manage to scale the whole image.. 回答1: You can use MapRenderer.setView(...) to achieve that. Create a PerspectiveCamera and set it up to have the perspective that you've shown in your second picture. Note that the tiled map will be rendered to the

square to trapezoid

冷暖自知 提交于 2019-12-11 09:18:14
问题 I know that transforming a square into a trapezoid is a linear transformation, and can be done using the projective matrix, but I'm having a little trouble figuring out how to construct the matrix. Using the projective matrix to translate, scale, rotates, and shear is straightforward. Is there a simple projective matrix which will transform a square to a trapezoid? 回答1: a,b,c,d are the four corners of your 2D square. a,b,c,d are expressed in homogeneous coordinate and so they are 3x1 matrices

Eclipse RCP: clonePerspective returns null

点点圈 提交于 2019-12-11 07:16:02
问题 I want to clone a perspective and save that cloned one. However, the call to the PerspectiveRegistry.clonePerspective(...) returns null, and I'm running out of ideas what could possibly be wrong with my parameter values. public void savePerspectiveAs(String label) { IWorkbenchPage page = PlatformUI.getWorkbench() .getActiveWorkbenchWindow().getActivePage(); IPerspectiveDescriptor perspectiveDescriptor = perspectiveRegistry .findPerspectiveWithLabel(label); // if the perspective doesn't exist,

How to draw ortho axes for object in perspective projection using modern OpenGL? [closed]

独自空忆成欢 提交于 2019-12-11 06:23:48
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year . I have 3D scene with perspective projection. Also I can select an object on the scene. I need to draw axes for selected object. The problem is the axes don't save their size in perspective projection. If object is far from the eye (camera), axes is going be small too. How to draw axes with the same

OpenGL switching between ortho and perspecive problems

三世轮回 提交于 2019-12-11 06:09:59
问题 I've integrated a model into OpenGL and implemented some keyboard functions for example to switch between orthografic and perspective view. Also you can zoom in and out and change the camera view. Now what i've recognize is after switching to orthografic and then back to perspective the model gets a lot of issues. First one: If i now change the horizontal camera view in the perspective view the model gets lost after a time (after pressing the camera view key often). And the second issue is

My unworking implementation of perspective projection

天涯浪子 提交于 2019-12-11 05:05:51
问题 I wrote a program that takes in entry some points, expressed in 3D coordinates and that must be drawn in a 2D canvas. I use perspective projection, homogeneous coordinates and similar triangles to do that. However, my program does not work and I actually don't know why. I followed two tutorials. I really understood the geometrical definitions and properties I have read. However, my implementation fails... I will write references to these both courses little by little, to make your reading

Using units on CSS perspective

最后都变了- 提交于 2019-12-10 13:44:40
问题 Just a quick question to clear up some confusion that I have regarding units on CSS perspective . On the CSS Transforms spec it references it with px e.g. perspective: 1000px; but I have used and in many other places others have used it without px e.g. perspective: 1000; such as on W3Schools. Is either way more preferred? Does it matter? Just want to clear this up, thanks. 回答1: Just because it's accepted by (some) browsers doesn't mean it's correct. Specifying a unit of measurement is

how to show our own perspective as default?

只谈情不闲聊 提交于 2019-12-10 10:49:42
问题 I want to know how to use our own perspective as default? it means show the perspective when the eclipse lunched. Can anyone knows how to do this ? 回答1: You can select perspective with the following command line parameter -perspective perspectiveId See the Eclipse help for more information about command line parameters. 来源: https://stackoverflow.com/questions/13585377/how-to-show-our-own-perspective-as-default