rendering

Quartz custom drawing and UIViews. Cannot see the quartz drawing.

Hello everyone, I am drawing on a UIview several other subviews. Then in the DrawRect method of this UIView I am drawing a bezier curve. UNFORTUNATELY, the bezier curve never shows up. I have checked that the bezier curve is behind the background of the view (when I remove the background view I can see it). How can I combine custom dr...

Rails 3 > Rendering views in rake task

Hello there, I'm stuck with a rake task that need to prepare a newsletter for Mailchimp. Using rails 2.x stuff googled I now have this code: desc "Sends newsletter to Mailchimp list" task :send_newsletter => :environment do begin # get render helpers av = ActionView::Base.new(Rails::Application::Configuration.new(Rai...

Android: Font Rendering Problems with .ttf >3MB

Hello All! My Android Application needs support for various languages (like Chinese etc.). Most of them are in the DroidSansFallback.ttf file from Ascender. See http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts;hb=HEAD On some Android Phones, there is DroidSansFallback.ttf, but with many glyphs missing,...

OpenGL CubeMap Texture Dimensions

After struggling all weekend, I finally have a sphere reflecting its environment in OpenGL. It almost looks good. Problem is, certain features don't line up. I can't find much information on the topic of OpenGL sphere mapping, outside of a two page section in the Red Book and a few scattered, and mostly unfinished forum topics. Not sure ...

In Ruby on Rails, cannot render :controller => 'generic', :action => 'top_pages' but need to use :template => 'generic/top_pages'?

it seems that the :controller option doesn't do anything? Won't specifying the whole path be a little bit lower level than specifying using :controller? ...

Methods to render a PDF into a very high resolution NSImage bitmap file

Hi, I have to render a PDF into a very high resolution image (say up to and even over 100,000 * 80,000 pixels). I managed to do that without going out of ram by splitting the render into several slices and then rendering each one using NSOperationQueue, basically drawing the NSImage pdf representation into a new NSImage using drawInRect...

Creating an equation editor using STIX fonts?

Now that the STIX fonts have been released, how would one go about rendering equations with them? What are the basic rendering patterns, e.g. superscript, division type block, integral type block, square root like patterns, etc? How do these map to the glyphs in the STIX fonts? Pointers to resources would be very useful. I realize thi...

How hard is dynamic rendering on video?

I'd like to make an app that takes a video input (e.g. using your webcam), and dynamically render something fun on top of it based on its content. For example, I'll detect user's face in the video and change the color of his/her lips. Probably I can ask user to specify the contour of his/her lip using some closed curve with a few control...

RENDER_RESPONSE takes to long in seam

Hi, I write application using JBOSS Seam with Richfaces. Unfortunately some pages of it load very long especially when I want to show about 100 rows (or more) in table . Getting response from database takes about 2453 ms, so it is quite well. However the phase RENDER_RESPONSE takes about 23750 ms, so it is unacceptable. The object which ...

what are MathJax opensource analogs for ActionScript\MXML developers?

what are MathJax opensource analogs for ActionScript\MXML developers? so to be cqapable to render strings like this J_\alpha(x) = \sum_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha} into stuff like this ...

Can someone describe the algorithm used by Ken Silverman's Voxlap engine?

From what I gathered he used sparse voxel octrees and raycasting. It doesn't seem like he used opengl or direct3d and when I look at the game Voxelstein it appears that miniature cubes are actually being drawn instead of just a bunch of 2d square. Which caught me off guard I'm not sure how he is doing that without opengl or direct3d. ...

What is the most efficient way to draw voxels (cubes) in opengl?

I would like to draw voxels by using opengl but it doesn't seem like it is supported. I made a cube drawing function that had 24 vertices (4 vertices per face) but it drops the frame rate when you draw 2500 cubes. I was hoping there was a better way. Ideally I would just like to send a position, edge size, and color to the graphics ca...

How to draw multiple objects using a VBO and a single OpenGL drawelements call?

I've read that it is possible to draw multiple objects using a vbo and using single drawelements call. I haven't found any examples of this. Right now I'm making a drawelements call per cube drawn which is killing my frame rate since I'm making the entire game out of them. Any help is appreciated, especially example code. ...

Textarea isn't rendering in IE7

Hello, For some reason my textareas are not being show in IE7. I am using checkboxes in a form, and when they clicked, it called a javascript function that opens up a corresponding textarea. It works fine in every other main browser but not in IE7. Here is an example of the code I'm using. The HTML: <input name="areasOfConcern1" typ...

C++ DirectShow in Rendering Behavior

Hi. Does anyone know how to display DirectShow video in HTML container (e.h. DIV) instead of separate pop-up-like window. Already I did all the things needed to run custom Rendering Behavior, it includes all interfaces and events handling, but cannot find anything related with my problem neither in the Internet nor in books I have. An...

PLY file to be divided into chunks

I have a ply file which creates a 3d model. I wish to render the 3d model in distributed framework. What I want to ask is how can I divide my ply file into different bounding boxes(frustums) so that each node renders one bounding box and then the master just stitches up every bounding box. ...

A good Html rendering engine

I am looking for a Html rendering engine that has: Support in a good designer tool that helps me with the syntax, understand my objects (warns me of type errors and non existing names of classes/methods) and validate my Html. A nice readable way of mixing Html markup with common programming syntax, for each, if then Support for sub - t...

Xming and picture rendering in Matlab

I'm using xming 6.9.0.31 on Windows XP computer (2 Gb RAM) to connect to Linux server and run Matlab scripts there. I have 2 configurations of xming and both have problems related to matlab output figures. In one configuration everything works on the first script run, all figures coms fine. But on the second run (of the same script) xmin...

Why does UIWebView has problems with & characters in URL (wants &amp;)

I have a problem with a UIWebView, that I use in my iPhone app. The source code shown in the UIWebView, contains the following markup besides many other things: <object width="150" height="121"><param name="movie" value="http://www.youtube.com/v/SOMEVIDEO&amp;hl=de&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"...

asp.net mvc - show content from string with html

in my Model I have a string property Feeds with value like that: <img src="/Images/Company/twitter.png" style="border:0; vertical-align:text-bottom;"/>&nbsp;<b>9/29/2010 1:01:33 PM</b><br/>How to get started building rich #VS2010 #VSPackage based extensions - <a href="http://bit.ly/a8ksc1" target="_NEW">http://bit.ly/a8ksc1&lt;/a&gt;&lt...