Are there any wrappers/frameworks/libraries for Quartz 2D - quartz-graphics

Does anyone know of any wrappers/frameworks/libraries for Quartz2d (iOS deployment) which would make it easier/faster to do some of the more repetitive stuff like drawing circles, rectangles, translating stuff around the "canvas" etc etc.
In my childlike utopian dream world, I'm imagining something like RaphaelJS
I've been googling, but not managed to hit the right search string if something does exist.

Related

Looking for a way to convert SVG/Points to text (not OCR)

I have recently been playing around with a web app that allows the user to draw paths on an SVG using touch or a stylus (the idea is to make a simple note taking web app).
Now I would like to add the ability to convert SVG Paths to text. So my question is: How do I convert the coordinates of the SVG Path to text?
I'm just at a loss of how you would call such a process (and hours of googling something with no idea what to call it has not yielded results). And when I search for something remotely linked to text recognition I can only find things about OCR.
I'm not looking for OCR, because that requires bitmap images. I'm looking for a way to convert SVG Paths or points/vectors to text.
Can anybody point me in the right direction of what this is called so I can read more about the topic and dont need to re-invent the wheel?
Thanks in advance.

SpotLight Node Turns Everything Pitch Black

I am a beginner in Godot and I am making a 3D scene. However, when I added a SpotLight node to the scene, all the other objects turned dark. The OmniLight and the DirectionalLight works fine. When I hide the SpotLight, the scene returns to normal. If the SpotLight isn't facing the objects, they remain how it is supposed to be. Any ideas on how to solve this?
Here is what it looks like.
When I make it not visible:
Oh, and these objects are CSG objects, just so you know.
Here is the link to the minimal repro project.

WebVR show html content

I'd like to create a virtual space where I want to mix 3D elements and html content. I have seem some demos with WebVR but didn't work for me. WebAR is also an interesting option.
Thanks
Unfortunately, this isn't possible at the moment, because
there is no proper way to get your hands on the rastered output of the HTML in order to use it as a texture in WebGL and
there is no way to get any html-element shown in a WebVR-context
There is certainly work being done in both directions, but your best bets would probably be a-frame (https://aframe.io/) or reactVR (https://developer.oculus.com/blog/introducing-the-react-vr-pre-release/) which both at least have a bit of that html-feeling to it and can handle text pretty well (nothing compared to the power of html+css, but they will get there at some point).
Another option is to use a library like html2canvas (https://html2canvas.hertzen.com/) to get some rendered output from a piece of html which you can then use as a texture. Also has it's limits but might be worth a try...
Have fun!

Making custom, fictional maps with D3.js

I'm kicking around an idea for a side project and am looking for advice on which direction to go in terms of technology. I've done some research already, but am still fairly confused as to what the realistic options are.
I'd like to make an interactive map based on a fictional world (think Middle Earth), including a timeline filter and a details section for additional information on an event or location.
Desired Features:
map on the left
details pane on the right
timeline slider/filter at bottom
Territories
color for political affiliation
displays details in details pane
labels
labels for cities
Hurdles:
Get a clean map image to work with
Map image into intermediate format (svg, geojson, topojson?)
Display map on webpage, style map, add animations, etc
Technologies
SVG
I'm pretty sure I could code all of this in SVG using events and boundaries. I've already been able to create SVG Paths from the image using GIMP, so converting the map into an SVG file seems plausible.
The issue with doing it this way is I would end up doing all the work the hard way when there seems to be lots of frameworks for this kind of thing already.
Kartograph
La Bella Italia is a very nice example and would serve as a good starting point. I love the trade route animations and the border styling with the glow filters.
The bonus here is that I know I can make an svg map, which is all this would need to get up and running.
My issue here is it doesn't seem like Kartograph is as rich of a platform as D3.js. I'm not sure if I can double dip and link some D3 stuff with the kartograph events. If I could, that might be the solution.
D3.js
The sliders, animations(hover and selection), and topojson seem like they would be perfect. But the main issue I have here is getting my image converted into a GeoJson format. From what I can tell these formats are strictly for Real World maps, using longitude/latitude.
So there you have it! I'm hoping there is some good news on how I might convert my map image into topojson so I can enjoy the benefits of D3.js. If not, I suppose I could just try kartograph and wire the events up with D3 controls.
Thoughts?
I'm currently writing my master thesis and I have the same topic like you had these days. I called my project Arda Maps. Feel free to ask me anything if have techonology questions.
I'm using the following frameworks/tools in my project:
QGIS
JQuery
D3.js
GeoJSON/TopoJSON
TimeGlider

Is it possibile to create a text label without using OnGUI?

I'm creating a app in Unity which is quite text heavy. So far, all the text is handled through the OnGUI function. I think I'm going to run into problems later on.
So, is it possible to create text, (using true type fonts, not 3D text or bitmaps. Not using something from the assets store either!) without using OnGUI? If so, how do you make each of the text filds independent with different styles, positions & parents?
Check the AssetStore for 2D toolkit or NGui plugin, they are both great for Ui stuff
they contain nice ways to do gradients, fonts, and aligning to screen edges or parent handles
Another option would be Daikonforge:
http://www.daikonforge.com/dfgui/
The company I work for released a game using NGUI, not long ago, but we are switching to Daikonforge now, because it's deemed more Artist-friendly than NGUI.

Resources