rendering

Deferred Rendering with OpenGL, experiencing heavy pixelization near lit boundaries on surfaces

瘦欲@ 提交于 2019-12-05 21:26:25
Problem Explaination I am currently implementing point lights for a deferred renderer and am having trouble determining where a the heavy pixelization/triangulation that is only noticeable near the borders of lights is coming from. The problem appears to be caused by loss of precision somewhere, but I have been unable to track down the precise source. Normals are an obvious possibility, but I have a classmate who is using directx and is handling his normals in a similar manner with no issues. From about 2 meters away in our game's units (64 units/meter): A few centimeters away . Note that the

How to detect a browser that dosen't render .png transparency

孤者浪人 提交于 2019-12-05 21:16:40
I have this code that render's a image acording to the day of the week. But in IE6 and lower and probably some other browsers it won't render png opacity. So I want to change it a litle so that it will detect the browser's that don't render alpha transparency and tell them to load this image instead: "img/horarios2.png". Ive tried making it so that it would rule out IE6 and lower that are known for not rendering, but then I thinking about all the other browsers that I probably don't know about that don't render either and needed something that would rule them out also. I don't know the best

JLabel shifts the text vertically down while displaying HTML

半腔热情 提交于 2019-12-05 20:25:14
I would like to understand why a JLabel, rendering HTML, shifts the vertical position of it's output text, whereas a JLabel which renders non-HTML, does not. Java version used : 1.6.0_37 Swing Look and Feel used : Windows ("com.sun.java.swing.plaf.windows.WindowsLookAndFeel") OS : Windows 7 64 Bit I did not put a SSCCE together since the code is really trivial. But if it helps please say so. I rather give an examples using an images displaying the behavior: I put a JPanel as the container around the JLabel to visualize the label's bounds. After setting the font and text for the JLabel, the

How to render WebBrowser to device context?

给你一囗甜甜゛ 提交于 2019-12-05 19:17:27
问题 i want to render a web-page (i.e. TWebBrowser ) to a device context. i want to use Internet Explorer's layout engine to render content to a device context (i.e. metafile, pdf metafile). Starting with Internet Explorer 9 the IHTMLElementRender interface is no longer supported : IHTMLElementRender interface Use this interface to draw the contents of an element to a specified device context, normally a printer. Members The IHTMLElementRender interface inherits from the IUnknown interface but

Rendering an Android XML layout in Java

假如想象 提交于 2019-12-05 18:38:07
I'm building a Java application that is some sort of Android applications (APK files) analyzer. One of the main features that the app will offer is a "preview" of an Android layout, hence I need an API that receives an Android layout XML and a few configuration arguments such as screen resolution and theme, and returns the rendered layout as it would appear on a device running the application (graphical consistency with the real Android platform is important) along with position data of the View objects (in order to allow the user to select a view by clicking it). At the first stage, I don't

How do I draw a texture-mapped triangle in MATLAB?

邮差的信 提交于 2019-12-05 18:09:13
I have a triangle in (u,v) coordinates in an image. I would like to draw this triangle at 3D coordinates (X,Y,Z) texture-mapped with the triangle in the image. Here, u,v,X,Y,Z are all vectors with three elements representing the three corners of the triangle. I have a very ugly, slow and unsatisfactory solution in which I: extract a rectangular part of the image transform it to 3D space with the transformation defined by the three points draw it with surface finally masking out everything that is not part of the triangle with AlphaData Surely there must be an easier way of doing this? I have

Rendering Problems Couldn't resolve resource @id/search_edit_frame

牧云@^-^@ 提交于 2019-12-05 17:55:24
问题 Rendering Problems Couldn't resolve resource @id/search_edit_frame This is the rendering error I'm getting in my xml file. I think it has something to do with my support.v7.SearchView below is my xml: <RelativeLayout android:id="@+id/layout_ricerca" android:layout_width="match_parent" android:layout_height="50dp" android:background="@drawable/search_border_backgroud" android:layout_marginStart="10dp" android:layout_marginEnd="10dp" android:layout_marginTop="20dp"> <android.support.v7.widget

How to know when a control (or window) has been rendered (drawn) in WPF?

冷暖自知 提交于 2019-12-05 16:07:05
I need to store the content of a Window into an image, save it and close the window. If I close the window on the Loaded event the image contains the Window with some items are drawn ok, some others are only half drawn or distorted while others are not on the image. If I put a timer and close the window after a certain amount of time (something between 250ms and 1sec depending on the complexity of the window) the images are all ok. Looks like the window needs some time to completely render itself. Is there a way to know when this rendering has been done to avoid using a Timer and closing the

Rendering PDF on WebPage

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 15:41:44
We are trying to load a pdf file in web browser using pdfobject javascript api. Currently the size of the pdf's that we are trying to display is close to 10MBs. This creates a long delay in displaying a PDF on web page; while the complete PDF gets downloaded. We need to remove this lag by achieving either of the alternatives: Show a progress bar until the PDF is actually displayed. We couldn't find an event which is triggered and can be used to find out if pdf is visible now. This lacking doesn't let us decide when to stop showing progress bar/spinner OR lazy load the PDF such that it gets

VectorDrawable rendering issue

邮差的信 提交于 2019-12-05 14:43:33
问题 I'm having problems with the VectorDrawables introduced by the support library. Looking around, I read about similar issues regarding bad scaling or incorrect preview in Android Studio. Well, my problem is unluckily different. PROBLEM: In fact, my VectorDrawable renders perfectly in the Android Studio preview but gets messed up at runtime on device (Android v. 5.1.1 and 6.0). EXPORTING: Starting from an SVG file (with only one compounded path), I imported it with the Android Studio tool (but