I have a problem in cocos2dx. I just want to load a physics shape in box2d.How can I do it.
yes, it is possible.
Try this one
http://www.physicseditor.de/cocos2d-box2d/
Related
I use R and the Magick package to process screenshots! Currently, I'm going through an external tool to get my screenshots. This tool gives me a file (png or other) that I have to reload to use it with Magick. Is there a package that would allow me to take screenshots (in whole or only partially) and to retrieve the image directly into a variable without going through an intermediate file? I found plenty of stuff for web-snapshots but nothing for a capture of my screen...
Thanks in advance
I'm looking for a path to be able to use a Sketch UP 3D Model in babylon JS on a simple web page.
I think I have to convert the .skp file to a babylon JS Compatible format but I don't find a solution.
The only solution I know is to use the blender->babylon exporter.
You can install blender from Here
Then you can install the exporter by following these instructions
And finally, from sketchup, you can export your component in collada format (.dae), import it in blender then export it to babylon format.
After that, you can drag& drop the generated .babylon file on this page to see if your model was correctly generated. For most objects, I had no problem...
I created several simple ggplot2 plots and saved them to PDF files using the following commands:
p <- ggplot(plotobject, aes(x=Pos, y=Pval),res=300)
ggsave(plot=p,height=6,width=6,dpi=200, filename="~/example.pdf")
If I now open this example.pdf in Adobe Illustrator I get the following error:
The font AdobePiStd is missing. Affected text will be displayed using
a substitute font.
Is there a way in ggplot2 to specify a font (I presume this is for the dots/points) that Adobe will understand or otherwise is there a way to get this font working in Adobe?
/edit just to clarify, the text/labels/titles are all just fine its the dots that are missing for the font
/edit2 I got a working solution by just using the EPS output in ggsave, but still would love to find out a way to also be able to just open/import ggplot2 plots in PDF format directly in AI
Although changing the fonts used by AI works well, an alternative is to restrict ggplot2 from using Dingbats in the first place by adding the argument 'useDingbats' to your ggsave command eg:
ggsave(plot=p,height=6,width=6,dpi=200, filename="~/example.pdf", useDingbats=FALSE)
I ran into this problem as well on Mac OS X 10.8.2.
This resolved the issue for me:
font='/Library/Application Support/Adobe/PDFL/10.9/Fonts/AdobePiStd.otf'
cp $font /Library/Fonts/
On your system, find the file with find:
find / -name AdobePiStd.otf 2>/dev/null
/Applications/Adobe Photoshop CC 2018/Adobe Photoshop CC 2018.app/Contents/Required/PDFL/Resource/Fonts/AdobePiStd.otf
/Applications/Adobe Illustrator CC 2018/Adobe Illustrator.app/Contents/Required/PDFL Resource/Resource/Fonts/AdobePiStd.otf
/Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/Resources/Resource/Font/AdobePiStd.otf
For dots or points that don't' display correctly in a pdf, I just substitute Zapf Dingbats for the missing font in Adobe Illustrator. For simple plot markers, this does the job most of the time.
This seems to be a perverse problem in which Adobe Illustrator cannot find a font (AdobePiStd) that is distributed with Adobe Reader and thus is likely present.
If you search your computer, you are likely to find it. On my WindowsXP system, it was in:
C:\Program Files\Adobe\Reader 10.0\Resource\Font
After finding it, you can install it and other fonts in that folder, which should enable Illustrator to find them.
For other font/pdf problems in R, the embedFonts function in grDevices package is useful.
Use useDingbats=FALSE for the pdf output, then Illustrator will no complain.
pdf("example.pdf", useDingbats=FALSE)
ggplot(plotobject, aes(x=Pos, y=Pval),res=300)
dev.off()
You can download the font AdobePiStd - just Google it, download and install. After you reboot, the font should display correctly. You can then use the 'Find Font ...' utility within Illustrator to change it if you wish.
EDIT 2018 The question under was for the initial confusion face. The answer to this question is pdf(useDingbats = FALSE) as stated in numerous answers above. I won't delete this answer, in case you want to read about fonts (which might become a problem too).
OLD ANSWER AI does not recognize Helvetica type fonts. In my computer it doesn't matter that much, since it automatically replaces the font with something suitable. Of course you'd want to change the font in some cases. I often do it manually in AI (just select all the text and change the font type). Here is a thread on how to change the font in ggplot2: Modifying fonts in ggplot2
Ps. There is also another thread that might be helpful: Fonts in R plots
Another option that in simple cases might solve the problem is to in illustrator select the textobjects not displayed correctly and change the font. Helvetica Neue works for me.
I could solve the problem just by adding alpha specification. If you don't need any transparency you can chose an alpha value of 0.9 ...
example:
ggplot() + geom_point(aes(x=..,y=.., color=...), alpha=0.8)
I'm using the ZebraDesigner software to create a simple label with a QR Code. It looks good when I print it, but I also need the .prn file with all the information contained inside the QR Code to be "readable". When I open the .prn file with Notepad++, the QR Code line looks like this:
,:::::::::::::::::M07FHFI01FHFC00FFC1FMFC,::::M07C1F07C1FF80H0F801F0K07C,::::O01FKFH03FF0H01F07FHF07C,::::M07FE0F83E007FIF801F07FHF07C,::::M07FHF07FHFH03E0FFC1F07FHF07C,::::M07C00F83E007FIF801F0K07C,::::O01FF80H0HFC1FHFC1FMFC,::::M07C1F0H01FHFC1F07C,::::O01FF801FHFC1F0H01FF83FIFC,::::R07C1FF801FHFC0J01FHFC,::::M07FE0FJFH03E0I01F003E,::::M07C1FF83E007FE0F80I07FE0FFC,::::M07C00FKF83FF07FHF07C0H07C,::::W07FE0FFC,::::M07FMF07C1F07C1FMFC,::::M07C0J01F003FF07C1F0K07C,::::M07C1FHFC1F07C0H07C1F07FHF07C,::::M07C1FHFC1F07FE0FFC1F07FHF07C,::::M07C1FHFC1F0J0F801F07FHF07C,::::M07C0J01F07C0J01F0K07C,::::M07FMF07C0H07C1FMFC,::::,::::^XA
But i want it to be in pure ZPL, just like this one, shown in the The Zebra Programming Guide
:
^FO20,20^BQ,2,10^FDQA,0123456789ABCD
Does anyone know what should I do to generate the file like the one in the documentation or how can I convert it? I've already done a lot of research, but I can't sort it out.
Thanks!
I'm able to reproduce the problem by using a micro QR code.
If that's not mandatory, I suggest you use a "standard" QR code.
I managed to solve this. I reinstalled the printer via ZebraDesigner and changed its port from LPT to USB. Now the .prn file is finally being generated correctly.
It happens when you use different fonts on your label design. If you use Windows fonts, The ZebraDesigner will convert the text into a graphic.
So use Zebra fonts.
I need to do numerical calculations with high precision. There is a c++ library which is called "CLN",although i installed this package , but i do not know how to use it.
Is there an example program which shows how to use it?
Thanks
Something like that ?
http://www.warrenweckesser.net/software/cln/
Download the CLN source code from here, unpack it, and have a look into the examples/ folder. Alternatively, you may browse the same folder using gitweb.